Emergency 20 Dokumentation  4.2.0
OverlayWindowManager.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include <qsf/base/WeakPtr.h>
14 
15 
16 //[-------------------------------------------------------]
17 //[ Forward declarations ]
18 //[-------------------------------------------------------]
19 namespace qsf
20 {
21  class GuiContext;
22 }
23 namespace em5
24 {
25  class OverlayWindow;
26 }
27 
28 
29 //[-------------------------------------------------------]
30 //[ Namespace ]
31 //[-------------------------------------------------------]
32 namespace em5
33 {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Classes ]
38  //[-------------------------------------------------------]
44  {
45 
46 
47  //[-------------------------------------------------------]
48  //[ Public methods ]
49  //[-------------------------------------------------------]
50  public:
51  explicit OverlayWindowManager(qsf::GuiContext& guiContext);
52  virtual ~OverlayWindowManager();
54 
55 
56  //[-------------------------------------------------------]
57  //[ Public virtual em5::OverlayWindowManager methods ]
58  //[-------------------------------------------------------]
59  public:
67  virtual void setAllOverlaysVisible(bool visible) = 0;
68 
76  virtual OverlayWindow* getOverlayWindowInstance(uint64 entityId) = 0;
77 
85  virtual void releaseOverlayWindowInstance(uint64 entityId) = 0;
86 
87 
88  //[-------------------------------------------------------]
89  //[ Private data ]
90  //[-------------------------------------------------------]
91  private:
92  qsf::GuiContext& mGuiContext;
93 
94 
95  };
96 
97 
98 //[-------------------------------------------------------]
99 //[ Namespace ]
100 //[-------------------------------------------------------]
101 } // em5
Definition: ActionPriority.h:13
qsf::GuiContext & getGuiContext() const
virtual OverlayWindow * getOverlayWindowInstance(uint64 entityId)=0
Return a new or a resuable status overlay window instance.
uint64_t uint64
Definition: PlatformTypes.h:184
Definition: PickupPersonByParamedicAction.h:21
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
Weak pointer target base class.
Definition: WeakPtr.h:318
OverlayWindowManager(qsf::GuiContext &guiContext)
virtual void releaseOverlayWindowInstance(uint64 entityId)=0
Return the status overlay window instance.
EMERGENCY 5 overlay window base class.
Definition: OverlayWindow.h:32
EMERGENCY 5 overlay window manager base class.
Definition: OverlayWindowManager.h:43
virtual void setAllOverlaysVisible(bool visible)=0
Set the visibility state of all overlays.