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-2018 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 /****************************************************************************/
15 // A class to manage icons of SUMO
16 /****************************************************************************/
17 #ifndef GUICursorSubSys_h
18 #define GUICursorSubSys_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <fx.h>
27 #include "GUICursors.h"
28 
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
34 public:
38  static void initCursors(FXApp* a);
39 
43  static FXCursor* getCursor(GUICursor which);
44 
46  static void close();
47 
48 private:
50  GUICursorSubSys(FXApp* a);
51 
54 
57 
59  FXCursor* myCursors[CURSOR_MAX];
60 };
61 
62 
63 #endif
64 
65 /****************************************************************************/
66 
static FXCursor * getCursor(GUICursor which)
returns a cursor previously defined in the enum GUICursor
static void initCursors(FXApp *a)
Initiate GUICursorSubSys.
GUICursor
An enumeration of cursors used by the gui applications.
Definition: GUICursors.h:34
max number of cursors
Definition: GUICursors.h:42
FXCursor * myCursors[CURSOR_MAX]
vector with the icons
GUICursorSubSys(FXApp *a)
constructor is private because is called by the static function init(FXApp* a)
~GUICursorSubSys()
destructor
static GUICursorSubSys * myInstance
instance of GUICursorSubSys
static void close()
close GUICursorSubSys