|
HoverRace
2.0
|
#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 |
|
inline |
|
inlinevirtual |
|
protectedpure virtual |
Check if this contains the specified widget.
| child | The child to check (may be nullptr). |
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.
|
protectedpure virtual |
Trigger DropFocus() on the contents.
Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.
|
protectedpure virtual |
Measure the size of the cell contents.
Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.
|
protectedpure virtual |
Trigger OnAction() on the contents.
Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.
|
protectedpure virtual |
Trigger OnNavigate() on the contents.
Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.
|
pure virtual |
Set the how the widget is aligned inside the cell when the cell is larger than the widget.
| alignment | The alignment (default is NW). |
Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.
|
protectedpure virtual |
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. |
Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.
|
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.
| fill | true 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.
|
protectedpure virtual |
Trigger TryFocus() on the contents.
Implemented in HoverRace::Display::FlexGrid::CellProxy, HoverRace::Display::FlexGrid::BasicCell< T >, and HoverRace::Display::FlexGrid::DefaultCell.
|
friend |
1.8.11