mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibGUI: Move widget registration to LibCore
This also moves Widget::load_from_json into Core::Object as a virtual function in order to allow loading non-widget objects in GML (e.g. BoxLayout). Co-authored-by: Gunnar Beutner <gbeutner@serenityos.org>
This commit is contained in:
parent
6e101adc28
commit
3aaffa2c47
Notes:
sideshowbarker
2024-07-18 18:39:13 +09:00
Author: https://github.com/tomuta
Commit: 3aaffa2c47
Pull-request: https://github.com/SerenityOS/serenity/pull/6885
13 changed files with 134 additions and 85 deletions
|
@ -10,8 +10,8 @@
|
|||
#include <LibGfx/Orientation.h>
|
||||
#include <stdio.h>
|
||||
|
||||
REGISTER_WIDGET(GUI, HorizontalBoxLayout)
|
||||
REGISTER_WIDGET(GUI, VerticalBoxLayout)
|
||||
REGISTER_CORE_OBJECT(GUI, HorizontalBoxLayout)
|
||||
REGISTER_CORE_OBJECT(GUI, VerticalBoxLayout)
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue