HoverRace  2.0
Public Member Functions | Protected Member Functions | Friends | List of all members
HoverRace::Display::FlexGrid::Cell Class Referenceabstract

#include <FlexGrid.h>

+ Inheritance diagram for HoverRace::Display::FlexGrid::Cell:

Public Member Functions

 Cell ()
 
virtual ~Cell ()
 
virtual void SetAlignment (Alignment alignment)=0
 Set the how the widget is aligned inside the cell when the cell is larger than the widget. More...
 
virtual void SetFill (bool fill)=0
 Set whether the widget is resized to fill the space of the cell. More...
 

Protected Member Functions

virtual bool Contains (const UiViewModel *child) const =0
 Check if this contains the specified widget. More...
 
virtual void DropFocus ()=0
 Trigger DropFocus() on the contents. More...
 
virtual Vec3 Measure ()=0
 Measure the size of the cell contents. More...
 
virtual bool OnAction ()=0
 Trigger OnAction() on the contents. More...
 
virtual bool OnNavigate (const Control::Nav &)=0
 Trigger OnNavigate() on the contents. More...
 
virtual void SetExtents (double x, double y, double w, double h, double paddingX, double paddingY)=0
 Set the position and size of the cell. More...
 
virtual bool TryFocus (const Control::Nav &nav)=0
 Trigger TryFocus() on the contents. More...
 

Friends

class FlexGrid
 

Constructor & Destructor Documentation

HoverRace::Display::FlexGrid::Cell::Cell ( )
inline
virtual HoverRace::Display::FlexGrid::Cell::~Cell ( )
inlinevirtual

Member Function Documentation

virtual bool HoverRace::Display::FlexGrid::Cell::Contains ( const UiViewModel child) const
protectedpure virtual

Check if this contains the specified widget.

Parameters
childThe child to check (may be nullptr).
Returns
true if the cell contains the widget, false otherwise.

Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.

virtual void HoverRace::Display::FlexGrid::Cell::DropFocus ( )
protectedpure virtual
virtual Vec3 HoverRace::Display::FlexGrid::Cell::Measure ( )
protectedpure virtual

Measure the size of the cell contents.

Returns
The size (may be zero).

Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.

virtual bool HoverRace::Display::FlexGrid::Cell::OnAction ( )
protectedpure virtual
virtual bool HoverRace::Display::FlexGrid::Cell::OnNavigate ( const Control::Nav )
protectedpure virtual
virtual void HoverRace::Display::FlexGrid::Cell::SetAlignment ( Alignment  alignment)
pure virtual

Set the how the widget is aligned inside the cell when the cell is larger than the widget.

Parameters
alignmentThe alignment (default is NW).

Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.

virtual void HoverRace::Display::FlexGrid::Cell::SetExtents ( double  x,
double  y,
double  w,
double  h,
double  paddingX,
double  paddingY 
)
protectedpure virtual

Set the position and size of the cell.

Parameters
xThe X position of the cell.
yThe Y position of the cell.
wThe width of the cell.
hThe height of the cell.
paddingXThe horizontal padding on the cell.
paddingYThe vertical padding on the cell.

Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.

virtual void HoverRace::Display::FlexGrid::Cell::SetFill ( bool  fill)
pure virtual

Set whether the widget is resized to fill the space of the cell.

If the widget cannot be resized, then nothing will be done.

Parameters
filltrue To resize the widget, false to leave it alone.

Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.

virtual bool HoverRace::Display::FlexGrid::Cell::TryFocus ( const Control::Nav nav)
protectedpure virtual

Friends And Related Function Documentation

friend class FlexGrid
friend

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