mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
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.)
21 lines
406 B
C++
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 };
|
|
};
|