1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

WindowServer: Add support for per-window override cursors.

Use this to implement automatic switching to an I-beam cursor when hovering
over a GTextEditor. :^)
This commit is contained in:
Andreas Kling 2019-03-31 23:52:02 +02:00
parent 42c95959a8
commit dcf6726487
13 changed files with 110 additions and 0 deletions

View file

@ -8,6 +8,12 @@
class GWidget;
enum class GStandardCursor {
None = 0,
Arrow,
IBeam,
};
class GWindow : public GObject {
public:
GWindow(GObject* parent = nullptr);
@ -84,6 +90,8 @@ public:
Size base_size() const { return m_base_size; }
void set_base_size(const Size& size) { m_base_size = size; }
void set_override_cursor(GStandardCursor);
virtual const char* class_name() const override { return "GWindow"; }
private: