mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibCore: Support registration of TextWrapping properties
This is basically a named boolean.
This commit is contained in:
parent
07a3830036
commit
1e44a0c2d9
1 changed files with 6 additions and 0 deletions
|
@ -377,4 +377,10 @@ T* Object::find_descendant_of_type_named(String const& name) requires IsBaseOf<O
|
|||
{ Gfx::FontWeight::ExtraBold, "ExtraBold" }, \
|
||||
{ Gfx::FontWeight::Black, "Black" }, \
|
||||
{ Gfx::FontWeight::ExtraBlack, "ExtraBlack" })
|
||||
|
||||
#define REGISTER_TEXT_WRAPPING_PROPERTY(property_name, getter, setter) \
|
||||
REGISTER_ENUM_PROPERTY( \
|
||||
property_name, getter, setter, Gfx::TextWrapping, \
|
||||
{ Gfx::TextWrapping::Wrap, "Wrap" }, \
|
||||
{ Gfx::TextWrapping::DontWrap, "DontWrap" })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue