Emergency 20 Dokumentation  4.2.0
ProgressBar.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 "em5/Export.h"
14 
15 
16 //[-------------------------------------------------------]
17 //[ Forward declarations ]
18 //[-------------------------------------------------------]
19 namespace Rocket
20 {
21  namespace Core
22  {
23  class Element;
24  }
25 }
26 
27 
28 //[-------------------------------------------------------]
29 //[ Namespace ]
30 //[-------------------------------------------------------]
31 namespace em5
32 {
33 
34 
35  //[-------------------------------------------------------]
36  //[ Classes ]
37  //[-------------------------------------------------------]
43  {
44 
45 
46  //[-------------------------------------------------------]
47  //[ Public methods ]
48  //[-------------------------------------------------------]
49  public:
50  explicit ProgressBar(Rocket::Core::Element* element, Rocket::Core::Element* elementBg);
51 
56  float getValue() const;
57 
62  void setValue(float value);
63 
64 
65  //[-------------------------------------------------------]
66  //[ Private data ]
67  //[-------------------------------------------------------]
68  private:
69  int mMaxWidth;
70  float mValue;
71  Rocket::Core::Element* mElement;
72  Rocket::Core::Element* mElementBg;
73 
74 
75  };
76 
77 
78 //[-------------------------------------------------------]
79 //[ Namespace ]
80 //[-------------------------------------------------------]
81 } // em5
Definition: ActionPriority.h:13
Progress bar class.
Definition: ProgressBar.h:42
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: OverlayComponent.h:29