1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

Add WindowActivated and WindowDeactivated events.

Use this to implement different looking Terminal cursors depending on
the window active state.
This commit is contained in:
Andreas Kling 2019-01-17 17:38:04 +01:00
parent 135ff48bb9
commit dad58db757
9 changed files with 66 additions and 42 deletions

View file

@ -17,11 +17,14 @@ public:
void paint();
void on_char(byte);
void set_in_active_window(bool);
private:
Font& font() { return *m_font; }
void scroll_up();
void set_cursor(unsigned row, unsigned column);
void put_character_at(unsigned row, unsigned column, byte ch);
void invalidate_cursor();
void escape$A(const Vector<unsigned>&);
void escape$D(const Vector<unsigned>&);
@ -94,5 +97,7 @@ private:
int m_line_spacing { 4 };
int m_line_height { 0 };
bool m_in_active_window { false };
RetainPtr<Font> m_font;
};