mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00
GWidget: Add set_updates_enabled() for temporarily suppressing updates.
This commit is contained in:
parent
c3b7ace3e0
commit
6d5507313e
2 changed files with 26 additions and 4 deletions
|
@ -45,6 +45,9 @@ public:
|
|||
bool is_enabled() const { return m_enabled; }
|
||||
void set_enabled(bool);
|
||||
|
||||
bool updates_enabled() const { return m_updates_enabled; }
|
||||
void set_updates_enabled(bool);
|
||||
|
||||
virtual void event(CEvent&) override;
|
||||
virtual void paint_event(GPaintEvent&);
|
||||
virtual void resize_event(GResizeEvent&);
|
||||
|
@ -211,6 +214,7 @@ private:
|
|||
bool m_greedy_for_hits { false };
|
||||
bool m_enabled { true };
|
||||
bool m_layout_dirty { false };
|
||||
bool m_updates_enabled { true };
|
||||
|
||||
CElapsedTimer m_left_click_clock;
|
||||
CElapsedTimer m_right_click_clock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue