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

Class definition of the Widget Base. More...

#include <renderer_gva.h>

Inheritance diagram for gva::WidgetBase:
Inheritance graph
Collaboration diagram for gva::WidgetBase:
Collaboration graph

Public Member Functions

 WidgetBase (RendererGva &renderer)
 Construct a new Widget Base object.
 
void Draw (uint32_t x, uint32_t y, uint32_t width, uint32_t height, std::string text, uint32_t text_colour)
 
uint32_t GetX () const
 Get the X pixel attribute.
 
uint32_t GetY () const
 Get the Y pixel attribute.
 

Data Fields

RendererGvarenderer_
 The GVA renderer.
 
uint32_t x_
 The X pixel position.
 
uint32_t y_
 The Y pixel position.
 

Detailed Description

Class definition of the Widget Base.

Constructor & Destructor Documentation

◆ WidgetBase()

gva::WidgetBase::WidgetBase ( RendererGva renderer)
inlineexplicit

Construct a new Widget Base object.

Parameters
renderer

Member Function Documentation

◆ Draw()

void gva::WidgetBase::Draw ( uint32_t  x,
uint32_t  y,
uint32_t  width,
uint32_t  height,
std::string  text,
uint32_t  text_colour 
)
Parameters
x
y
width
height
text
text_colour

◆ GetX()

uint32_t gva::WidgetBase::GetX ( ) const
inline

Get the X pixel attribute.

Returns
uint32_t

◆ GetY()

uint32_t gva::WidgetBase::GetY ( ) const
inline

Get the Y pixel attribute.

Returns
uint32_t

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