mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +00:00
LibGUI: Add horizontal and vertical totals to Margins
This commit is contained in:
parent
dba6f0bc4b
commit
309874b4fb
1 changed files with 10 additions and 0 deletions
|
@ -95,6 +95,16 @@ public:
|
|||
return m_top + m_bottom;
|
||||
}
|
||||
|
||||
[[nodiscard]] int horizontal_total() const
|
||||
{
|
||||
return m_left + m_right;
|
||||
}
|
||||
|
||||
[[nodiscard]] int vertical_total() const
|
||||
{
|
||||
return m_top + m_bottom;
|
||||
}
|
||||
|
||||
private:
|
||||
int m_top { 0 };
|
||||
int m_right { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue