ScummVM API documentation
Titanic::CTextCursor Class Reference

Public Member Functions

 CTextCursor (CScreenManager *screenManager)
 
void setPos (const Point &pt)
 
void setSize (const Point &size)
 
Rect getCursorBounds () const
 
void setBounds (const Rect &r)
 
void clearBounds ()
 
void setBlinkRate (uint ticks)
 
void setColor (byte r, byte g, byte b)
 
bool isActive () const
 
int getMode () const
 
void setMode (int mode)
 
void show ()
 
void hide ()
 
void draw ()
 

Public Attributes

bool _active
 

Member Function Documentation

◆ setPos()

void Titanic::CTextCursor::setPos ( const Point pt)
inline

Sets the position of the cursor

◆ setSize()

void Titanic::CTextCursor::setSize ( const Point size)
inline

Sets the size of the cursor

◆ getCursorBounds()

Rect Titanic::CTextCursor::getCursorBounds ( ) const
inline

Returns the bounds for the cursor

◆ setBounds()

void Titanic::CTextCursor::setBounds ( const Rect r)
inline

Set bounds

◆ clearBounds()

void Titanic::CTextCursor::clearBounds ( )
inline

Clear the bounds

◆ setBlinkRate()

void Titanic::CTextCursor::setBlinkRate ( uint  ticks)
inline

Set the blinking rate

◆ setColor()

void Titanic::CTextCursor::setColor ( byte  r,
byte  g,
byte  b 
)

Set the cursor color

◆ isActive()

bool Titanic::CTextCursor::isActive ( ) const
inline

Returns whether the text cursor is active

◆ show()

void Titanic::CTextCursor::show ( )

Show the text cursor

◆ hide()

void Titanic::CTextCursor::hide ( )

Hide the text cursor

◆ draw()

void Titanic::CTextCursor::draw ( )

Update and draw the cursor if necessary


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