HoverRace  2.0
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
HoverRace::Display::FlexGrid::DefaultCell Class Reference

#include <FlexGrid.h>

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

Public Member Functions

 DefaultCell ()
 
 DefaultCell (DefaultCell &&o)
 
virtual ~DefaultCell ()
 
Alignment GetAlignment () const
 
bool IsFill () const
 
DefaultCelloperator= (DefaultCell &&o)
 
void SetAlignment (Alignment alignment) override
 Set the how the widget is aligned inside the cell when the cell is larger than the widget. More...
 
void SetFill (bool fill) override
 Set whether the widget is resized to fill the space of the cell. More...
 
- Public Member Functions inherited from HoverRace::Display::FlexGrid::Cell
 Cell ()
 
virtual ~Cell ()
 

Protected Member Functions

bool Contains (const UiViewModel *) const override
 Check if this contains the specified widget. More...
 
void DropFocus () override
 Trigger DropFocus() on the contents. More...
 
Vec3 Measure () override
 Measure the size of the cell contents. More...
 
bool OnAction () override
 Trigger OnAction() on the contents. More...
 
bool OnNavigate (const Control::Nav &) override
 Trigger OnNavigate() on the contents. More...
 
void SetExtents (double, double, double, double, double, double) override
 Set the position and size of the cell. More...
 
bool TryFocus (const Control::Nav &) override
 Trigger TryFocus() on the contents. More...
 

Private Types

using SUPER = Cell
 

Private Attributes

Alignment alignment
 
bool fill
 

Member Typedef Documentation

Constructor & Destructor Documentation

HoverRace::Display::FlexGrid::DefaultCell::DefaultCell ( )
inline
HoverRace::Display::FlexGrid::DefaultCell::DefaultCell ( DefaultCell &&  o)
inline
virtual HoverRace::Display::FlexGrid::DefaultCell::~DefaultCell ( )
inlinevirtual

Member Function Documentation

bool HoverRace::Display::FlexGrid::DefaultCell::Contains ( const UiViewModel child) const
inlineoverrideprotectedvirtual

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.

Implements HoverRace::Display::FlexGrid::Cell.

void HoverRace::Display::FlexGrid::DefaultCell::DropFocus ( )
inlineoverrideprotectedvirtual

Trigger DropFocus() on the contents.

Implements HoverRace::Display::FlexGrid::Cell.

Alignment HoverRace::Display::FlexGrid::DefaultCell::GetAlignment ( ) const
inline
bool HoverRace::Display::FlexGrid::DefaultCell::IsFill ( ) const
inline
Vec3 HoverRace::Display::FlexGrid::DefaultCell::Measure ( )
inlineoverrideprotectedvirtual

Measure the size of the cell contents.

Returns
The size (may be zero).

Implements HoverRace::Display::FlexGrid::Cell.

bool HoverRace::Display::FlexGrid::DefaultCell::OnAction ( )
inlineoverrideprotectedvirtual

Trigger OnAction() on the contents.

Implements HoverRace::Display::FlexGrid::Cell.

bool HoverRace::Display::FlexGrid::DefaultCell::OnNavigate ( const Control::Nav )
inlineoverrideprotectedvirtual

Trigger OnNavigate() on the contents.

Implements HoverRace::Display::FlexGrid::Cell.

DefaultCell& HoverRace::Display::FlexGrid::DefaultCell::operator= ( DefaultCell &&  o)
inline
void HoverRace::Display::FlexGrid::DefaultCell::SetAlignment ( Alignment  alignment)
inlineoverridevirtual

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

Parameters
alignmentThe alignment (default is NW).

Implements HoverRace::Display::FlexGrid::Cell.

void HoverRace::Display::FlexGrid::DefaultCell::SetExtents ( double  x,
double  y,
double  w,
double  h,
double  paddingX,
double  paddingY 
)
inlineoverrideprotectedvirtual

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.

Implements HoverRace::Display::FlexGrid::Cell.

void HoverRace::Display::FlexGrid::DefaultCell::SetFill ( bool  fill)
inlineoverridevirtual

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.

Implements HoverRace::Display::FlexGrid::Cell.

bool HoverRace::Display::FlexGrid::DefaultCell::TryFocus ( const Control::Nav nav)
inlineoverrideprotectedvirtual

Trigger TryFocus() on the contents.

Implements HoverRace::Display::FlexGrid::Cell.

Member Data Documentation

Alignment HoverRace::Display::FlexGrid::DefaultCell::alignment
private
bool HoverRace::Display::FlexGrid::DefaultCell::fill
private

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