Flair
Framework Libre Air
Label.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 LABEL_H
14 #define LABEL_H
15 
16 #include <Widget.h>
17 
18 namespace flair {
19 namespace gui {
20 
21 class LayoutPosition;
22 
28 class Label : public Widget {
29 public:
42  Label(const LayoutPosition *position, std::string name,
43  size_t buf_size = 255);
44 
49  ~Label();
50 
56  void SetText(const char *format, ...);
57 
58 private:
59  char *printf_buffer;
60 };
61 
62 } // end namespace gui
63 } // end namespace flair
64 
65 #endif // LABEL_H
Label(const LayoutPosition *position, std::string name, size_t buf_size=255)
Constructor.
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class for all Framework's widget classes.
Class displaying a QLabel on the ground station.
Definition: Label.h:28
Abstract class for all Framework's widget classes.
Definition: Widget.h:38
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28
~Label()
Destructor.
void SetText(const char *format,...)
Set text.