Flair
Framework Libre Air
flair::gui::LayoutPosition Class Reference

Class to define a position in a layout on the ground station. More...

#include <LayoutPosition.h>

Public Member Functions

 LayoutPosition (const Layout *layout, int16_t row, int16_t col)
 Constructor. More...
 
 ~LayoutPosition ()
 Destructor. More...
 
const LayoutgetLayout (void) const
 get Layout More...
 
int16_t Row (void) const
 get row More...
 
int16_t Col (void) const
 get col More...
 

Detailed Description

Class to define a position in a layout on the ground station.

Constructor & Destructor Documentation

flair::gui::LayoutPosition::LayoutPosition ( const Layout layout,
int16_t  row,
int16_t  col 
)

Constructor.

Construct a LayoutPosition, in given Layout at given place.

Parameters
layoutlayout
rowrow position
colcol position
flair::gui::LayoutPosition::~LayoutPosition ( )

Destructor.

Member Function Documentation

const Layout* flair::gui::LayoutPosition::getLayout ( void  ) const

get Layout

Returns
the parent Layout
int16_t flair::gui::LayoutPosition::Row ( void  ) const

get row

Returns
row position
int16_t flair::gui::LayoutPosition::Col ( void  ) const

get col

Returns
col position