Eclipse SUMO - Simulation of Urban MObility
GUICursorSubSys.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
14 // A class to manage icons of SUMO
15 /****************************************************************************/
16 #ifndef GUICursorSubSys_h
17 #define GUICursorSubSys_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <fx.h>
26 #include "GUICursors.h"
27 
28 
29 // ===========================================================================
30 // class definitions
31 // ===========================================================================
33 public:
37  static void initCursors(FXApp* a);
38 
42  static FXCursor* getCursor(GUICursor which);
43 
45  static void close();
46 
47 private:
49  GUICursorSubSys(FXApp* a);
50 
53 
56 
58  FXCursor* myCursors[CURSOR_MAX];
59 };
60 
61 
62 #endif
63 
64 /****************************************************************************/
65 
GUICursorSubSys::myInstance
static GUICursorSubSys * myInstance
instance of GUICursorSubSys
Definition: GUICursorSubSys.h:55
GUICursorSubSys::initCursors
static void initCursors(FXApp *a)
Initiate GUICursorSubSys.
Definition: GUICursorSubSys.cpp:68
GUICursorSubSys::getCursor
static FXCursor * getCursor(GUICursor which)
returns a cursor previously defined in the enum GUICursor
Definition: GUICursorSubSys.cpp:75
GUICursorSubSys::~GUICursorSubSys
~GUICursorSubSys()
destructor
Definition: GUICursorSubSys.cpp:58
GUICursors.h
GUICursor
GUICursor
An enumeration of cursors used by the gui applications.
Definition: GUICursors.h:33
GUICursorSubSys::close
static void close()
close GUICursorSubSys
Definition: GUICursorSubSys.cpp:81
CURSOR_MAX
@ CURSOR_MAX
max number of cursors
Definition: GUICursors.h:41
GUICursorSubSys::myCursors
FXCursor * myCursors[CURSOR_MAX]
vector with the icons
Definition: GUICursorSubSys.h:58
GUICursorSubSys::GUICursorSubSys
GUICursorSubSys(FXApp *a)
constructor is private because is called by the static function init(FXApp* a)
Definition: GUICursorSubSys.cpp:40
config.h
GUICursorSubSys
Definition: GUICursorSubSys.h:32