Emergency 20 Dokumentation  4.2.0
BlinkButton.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 #include <qsf/job/JobProxy.h>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace Rocket
22 {
23  namespace Core
24  {
25  class Element;
26  }
27 }
28 
29 
30 //[-------------------------------------------------------]
31 //[ Namespace ]
32 //[-------------------------------------------------------]
33 namespace em5
34 {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Classes ]
39  //[-------------------------------------------------------]
45  {
46 
47 
48  //[-------------------------------------------------------]
49  //[ Public methods ]
50  //[-------------------------------------------------------]
51  public:
52  explicit BlinkButton();
53  ~BlinkButton();
54 
59  void setElement(Rocket::Core::Element* element);
60 
61 
62  //[-------------------------------------------------------]
63  //[ Private methods ]
64  //[-------------------------------------------------------]
65  private:
66  void activateJob();
67  void updateAnimation(const qsf::JobArguments& jobArguments);
68 
69 
70  //[-------------------------------------------------------]
71  //[ Private data ]
72  //[-------------------------------------------------------]
73  private:
74  float mBlinkPhase;
75  Rocket::Core::Element* mElement;
76  qsf::JobProxy mUpdateJobProxy;
77 
78 
79  };
80 
81 
82 //[-------------------------------------------------------]
83 //[ Namespace ]
84 //[-------------------------------------------------------]
85 } // em5
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: OverlayComponent.h:29
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40