mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 21:35:06 +00:00
LibGUI: Register a whole bunch of properties in various widgets
This commit is contained in:
parent
20b74e4ede
commit
90aeacbb58
14 changed files with 65 additions and 7 deletions
|
@ -36,6 +36,19 @@ Frame::Frame()
|
|||
set_frame_thickness(2);
|
||||
set_frame_shape(Gfx::FrameShape::Container);
|
||||
set_frame_shadow(Gfx::FrameShadow::Sunken);
|
||||
|
||||
REGISTER_INT_PROPERTY("thickness", frame_thickness, set_frame_thickness);
|
||||
REGISTER_ENUM_PROPERTY("shadow", frame_shadow, set_frame_shadow, Gfx::FrameShadow,
|
||||
{ Gfx::FrameShadow::Plain, "Plain" },
|
||||
{ Gfx::FrameShadow::Raised, "Raised" },
|
||||
{ Gfx::FrameShadow::Sunken, "Sunken" });
|
||||
REGISTER_ENUM_PROPERTY("shape", frame_shape, set_frame_shape, Gfx::FrameShape,
|
||||
{ Gfx::FrameShape::NoFrame, "NoFrame" },
|
||||
{ Gfx::FrameShape::Box, "Box" },
|
||||
{ Gfx::FrameShape::Container, "Container" },
|
||||
{ Gfx::FrameShape::Panel, "Panel" },
|
||||
{ Gfx::FrameShape::VerticalLine, "VerticalLine" },
|
||||
{ Gfx::FrameShape::HorizontalLine, "HorizontalLine" });
|
||||
}
|
||||
|
||||
Frame::~Frame()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue