1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

LibCore: Support registration of TextWrapping properties

This is basically a named boolean.
This commit is contained in:
sin-ack 2021-07-29 20:06:55 +00:00 committed by Linus Groh
parent 07a3830036
commit 1e44a0c2d9

View file

@ -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" })
}