mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
Add concept of size increments to windowing system.
Use this to implement incremental resizing for Terminal so that we only ever resize to fit a perfect number of rows and columns. This is very nice. :^)
This commit is contained in:
parent
fd575055c2
commit
6084cd0c56
12 changed files with 47 additions and 4 deletions
|
@ -10,7 +10,8 @@ public:
|
|||
Size(int w, int h) : m_width(w), m_height(h) { }
|
||||
Size(const WSAPI_Size&);
|
||||
|
||||
bool is_empty() const { return !m_width || !m_height; }
|
||||
bool is_null() const { return !m_width && !m_height; }
|
||||
bool is_empty() const { return m_width <= 0 || m_height <= 0; }
|
||||
|
||||
int width() const { return m_width; }
|
||||
int height() const { return m_height; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue