ScummVM API documentation
Titanic::CMouseCursor Class Reference

Public Member Functions

 CMouseCursor (CScreenManager *screenManager)
 
void incBusyCount ()
 
void decBusyCount ()
 
void incHideCounter ()
 
void decHideCounter ()
 
void suppressCursor ()
 
void unsuppressCursor ()
 
void setCursor (CursorId cursorId)
 
void update ()
 
uint getChangeCount () const
 
void disableControl ()
 
void enableControl ()
 
void setPosition (const Point &pt, double duration)
 

Public Attributes

bool _inputEnabled
 

Member Function Documentation

◆ incBusyCount()

void Titanic::CMouseCursor::incBusyCount ( )

Increment the busy count for the cursor, showing an hourglass

◆ decBusyCount()

void Titanic::CMouseCursor::decBusyCount ( )

Decrements the busy count, resetting back to an arrow cursor when the count reaches zero

◆ incHideCounter()

void Titanic::CMouseCursor::incHideCounter ( )

Decrements the hide counter, and shows the mouse if it's reached zero

◆ decHideCounter()

void Titanic::CMouseCursor::decHideCounter ( )

Increments the hide counter, hiding the mouse if it's the first call

◆ suppressCursor()

void Titanic::CMouseCursor::suppressCursor ( )

Suppresses the cursor. When suppressed, the cursor isn't drawn, even if it's not otherwise being hidden

◆ unsuppressCursor()

void Titanic::CMouseCursor::unsuppressCursor ( )

Unflags the cursor as being suppressed, allowing it to be drawn again if it's enabled

◆ setCursor()

void Titanic::CMouseCursor::setCursor ( CursorId  cursorId)

Set the cursor

◆ update()

void Titanic::CMouseCursor::update ( )

Updates the mouse cursor

◆ getChangeCount()

uint Titanic::CMouseCursor::getChangeCount ( ) const
inline

Returns the number of times the cursor has been set

◆ disableControl()

void Titanic::CMouseCursor::disableControl ( )

Disables user control of the mouse

◆ enableControl()

void Titanic::CMouseCursor::enableControl ( )

Re-enables user control of the mouse

◆ setPosition()

void Titanic::CMouseCursor::setPosition ( const Point pt,
double  duration 
)

Move the mouse to a new position


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