mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibGUI: Add read-only effective size properties for debugging
These new read-only properties help with debugging layouts, by exposing the size values that are actually used for final size determination.
This commit is contained in:
parent
68ad5f3780
commit
aba6422e11
Notes:
sideshowbarker
2024-07-17 20:33:50 +09:00
Author: https://github.com/frhun
Commit: aba6422e11
Pull-request: https://github.com/SerenityOS/serenity/pull/14261
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/mjz19910
2 changed files with 20 additions and 0 deletions
|
@ -50,8 +50,10 @@ Widget::Widget()
|
|||
REGISTER_STRING_PROPERTY("tooltip", tooltip, set_tooltip);
|
||||
|
||||
REGISTER_UI_SIZE_PROPERTY("min_size", min_size, set_min_size);
|
||||
REGISTER_READONLY_UI_SIZE_PROPERTY("effective_min_size", effective_min_size);
|
||||
REGISTER_UI_SIZE_PROPERTY("max_size", max_size, set_max_size);
|
||||
REGISTER_UI_SIZE_PROPERTY("preferred_size", preferred_size, set_preferred_size);
|
||||
REGISTER_READONLY_UI_SIZE_PROPERTY("effective_preferred_size", effective_preferred_size);
|
||||
REGISTER_INT_PROPERTY("width", width, set_width);
|
||||
REGISTER_UI_DIMENSION_PROPERTY("min_width", min_width, set_min_width);
|
||||
REGISTER_UI_DIMENSION_PROPERTY("max_width", max_width, set_max_width);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue