LibGUI/WindowServer: Implement per-window cursor hiding
This commit is contained in:
@@ -234,6 +234,7 @@ namespace LibGUI
|
||||
bool alpha_channel;
|
||||
bool resizable;
|
||||
bool shown;
|
||||
bool cursor_visible;
|
||||
};
|
||||
|
||||
DEFINE_PACKET(
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace LibGUI
|
||||
.alpha_channel = false,
|
||||
.resizable = false,
|
||||
.shown = true,
|
||||
.cursor_visible = true,
|
||||
};
|
||||
|
||||
public:
|
||||
@@ -48,6 +49,8 @@ namespace LibGUI
|
||||
|
||||
void set_position(int32_t x, int32_t y);
|
||||
|
||||
void set_cursor_visible(bool visible);
|
||||
|
||||
Attributes get_attributes() const { return m_attributes; }
|
||||
void set_attributes(Attributes attributes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user