Mouse cursor class. More...

#include <cursor.h>

Public Member Functions

 Cursor ()
 Constructs a null instance. More...
 
 Cursor (const DisplayWindow &window, const CursorDescription &cursor_description)
 Constructs a Cursor. More...
 
CursorProviderget_provider () const
 Returns the cursor provider. More...
 
bool is_null () const
 Returns true if this object is invalid. More...
 
 operator bool () const
 
void throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Detailed Description

Mouse cursor class.

Constructor & Destructor Documentation

clan::Cursor::Cursor ( )

Constructs a null instance.

clan::Cursor::Cursor ( const DisplayWindow window,
const CursorDescription cursor_description 
)

Constructs a Cursor.

Parameters
window= Display Window
cursor_description= Sprite Description
hotspot= Point

Member Function Documentation

CursorProvider* clan::Cursor::get_provider ( ) const

Returns the cursor provider.

bool clan::Cursor::is_null ( ) const
inline

Returns true if this object is invalid.

clan::Cursor::operator bool ( ) const
inlineexplicit
void clan::Cursor::throw_if_null ( ) const

Throw an exception if this object is invalid.


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