Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CCursorManager Class Reference

#include <CursorManager.h>

List of all members.

Public Member Functions

 CCursorManager (void)
 ~CCursorManager (void)
Tag BindCursor (const char *csr)
int GetNumBoundCursors (void)
void MouseMotion (int mouse_x, int mouse_y)
CCursorFindCursor (const char *csrfilename)
CCursorFindCursor (Tag tag)
void SetCursor (Tag tag)
Tag GetCursor (void)
void Draw (void)

Protected Attributes

std::map< Tag, CCursor * > cache
CCursorcrsrCurrent
int x
int y


Detailed Description

Definition at line 70 of file CursorManager.h.


Constructor & Destructor Documentation

CCursorManager::CCursorManager void   ) 
 

Definition at line 311 of file CursorManager.cpp.

References crsrCurrent, x, and y.

CCursorManager::~CCursorManager void   ) 
 

Definition at line 317 of file CursorManager.cpp.

References cache.


Member Function Documentation

Tag CCursorManager::BindCursor const char *  csr  ) 
 

Definition at line 384 of file CursorManager.cpp.

References cache, CCursor::csid, and FindCursor().

Referenced by Initialize(), CKAFireExtinguisherButton::ReadFinished(), CSimpleFloatSwitch::ReadFinished(), CSimpleSwitch::ReadFinished(), CGauge::ReadFinished(), and CGaugeClickArea::ReadFinished().

void CCursorManager::Draw void   ) 
 

Definition at line 427 of file CursorManager.cpp.

References crsrCurrent, globals, gtfo, SGlobals::screenHeight, SGlobals::screenWidth, CCursor::texid, x, and y.

Referenced by RedrawSimulation().

CCursor * CCursorManager::FindCursor Tag  tag  ) 
 

Definition at line 365 of file CursorManager.cpp.

References cache.

CCursor * CCursorManager::FindCursor const char *  csrfilename  ) 
 

Definition at line 350 of file CursorManager.cpp.

References cache, and CCursor::csr.

Referenced by BindCursor(), and SetCursor().

Tag CCursorManager::GetCursor void   ) 
 

Definition at line 415 of file CursorManager.cpp.

References crsrCurrent, and CCursor::csid.

int CCursorManager::GetNumBoundCursors void   ) 
 

Definition at line 404 of file CursorManager.cpp.

References cache.

void CCursorManager::MouseMotion int  mouse_x,
int  mouse_y
 

Definition at line 328 of file CursorManager.cpp.

References crsrCurrent, globals, CCursor::hots_x, CCursor::hots_y, SGlobals::screenHeight, x, and y.

Referenced by motion(), and passive_motion().

void CCursorManager::SetCursor Tag  tag  ) 
 

Definition at line 410 of file CursorManager.cpp.

References crsrCurrent, and FindCursor().

Referenced by Initialize(), CPanel::MouseMotion(), CSimpleSwitch::MouseMoved(), CGauge::MouseMoved(), and CGaugeClickArea::MouseMoved().


Member Data Documentation

std::map<Tag,CCursor*> CCursorManager::cache [protected]
 

Definition at line 90 of file CursorManager.h.

Referenced by BindCursor(), FindCursor(), GetNumBoundCursors(), and ~CCursorManager().

CCursor* CCursorManager::crsrCurrent [protected]
 

Definition at line 91 of file CursorManager.h.

Referenced by CCursorManager(), Draw(), GetCursor(), MouseMotion(), and SetCursor().

int CCursorManager::x [protected]
 

Definition at line 92 of file CursorManager.h.

Referenced by CCursorManager(), Draw(), and MouseMotion().

int CCursorManager::y [protected]
 

Definition at line 92 of file CursorManager.h.

Referenced by CCursorManager(), Draw(), and MouseMotion().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen