![]() |
Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
|
Class defining the base widget. More...
#include <widget.h>


Public Member Functions | |
| WidgetX (const RendererGva &renderer, widget::WidgetEnum widget_type) | |
| Construct a new Widget X object. | |
| virtual std::string | GetWidgetName () const =0 |
| Get the Widget Name attribute. | |
| virtual widget::WidgetEnum | GetWidgetType () const |
| Get the Widget Type attribute. | |
| void | SetVisible (bool visible) |
| Set the Visible object. | |
| bool | GetVisible () const |
| Get the Visible object. | |
| virtual void | SetX (uint32_t x) |
| Set the X dimension. | |
| uint32_t | GetX () const |
| Get the Y dimension. | |
| virtual void | SetY (uint32_t y) |
| Set the Y dimension. | |
| uint32_t | GetY () const |
| Get the Y dimension. | |
| void | SetWidth (uint32_t width) |
| Set the Width. | |
| uint32_t | GetWidth () const |
| Get the Width. | |
| void | SetHeight (uint32_t width) |
| Set the Height. | |
| uint32_t | GetHeight () const |
| Get the Height. | |
| virtual void | Draw ()=0 |
| Draw the widget. | |
| widget::WidgetEnum | GetType () const |
| Get the Type object. | |
| RendererGva * | GetRenderer () const |
| Get the Renderer object. | |
| void | SetStateText (LabelStates state) |
| Set the State Text of an on screen label. | |
| void | SetStateLabel (const LabelStates state) |
| Set the State Label object. | |
| uint32_t | GetStateTextColour (LabelStates state) const |
| Get the State Text Colour object. | |
Class defining the base widget.
|
explicit |
Construct a new Widget X object.
| renderer | The underlying renderer, should be cairo |
| widget_type | The type of widget |
|
pure virtual |
Draw the widget.
Implemented in gva::WidgetObjectLocalisation, gva::WidgetAlarmIndicator, gva::WidgetBottomLabels, gva::WidgetVideo, gva::WidgetDriverBatteryBar, gva::WidgetDriverRpmFuel, gva::WidgetDriverSpeedometer, gva::WidgetKeyboard, gva::WidgetMode, gva::WidgetPlanPositionIndicator, gva::WidgetSideLabels, gva::WidgetMessageBox, gva::WidgetTableDynamic, gva::WidgetTopLabels, gva::WidgetCanvas, gva::WidgetStatusBar, and gva::WidgetTable.
| uint32_t gva::WidgetX::GetHeight | ( | ) | const |
Get the Height.
| RendererGva * gva::WidgetX::GetRenderer | ( | ) | const |
Get the Renderer object.
| uint32_t gva::WidgetX::GetStateTextColour | ( | LabelStates | state | ) | const |
Get the State Text Colour object.
| state |
| widget::WidgetEnum gva::WidgetX::GetType | ( | ) | const |
Get the Type object.
| bool gva::WidgetX::GetVisible | ( | ) | const |
Get the Visible object.
|
pure virtual |
Get the Widget Name attribute.
Implemented in gva::WidgetObjectLocalisation, gva::WidgetAlarmIndicator, gva::WidgetBottomLabels, gva::WidgetCanvas, gva::WidgetDriverBatteryBar, gva::WidgetDriverRpmFuel, gva::WidgetDriverSpeedometer, gva::WidgetKeyboard, gva::WidgetMode, gva::WidgetPlanPositionIndicator, gva::WidgetSideLabels, gva::WidgetMessageBox, gva::WidgetStatusBar, gva::WidgetTableDynamic, gva::WidgetTopLabels, and gva::WidgetTable.
|
virtual |
Get the Widget Type attribute.
| uint32_t gva::WidgetX::GetWidth | ( | ) | const |
Get the Width.
| uint32_t gva::WidgetX::GetX | ( | ) | const |
Get the Y dimension.
| uint32_t gva::WidgetX::GetY | ( | ) | const |
Get the Y dimension.
| void gva::WidgetX::SetHeight | ( | uint32_t | width | ) |
Set the Height.
| width |
| void gva::WidgetX::SetStateLabel | ( | const LabelStates | state | ) |
Set the State Label object.
| state |
| void gva::WidgetX::SetStateText | ( | LabelStates | state | ) |
Set the State Text of an on screen label.
| state |
| void gva::WidgetX::SetVisible | ( | bool | visible | ) |
Set the Visible object.
| visible |
| void gva::WidgetX::SetWidth | ( | uint32_t | width | ) |
Set the Width.
| width |
|
virtual |
Set the X dimension.
| x |
|
virtual |
Set the Y dimension.
| y |