summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Widget.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-05 15:46:37 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-05 15:50:22 +0100
commit3edcaa9b9907e430ed59aa562b105c3d25d95d8a (patch)
tree947c9e5ff3a3efa22d6793472ce7fc355469086a /Libraries/LibGUI/Widget.h
parent42f2696355e70de0146c772cc17bf5b238aded4b (diff)
downloadserenity-3edcaa9b9907e430ed59aa562b105c3d25d95d8a.zip
LibGUI: Implement set_property() on Widget and AbstractButton
This makes it possible for an RPC client to modify some interesting widget properties.
Diffstat (limited to 'Libraries/LibGUI/Widget.h')
-rw-r--r--Libraries/LibGUI/Widget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Widget.h b/Libraries/LibGUI/Widget.h
index 80d4f740cf..52f41fdd4a 100644
--- a/Libraries/LibGUI/Widget.h
+++ b/Libraries/LibGUI/Widget.h
@@ -296,6 +296,8 @@ protected:
virtual void did_begin_inspection() override;
virtual void did_end_inspection() override;
+ virtual bool set_property(const StringView& name, const JsonValue& value) override;
+
private:
void handle_paint_event(PaintEvent&);
void handle_resize_event(ResizeEvent&);