![]() |
Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
|
A widget representing a table of elements. More...
#include <table.h>
Public Member Functions | |
WidgetTable (const RendererGva &renderer, TouchGva *touch, uint32_t background_colour=0x000000) | |
Construct a new Widget Table object. | |
~WidgetTable () override=default | |
Destroy the Widget Keyboard object. | |
std::string | GetWidgetName () const override |
Get the Widget Name attribute. | |
void | Draw () override |
The base class override to draw the table once setup. | |
virtual void | AddRow (uint32_t foreground_colour, uint32_t background_colour, uint32_t outline_colour, uint32_t highlight_colour, widget::WeightType font_weight) |
Add a row to the table. | |
virtual void | AddRow () |
Add a row to the table. | |
virtual void | AddRow (widget::WeightType font_weight) |
Add a row to the table. | |
virtual void | AddCell (const std::string text, uint32_t width) |
Add a basic cell. | |
virtual void | AddCell (const std::string text, uint32_t width, uint32_t background_colour) |
Add a new cell with background colour. | |
virtual void | AddCell (const std::string text, uint32_t width, widget::CellAlignType align) |
Add a new cell specifying alignment. | |
virtual void | AddCell (const std::string text, uint32_t width, widget::CellAlignType align, uint32_t background_colour) |
Add a new cell specifying alignment. | |
void | Reset () |
Reset the table. | |
uint32_t | GetBackgroundColour () const |
Get the Background Colour attribute. | |
void | SetBackgroundColour (uint32_t background_colour) |
Set the Background Colour attribute. | |
void | SetCurrentRow (uint32_t row) |
Set the Current selected row, will be highlighted in the theme colours. | |
void | SetNextRow () |
Set the Next Row attribute. | |
void | SetPreviousRow () |
Set the Previous Row attribute. | |
uint32_t | GetCurrentRow () const |
Get the Current selected highlighted row. | |
std::vector< RowType > & | GetRows () |
Get the Rows vector. | |
void | SetRows (const std::vector< RowType > &rows) |
Get the all the Rows in supplie vector. | |
![]() | |
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. | |
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. | |
Additional Inherited Members | |
![]() | |
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. | |
A widget representing a table of elements.
|
explicit |
Construct a new Widget Table object.
renderer | the renderer |
touch | the touch object |
background_colour | the background colour |
|
virtual |
Add a basic cell.
widgets
text | The text to be contained in the cell |
width | The width of the cell in pixels |
Reimplemented in gva::WidgetTableDynamic.
|
virtual |
Add a new cell with background colour.
text | The text to be contained in the cell |
width | The width of the cell in pixels |
background_colour | Cell background colour |
Reimplemented in gva::WidgetTableDynamic.
|
virtual |
Add a new cell specifying alignment.
text | The text to be contained in the cell |
width | The width of the ctable_ |
align | Alignment CellAlignType |
Reimplemented in gva::WidgetTableDynamic.
|
virtual |
Add a new cell specifying alignment.
text | The text to be contained in the cell |
width | The width of the cell in pixels |
align | Alignment CellAlignType:: |
background_colour | Cell background colour |
Reimplemented in gva::WidgetTableDynamic.
|
virtual |
Add a row to the table.
Reimplemented in gva::WidgetTableDynamic.
|
virtual |
Add a row to the table.
foreground_colour | Foreground colour |
background_colour | Background colour |
outline_colour | Outline colour |
highlight_colour | Highlight colour |
font_weight | The font weight |
Reimplemented in gva::WidgetTableDynamic.
|
virtual |
Add a row to the table.
font_weight | The font weight |
Reimplemented in gva::WidgetTableDynamic.
|
overridevirtual |
The base class override to draw the table once setup.
Implements gva::WidgetX.
Reimplemented in gva::WidgetTableDynamic.
uint32_t gva::WidgetTable::GetBackgroundColour | ( | ) | const |
Get the Background Colour attribute.
uint32_t gva::WidgetTable::GetCurrentRow | ( | ) | const |
Get the Current selected highlighted row.
row |
std::vector< RowType > & gva::WidgetTable::GetRows | ( | ) |
Get the Rows vector.
|
inlineoverridevirtual |
Get the Widget Name attribute.
Implements gva::WidgetX.
Reimplemented in gva::WidgetTableDynamic.
void gva::WidgetTable::SetBackgroundColour | ( | uint32_t | background_colour | ) |
Set the Background Colour attribute.
background_colour |
void gva::WidgetTable::SetCurrentRow | ( | uint32_t | row | ) |
Set the Current selected row, will be highlighted in the theme colours.
row |
void gva::WidgetTable::SetRows | ( | const std::vector< RowType > & | rows | ) |
Get the all the Rows in supplie vector.
rows |