Flair
Framework Libre Air
Box.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef BOX_H
14 #define BOX_H
15 
16 #include <Widget.h>
17 
18 namespace flair {
19 namespace gui {
20 
21 class Layout;
22 class LayoutPosition;
23 
35 class Box : public Widget {
36 public:
51  Box(const LayoutPosition *position, std::string name, std::string type);
52 
57  ~Box();
58 
69  bool ValueChanged(void);
70 
71 protected:
83  void SetValueChanged(void);
84 
92  void GetMutex(void) const;
93 
101  void ReleaseMutex(void) const;
102 
103 private:
104  bool value_changed;
105 };
106 
107 } // end namespace gui
108 } // end namespace flair
109 
110 #endif // BOX_H
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class for all Framework's widget classes.
bool ValueChanged(void)
Has the value changed since last call?
void ReleaseMutex(void) const
Release Mutex.
Abstract class to display a box on the ground station.
Definition: Box.h:35
~Box()
Destructor.
Abstract class for all Framework's widget classes.
Definition: Widget.h:38
void SetValueChanged(void)
Set the value changed flag.
void GetMutex(void) const
Get Mutex.
Box(const LayoutPosition *position, std::string name, std::string type)
Constructor.
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28