mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +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;
|
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:
|
private:
|
||||||
int m_top { 0 };
|
int m_top { 0 };
|
||||||
int m_right { 0 };
|
int m_right { 0 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue