mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
LibCore: Add REGISTER_TEXT_ALIGNMENT_PROPERTY macro
This commit is contained in:
parent
6c0fa6ad93
commit
1e70986d19
Notes:
sideshowbarker
2024-07-19 00:27:02 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/1e70986d199 Pull-request: https://github.com/SerenityOS/serenity/pull/4626 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/devsh0
1 changed files with 10 additions and 0 deletions
|
@ -305,4 +305,14 @@ const LogStream& operator<<(const LogStream&, const Object&);
|
|||
property_name, getter, setter, GUI::SizePolicy, \
|
||||
{ GUI::SizePolicy::Fill, "Fill" }, \
|
||||
{ GUI::SizePolicy::Fixed, "Fixed" })
|
||||
|
||||
#define REGISTER_TEXT_ALIGNMENT_PROPERTY(property_name, getter, setter) \
|
||||
REGISTER_ENUM_PROPERTY( \
|
||||
property_name, getter, setter, Gfx::TextAlignment, \
|
||||
{ Gfx::TextAlignment::TopLeft, "TopLeft" }, \
|
||||
{ Gfx::TextAlignment::CenterLeft, "CenterLeft" }, \
|
||||
{ Gfx::TextAlignment::Center, "Center" }, \
|
||||
{ Gfx::TextAlignment::CenterRight, "CenterRight" }, \
|
||||
{ Gfx::TextAlignment::TopRight, "TopRight" }, \
|
||||
{ Gfx::TextAlignment::BottomRight, "BottomRight" })
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue