mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
f52e66ceda
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 };
|
|
};
|