LibGUI: Implement content margins for Frame
This commit is contained in:
parent
54605794f9
commit
6964c2a2db
Notes:
sideshowbarker
2024-07-18 01:31:25 +09:00
Author: https://github.com/frhun Commit: https://github.com/SerenityOS/serenity/commit/6964c2a2db9 Pull-request: https://github.com/SerenityOS/serenity/pull/10246 Issue: https://github.com/SerenityOS/serenity/issues/5887 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ public:
|
|||
int frame_thickness() const { return m_thickness; }
|
||||
void set_frame_thickness(int thickness);
|
||||
|
||||
virtual Margins content_margins() const override { return { frame_thickness() }; }
|
||||
|
||||
Gfx::FrameShadow frame_shadow() const { return m_shadow; }
|
||||
void set_frame_shadow(Gfx::FrameShadow shadow) { m_shadow = shadow; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue