1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:28:11 +00:00

LibGUI: Implement set_property() on Widget and AbstractButton

This makes it possible for an RPC client to modify some interesting
widget properties.
This commit is contained in:
Andreas Kling 2020-03-05 15:46:37 +01:00
parent 42f2696355
commit 3edcaa9b99
4 changed files with 50 additions and 0 deletions

View file

@ -71,6 +71,7 @@ protected:
virtual void change_event(Event&) override;
virtual void save_to(JsonObject&) override;
virtual bool set_property(const StringView& name, const JsonValue& value) override;
void paint_text(Painter&, const Gfx::Rect&, const Gfx::Font&, Gfx::TextAlignment);