HoverRace
2.0
|
#include <FlexGrid.h>
Public Member Functions | |
BasicCell (FlexGrid *parent, const DefaultCell &defaultCell, std::shared_ptr< T > contents) | |
virtual | ~BasicCell () |
std::shared_ptr< T > & | GetContents () |
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 *child) 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 &nav) override |
Trigger OnNavigate() on the contents. More... | |
void | SetExtents (double x, double y, double w, double h, double paddingX, double paddingY) override |
Set the position and size of the cell. More... | |
void | SetSize (double w, double h) |
bool | TryFocus (const Control::Nav &nav) override |
Trigger TryFocus() on the contents. More... | |
Private Types | |
using | SUPER = Cell |
Private Attributes | |
std::shared_ptr< T > | contents |
bool | fill |
FlexGrid * | parent |
|
private |
|
inline |
|
inlinevirtual |
|
inlineoverrideprotectedvirtual |
Check if this contains the specified widget.
child | The child to check (may be nullptr ). |
true
if the cell contains the widget, false
otherwise. Implements HoverRace::Display::FlexGrid::Cell.
|
inlineoverrideprotectedvirtual |
Trigger DropFocus() on the contents.
Implements HoverRace::Display::FlexGrid::Cell.
|
inline |
|
inlineoverrideprotectedvirtual |
Measure the size of the cell contents.
Implements HoverRace::Display::FlexGrid::Cell.
|
inlineoverrideprotectedvirtual |
Trigger OnAction() on the contents.
Implements HoverRace::Display::FlexGrid::Cell.
|
inlineoverrideprotectedvirtual |
Trigger OnNavigate() on the contents.
Implements HoverRace::Display::FlexGrid::Cell.
|
inlineoverridevirtual |
Set the how the widget is aligned inside the cell when the cell is larger than the widget.
alignment | The alignment (default is NW ). |
Implements HoverRace::Display::FlexGrid::Cell.
|
inlineoverrideprotectedvirtual |
Set the position and size of the cell.
x | The X position of the cell. |
y | The Y position of the cell. |
w | The width of the cell. |
h | The height of the cell. |
paddingX | The horizontal padding on the cell. |
paddingY | The vertical padding on the cell. |
Implements HoverRace::Display::FlexGrid::Cell.
|
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.
fill | true To resize the widget, false to leave it alone. |
Implements HoverRace::Display::FlexGrid::Cell.
|
inlineprotected |
|
inlineoverrideprotectedvirtual |
Trigger TryFocus() on the contents.
Implements HoverRace::Display::FlexGrid::Cell.
|
private |
|
private |
|
private |