Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 949 Bytes

cursor.md

File metadata and controls

40 lines (22 loc) · 949 Bytes

Cursor

Widget holds an instance of the Cursor class named cursor. This provides basic info about the cursor for the given Widget.

Reference

sl::Signal<void(Point)> moved;

This signal is called every time the cursor is moved.

Point position() const;

Returns the Point where the cursor currently is.

bool is_enabled() const;

Returns true if the cursor is able to display on screen for this Widget.

void enable(bool enable = true);

Enable(or disable) the cursor, if enabled it will display when this Widget is in focus.

void disable(bool disable = true);

Disable(or enable) the cursor, if enabled it will display when this Widget is in focus.

void toggle();

Enable the cursor if disabled, or disable it if enabled.

void set_position(Point p);

Set the local position of the cursor.

See Also