mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
VisualBuilder: Let's have getters and setters for properties.
This commit is contained in:
parent
6dc9a6ef42
commit
f1b58d8d8c
3 changed files with 24 additions and 3 deletions
|
@ -6,6 +6,15 @@ VBProperty::VBProperty(const String& name, const GVariant& value)
|
|||
{
|
||||
}
|
||||
|
||||
VBProperty::VBProperty(const String& name, Function<GVariant(const GWidget&)>&& getter, Function<void(GWidget&, const GVariant&)>&& setter)
|
||||
: m_name(name)
|
||||
, m_getter(move(getter))
|
||||
, m_setter(move(setter))
|
||||
{
|
||||
ASSERT(m_getter);
|
||||
ASSERT(m_setter);
|
||||
}
|
||||
|
||||
VBProperty::~VBProperty()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue