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
commit dcf6726487
Notes: sideshowbarker 2024-07-19 14:51:44 +09:00
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: