Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
gva::WidgetDriverBatteryBar Class Reference

Class defining the mode widget. More...

#include <battery_bar.h>

Inheritance diagram for gva::WidgetDriverBatteryBar:
Inheritance graph
Collaboration diagram for gva::WidgetDriverBatteryBar:
Collaboration graph

Public Member Functions

 WidgetDriverBatteryBar (const RendererGva &renderer)
 Construct a new Widget Plan Position Indicator object.
 
std::string GetWidgetName () const final
 Get the Widget Name attribute.
 
void Draw () final
 The base overloaded Draw fuctions to draw this widget type.
 
void SetValue (int16_t value)
 Set the Value.
 
int16_t GetValue () const
 Get the Value.
 
- Public Member Functions inherited from gva::WidgetX
 WidgetX (const RendererGva &renderer, widget::WidgetEnum widget_type)
 Construct a new Widget X object.
 
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.
 
widget::WidgetEnum GetType () const
 Get the Type object.
 
RendererGvaGetRenderer () 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.
 

Additional Inherited Members

- Data Fields inherited from gva::WidgetX
uint32_t x_ = 0
 The widget x location in pixels.
 
uint32_t y_ = 0
 The widget y location in pixels.
 
uint32_t width_ = 0
 The widget width in pixels.
 
uint32_t height_ = 0
 The widget height in pixels.
 

Detailed Description

Class defining the mode widget.

Constructor & Destructor Documentation

◆ WidgetDriverBatteryBar()

gva::WidgetDriverBatteryBar::WidgetDriverBatteryBar ( const RendererGva renderer)
explicit

Construct a new Widget Plan Position Indicator object.

Parameters
renderer

Member Function Documentation

◆ Draw()

void gva::WidgetDriverBatteryBar::Draw ( )
finalvirtual

The base overloaded Draw fuctions to draw this widget type.

Implements gva::WidgetX.

◆ GetValue()

int16_t gva::WidgetDriverBatteryBar::GetValue ( ) const
inline

Get the Value.

Returns
int16_t

◆ GetWidgetName()

std::string gva::WidgetDriverBatteryBar::GetWidgetName ( ) const
inlinefinalvirtual

Get the Widget Name attribute.

Returns
std::string

Implements gva::WidgetX.

◆ SetValue()

void gva::WidgetDriverBatteryBar::SetValue ( int16_t  value)
inline

Set the Value.

Parameters
valuethe value to set

The documentation for this class was generated from the following files: