ScummVM API documentation
Ultima::Shared::Gfx::TextCursor Class Referenceabstract

#include <text_cursor.h>

Inheritance diagram for Ultima::Shared::Gfx::TextCursor:
Ultima::Shared::Gfx::Cursor Ultima::Ultima1::U1Gfx::U1TextCursor

Public Member Functions

bool isVisible () const
 
virtual void setVisible (bool isVis)
 
Common::Rect getBounds () const override
 
Point getPosition () const
 
void setPosition (const Point &pt)
 
virtual void update ()=0
 
- Public Member Functions inherited from Ultima::Shared::Gfx::Cursor
virtual ~Cursor ()
 
virtual void draw ()=0
 

Protected Member Functions

void markAsDirty ()
 

Protected Attributes

bool _visible
 
Common::Rect _bounds
 

Detailed Description

Base class for text cursors, and is used by those games that don't have a visible cursor

Member Function Documentation

◆ markAsDirty()

void Ultima::Shared::Gfx::TextCursor::markAsDirty ( )
protected

Marks the area of the screen the cursor covers as dirty

◆ isVisible()

bool Ultima::Shared::Gfx::TextCursor::isVisible ( ) const
inline

Returns true if the cursor is visible

◆ setVisible()

virtual void Ultima::Shared::Gfx::TextCursor::setVisible ( bool  isVis)
inlinevirtual

Sets the visibility of the cursor

◆ getBounds()

Common::Rect Ultima::Shared::Gfx::TextCursor::getBounds ( ) const
inlineoverridevirtual

Get the bounds of the cursor

Implements Ultima::Shared::Gfx::Cursor.

◆ getPosition()

Point Ultima::Shared::Gfx::TextCursor::getPosition ( ) const
inline

Returns the position of the cursor

◆ setPosition()

void Ultima::Shared::Gfx::TextCursor::setPosition ( const Point pt)
inline

Sets the position of the cursor

◆ update()

virtual void Ultima::Shared::Gfx::TextCursor::update ( )
pure virtual

Update the cursor

Implemented in Ultima::Ultima1::U1Gfx::U1TextCursor.


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