1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

LibGUI: Register gutter and ruler GML properties for TextEditor

This commit is contained in:
thankyouverycool 2022-02-02 19:18:23 -05:00 committed by Linus Groh
parent acb91d7869
commit 2424858c32

View file

@ -40,6 +40,8 @@ TextEditor::TextEditor(Type type)
{
REGISTER_STRING_PROPERTY("text", text, set_text);
REGISTER_STRING_PROPERTY("placeholder", placeholder, set_placeholder);
REGISTER_BOOL_PROPERTY("gutter", is_gutter_visible, set_gutter_visible);
REGISTER_BOOL_PROPERTY("ruler", is_ruler_visible, set_ruler_visible);
REGISTER_ENUM_PROPERTY("mode", mode, set_mode, Mode,
{ Editable, "Editable" },
{ ReadOnly, "ReadOnly" },