mirror of
https://github.com/RGBCube/serenity
synced 2025-06-17 00:02:06 +00:00
20 lines
432 B
C++
20 lines
432 B
C++
#include "VBProperty.h"
|
|
|
|
VBProperty::VBProperty(const String& name, const GVariant& value)
|
|
: m_name(name)
|
|
, m_value(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()
|
|
{
|
|
}
|