mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibGUI: Make GScrollableWidget a GFrame and fix up GTextEditor for it.
This commit is contained in:
parent
cb296ffede
commit
1fc03a7644
4 changed files with 30 additions and 23 deletions
|
@ -19,7 +19,8 @@ public:
|
|||
Shape frame_shape() const { return m_shape; }
|
||||
void set_frame_shape(Shape shape) { m_shape = shape; }
|
||||
|
||||
Rect frame_inner_rect() const { return rect().shrunken(m_thickness * 2, m_thickness * 2); }
|
||||
Rect frame_inner_rect_for_size(const Size& size) const { return { m_thickness, m_thickness, size.width() - m_thickness * 2, size.height() - m_thickness * 2 }; }
|
||||
Rect frame_inner_rect() const { return frame_inner_rect_for_size(size()); }
|
||||
|
||||
virtual const char* class_name() const override { return "GFrame"; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue