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

This is the class describing a TableWidget row. More...

#include <row_type.h>

Collaboration diagram for gva::RowType:
Collaboration graph

Public Member Functions

 RowType ()=default
 Construct a new Row Type object.
 
 ~RowType ()=default
 Destroy the Row Type object.
 
 RowType (const uint32_t background_colour, const uint32_t foreground_colour, const uint32_t outline_colour, const uint32_t highlight_colour, const widget::WeightType font_weight, const bool highlighted, const widget::CellAlignType alignment)
 Construct a new Row Type object.
 
 RowType (const RowType &a)
 Construct a new Row Type object.
 
RowTypeoperator= (const RowType &a)
 Assignment operator.
 
bool operator< (const RowType &a) const
 Sorting is based on priority then time.
 
bool operator> (const RowType &a) const
 Sorting is based on priority then time.
 
uint32_t GetForegroundColour () const
 Get the Foreground Colour.
 
uint32_t GetBackgroundColour () const
 Get the Background Colour.
 
uint32_t GetOutlineColour () const
 Get the Outline Colour.
 
uint32_t GetHighlightColour () const
 Get the Highlight Colour.
 
widget::WeightType GetFontWeight () const
 Get the Font Weight object.
 
bool GetHighlighted () const
 Get the Highlighted object.
 
void SetHighlighted (bool value)
 Set the Highlighted flag.
 
widget::CellAlignType GetCellAlignment () const
 Get the Cell Alignment object.
 
std::vector< CellType > * GetCells ()
 Get a reference to the Cells vector for this row.
 

Detailed Description

This is the class describing a TableWidget row.

Constructor & Destructor Documentation

◆ RowType() [1/2]

gva::RowType::RowType ( const uint32_t  background_colour,
const uint32_t  foreground_colour,
const uint32_t  outline_colour,
const uint32_t  highlight_colour,
const widget::WeightType  font_weight,
const bool  highlighted,
const widget::CellAlignType  alignment 
)

Construct a new Row Type object.

Parameters
background_colourThe background colour of the row
foreground_colourThe foreground colour of the row
outline_colourThe outline colour of the row
highlight_colourThe highlight colour of the row
font_weightThe font weight of the row
highlightedThe highlighted flag
alignmentThe alignment of the row

◆ RowType() [2/2]

gva::RowType::RowType ( const RowType a)

Construct a new Row Type object.

Parameters
aThe row to copy

Member Function Documentation

◆ GetBackgroundColour()

uint32_t gva::RowType::GetBackgroundColour ( ) const

Get the Background Colour.

Returns
uint32_t The background colour

◆ GetCellAlignment()

widget::CellAlignType gva::RowType::GetCellAlignment ( ) const

Get the Cell Alignment object.

Returns
CellAlignType The cell alignment

◆ GetCells()

std::vector< CellType > * gva::RowType::GetCells ( )
inline

Get a reference to the Cells vector for this row.

Returns
std::vector<CellType>&

◆ GetFontWeight()

widget::WeightType gva::RowType::GetFontWeight ( ) const

Get the Font Weight object.

Returns
widget::WeightType

◆ GetForegroundColour()

uint32_t gva::RowType::GetForegroundColour ( ) const

Get the Foreground Colour.

Returns
uint32_t The foreground colour

◆ GetHighlightColour()

uint32_t gva::RowType::GetHighlightColour ( ) const

Get the Highlight Colour.

Returns
uint32_t The highlight colour

◆ GetHighlighted()

bool gva::RowType::GetHighlighted ( ) const

Get the Highlighted object.

Returns
true
false

◆ GetOutlineColour()

uint32_t gva::RowType::GetOutlineColour ( ) const

Get the Outline Colour.

Returns
uint32_t The outline colour

◆ operator=()

RowType & gva::RowType::operator= ( const RowType a)

Assignment operator.

Parameters
aThe row to copy
Returns
RowType&

◆ operator>()

bool gva::RowType::operator> ( const RowType a) const

Sorting is based on priority then time.

Parameters
aThe row to compare
Returns
true
false

◆ SetHighlighted()

void gva::RowType::SetHighlighted ( bool  value)

Set the Highlighted flag.

Parameters
valueThe value to set

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