Cafu Engine
CursorMan.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_CURSOR_MAN_HPP_INCLUDED
8 #define CAFU_CURSOR_MAN_HPP_INCLUDED
9 
10 #include "Templates/Array.hpp"
11 
12 
13 class wxCursor;
14 
15 
16 /// This class manages the cursors of this application.
18 {
19  public:
20 
21  enum CursorIdentT
22  {
23  CROSS=0,
24  NEW_ENTITY_TOOL,
25  NEW_BRUSH_TOOL,
26  NEW_BEZIERPATCH_TOOL,
27  NEW_TERAIN_TOOL,
28  NEW_DECAL_TOOL,
29  EDIT_FACEPROPS_TOOL,
30  EYE_DROPPER,
31  HAND_OPEN,
32  HAND_CLOSED,
33  SIZING_PLUS,
34  ROTATE,
35  INVALID // Do not change this, it must always be the last element in the enumeration.
36  };
37 
38 
39  /// The constructor.
40  /// Must only be called after wxWidgets has been initialized.
41  CursorManT();
42 
43  /// The destructor.
44  /// Must be called before wxWidgets is initialized.
45  ~CursorManT();
46 
47  const wxCursor& GetCursor(CursorIdentT CursorID) const;
48 
49 
50  private:
51 
53 };
54 
55 
56 /// This gobal variable provides a single cursor manager for application-wide access.
57 extern CursorManT* CursorMan;
58 
59 #endif
This class manages the cursors of this application.
Definition: CursorMan.hpp:17
CursorManT()
The constructor.
Definition: CursorMan.cpp:20
~CursorManT()
The destructor.
Definition: CursorMan.cpp:63