ladybird/Applications/VisualBuilder/VBProperty.h
Andreas Kling f52e66ceda VisualBuilder: Add a widget registry and a property class.
I need somewhere to centralize the knowledge about the different widget
types available. And VBProperty represents a property key/value of arbitrary
type (it uses a GVariant for the value.)
2019-04-11 16:13:19 +02:00

21 lines
406 B
C++

#pragma once
#include <AK/AKString.h>
#include <LibGUI/GVariant.h>
class VBProperty {
public:
VBProperty(const String& name, const GVariant& value);
~VBProperty();
String name() const { return m_name; }
bool is_readonly() const { return m_readonly; }
void set_readonly(bool b) { m_readonly = b; }
private:
String m_name;
GVariant m_value;
bool m_readonly { false };
};