SUMO - Simulation of Urban MObility
GUICursorSubSys Class Reference

#include <GUICursorSubSys.h>

Collaboration diagram for GUICursorSubSys:
Collaboration graph

Static Public Member Functions

static void close ()
 close GUICursorSubSys More...
 
static FXCursor * getCursor (GUICursor which)
 returns a cursor previously defined in the enum GUICursor More...
 
static void initCursors (FXApp *a)
 Initiate GUICursorSubSys. More...
 

Private Member Functions

 GUICursorSubSys (FXApp *a)
 constructor is private because is called by the static function init(FXApp* a) More...
 
 ~GUICursorSubSys ()
 destructor More...
 

Private Attributes

FXCursor * myCursors [CURSOR_MAX]
 vector with the icons More...
 

Static Private Attributes

static GUICursorSubSysmyInstance = nullptr
 instance of GUICursorSubSys More...
 

Detailed Description

Definition at line 33 of file GUICursorSubSys.h.

Constructor & Destructor Documentation

◆ GUICursorSubSys()

GUICursorSubSys::GUICursorSubSys ( FXApp *  a)
private

constructor is private because is called by the static function init(FXApp* a)

Definition at line 41 of file GUICursorSubSys.cpp.

References myCursors, SUMOCURSOR_DEFAULT, and SUMOCURSOR_MOVE.

Referenced by initCursors().

◆ ~GUICursorSubSys()

GUICursorSubSys::~GUICursorSubSys ( )
private

destructor

Definition at line 59 of file GUICursorSubSys.cpp.

Member Function Documentation

◆ close()

void GUICursorSubSys::close ( )
static

close GUICursorSubSys

Definition at line 82 of file GUICursorSubSys.cpp.

References myInstance.

◆ getCursor()

FXCursor * GUICursorSubSys::getCursor ( GUICursor  which)
static

returns a cursor previously defined in the enum GUICursor

Parameters
[in]whichGUICursor enum

Definition at line 76 of file GUICursorSubSys.cpp.

References myCursors, and myInstance.

Referenced by GNEViewNet::updateCursor().

◆ initCursors()

void GUICursorSubSys::initCursors ( FXApp *  a)
static

Initiate GUICursorSubSys.

Parameters
[in]aFOX Toolkit APP

Definition at line 69 of file GUICursorSubSys.cpp.

References GUICursorSubSys(), and myInstance.

Referenced by GNEApplicationWindow::GNEApplicationWindow(), and GUIApplicationWindow::GUIApplicationWindow().

Field Documentation

◆ myCursors

FXCursor* GUICursorSubSys::myCursors[CURSOR_MAX]
private

vector with the icons

Definition at line 59 of file GUICursorSubSys.h.

Referenced by getCursor(), and GUICursorSubSys().

◆ myInstance

GUICursorSubSys * GUICursorSubSys::myInstance = nullptr
staticprivate

instance of GUICursorSubSys

includes

Definition at line 56 of file GUICursorSubSys.h.

Referenced by close(), getCursor(), and initCursors().


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