xoreos  0.0.5
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Graphics::Aurora::Cursor Class Reference

A cursor as used in the Aurora engines. More...

#include <cursor.h>

Inheritance diagram for Graphics::Aurora::Cursor:
Inheritance graph
[legend]
Collaboration diagram for Graphics::Aurora::Cursor:
Collaboration graph
[legend]

Public Member Functions

 Cursor (const Common::UString &name, int hotspotX=-1, int hotspotY=-1)
 
 ~Cursor ()
 
void render ()
 Render the cursor. More...
 
- Public Member Functions inherited from Graphics::Cursor
 Cursor ()
 

Private Member Functions

void load ()
 

Private Attributes

Common::UString _name
 
TextureHandle _texture
 
int _width
 
int _height
 
int _hotspotX
 
int _hotspotY
 

Detailed Description

A cursor as used in the Aurora engines.

Definition at line 39 of file cursor.h.

Constructor & Destructor Documentation

◆ Cursor()

Graphics::Aurora::Cursor::Cursor ( const Common::UString name,
int  hotspotX = -1,
int  hotspotY = -1 
)

Definition at line 50 of file cursor.cpp.

References load().

Here is the call graph for this function:

◆ ~Cursor()

Graphics::Aurora::Cursor::~Cursor ( )
virtual

Reimplemented from Graphics::Cursor.

Definition at line 56 of file cursor.cpp.

Member Function Documentation

◆ load()

void Graphics::Aurora::Cursor::load ( )
private

◆ render()

void Graphics::Aurora::Cursor::render ( )
virtual

Render the cursor.

Implements Graphics::Cursor.

Definition at line 59 of file cursor.cpp.

References _height, _hotspotX, _hotspotY, _texture, _width, CursorMan, and TextureMan.

Member Data Documentation

◆ _height

int Graphics::Aurora::Cursor::_height
private

Definition at line 53 of file cursor.h.

Referenced by load(), and render().

◆ _hotspotX

int Graphics::Aurora::Cursor::_hotspotX
private

Definition at line 55 of file cursor.h.

Referenced by load(), and render().

◆ _hotspotY

int Graphics::Aurora::Cursor::_hotspotY
private

Definition at line 56 of file cursor.h.

Referenced by load(), and render().

◆ _name

Common::UString Graphics::Aurora::Cursor::_name
private

Definition at line 48 of file cursor.h.

Referenced by load().

◆ _texture

TextureHandle Graphics::Aurora::Cursor::_texture
private

Definition at line 50 of file cursor.h.

Referenced by load(), and render().

◆ _width

int Graphics::Aurora::Cursor::_width
private

Definition at line 52 of file cursor.h.

Referenced by load(), and render().


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