Btk
Btk::Cursor Class Reference

Mouse's cursor. More...

#include <cursor.hpp>

Public Member Functions

 Cursor ()
 Construct a new empty Cursor object. More...
 
 Cursor (SystemCursor)
 Construct a new System Cursor object. More...
 
 Cursor (const PixBuf &pixbuf, int hot_x=0, int hot_y=0)
 Construct a new Cursor object from pixbuf. More...
 
void set () const
 Set the cursor. More...
 

Static Public Member Functions

static void reset ()
 Reset the cursor to default. More...
 
static Cursor Default ()
 Get default cursor. More...
 
static Cursor Current ()
 Get current cursor. More...
 

Detailed Description

Mouse's cursor.

Constructor & Destructor Documentation

◆ Cursor() [1/3]

Btk::Cursor::Cursor ( )
inline

Construct a new empty Cursor object.

◆ Cursor() [2/3]

Btk::Cursor::Cursor ( SystemCursor  sys)

Construct a new System Cursor object.

◆ Cursor() [3/3]

Btk::Cursor::Cursor ( const PixBuf pixbuf,
int  hot_x = 0,
int  hot_y = 0 
)

Construct a new Cursor object from pixbuf.

Parameters
pixbufThe pixbuf
hot_xThe cursor's x point
hot_yThe cursor's y point

Member Function Documentation

◆ Current()

Cursor Btk::Cursor::Current ( )
static

Get current cursor.

Returns
Cursor

◆ Default()

Cursor Btk::Cursor::Default ( )
static

Get default cursor.

Returns
Cursor

◆ reset()

void Btk::Cursor::reset ( )
static

Reset the cursor to default.

◆ set()

void Btk::Cursor::set ( ) const

Set the cursor.


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