TermOx
Public Member Functions | Public Attributes | List of all members
ox::Cursor Class Reference

Holds and provides access to all data relevant to a Widget's cursor. More...

#include <cursor.hpp>

Public Member Functions

auto position () const -> Point
 Get the local position of the cursor.
 
auto is_enabled () const -> bool
 Query if the cursor is enabled.
 
void enable (bool enable=true)
 Enable the cursor(show on screen).
 
void disable (bool disable=true)
 Disable the cursor(do not show on screen).
 
void toggle ()
 Enable the cursor if disabled, or disable it if enabled.
 
void set_position (Point p)
 Set the local position of the cursor.
 

Public Attributes

sl::Signal< void(Point)> moved
 Signal called when the cursor is moved, passing along the new position.
 

Detailed Description

Holds and provides access to all data relevant to a Widget's cursor.


The documentation for this class was generated from the following files: