|
| Chronometer (Display &display, const std::string &title, std::shared_ptr< Util::Clock > clock) |
| Constructor. More...
|
|
virtual | ~Chronometer () |
|
void | Advance (Util::OS::timestamp_t tick) override |
|
| HudDecor (Display &display) |
| Constructor. More...
|
|
virtual | ~HudDecor () |
|
const Vec2 & | GetHudScale () const |
|
Player::Player * | GetPlayer () const |
|
sizeChangedSignal_t & | GetSizeChangedSignal () |
|
Model::Track * | GetTrack () const |
|
void | SetHudScale (const Vec2 &hudScale) |
| Sets HUD scale factor. More...
|
|
void | SetPlayer (std::shared_ptr< Player::Player > player) |
| Change the target player for this HUD element. More...
|
|
void | SetTrack (std::shared_ptr< Model::Track > track) |
| Change the track currently being played. More...
|
|
std::shared_ptr< Player::Player > | SharePlayer () const |
|
std::shared_ptr< Model::Track > | ShareTrack () const |
|
| Container (Display &display, uiLayoutFlags_t layoutFlags=0) |
|
| Container (Display &display, const Vec2 &size, bool clip=true, uiLayoutFlags_t layoutFlags=0) |
|
virtual | ~Container () |
|
void | Clear () override |
| Remove all child elements. More...
|
|
void | DropFocus () override |
| Force this widget to give up focus, if it is currently focused. More...
|
|
template<class T , class... Args> |
std::enable_if< std::is_base_of< UiViewModel, T >::value, std::shared_ptr< T > >::type | NewChild (Args &&...args) |
| Create and append a new child widget to the end of the list. More...
|
|
bool | OnAction () override |
|
bool | OnNavigate (const Control::Nav &nav) override |
|
template<class T > |
std::enable_if< std::is_base_of< UiViewModel, T >::value, std::shared_ptr< T > >::type | RemoveChild (const std::shared_ptr< T > &child) |
| Remove a child element. More...
|
|
template<class T > |
std::enable_if< std::is_base_of< UiViewModel, T >::value, std::shared_ptr< T > >::type | ReorderChild (const std::shared_ptr< T > &child, size_t idx) |
| Move a widget to a different position in the list. More...
|
|
void | Reserve (size_t capacity) override |
| Increase the capacity of the of this container. More...
|
|
bool | TryFocus (const Control::Nav &nav=Control::Nav::NEUTRAL) override |
| Attempts to give this widget focus. More...
|
|
| BaseContainer (Display &display, uiLayoutFlags_t layoutFlags=0) |
| Constructor for an unsized container without clipping. More...
|
|
| BaseContainer (Display &display, const Vec2 &size, bool clip=true, uiLayoutFlags_t layoutFlags=0) |
| Constructor for a sized container. More...
|
|
virtual | ~BaseContainer () |
|
void | AttachView (Display &disp) override |
|
template<class Fn > |
void | ForEachChild (Fn fn) const |
| Iterate over each child widget. More...
|
|
template<class Fn > |
void | ForEachVisibleChild (Fn fn) const |
| Iterate over each visible child widget. More...
|
|
const Vec2 & | GetChildOffset () const |
| Retrieve the offset to the position of the child widgets. More...
|
|
double | GetOpacity () const |
| Retrieve the opacity. More...
|
|
const Vec2 & | GetSize () const |
| Retrieve the size of the container. More...
|
|
bool | IsClip () const |
| Check if child elements are clipped to the container bounds. More...
|
|
bool | IsEmpty () const |
| Check if this container is devoid of child widgets. More...
|
|
bool | IsVisible () const |
| Check if the children of this container are shown. More...
|
|
Vec3 | Measure () override |
| Calculate the size of the component. More...
|
|
bool | OnMouseMoved (const Vec2 &pos) override |
|
bool | OnMousePressed (const Control::Mouse::Click &click) override |
|
bool | OnMouseReleased (const Control::Mouse::Click &click) override |
|
bool | OnMouseScrolled (const Control::Mouse::Scroll &scroll) override |
|
void | SetClip (bool clip) |
| Set whether child elements are clipped to the container bounds. More...
|
|
void | SetOpacity (double opacity) |
| Set the opacity of the container. More...
|
|
void | SetSize (const Vec2 &size) |
| Set the size of the container. More...
|
|
void | SetSize (double w, double h) |
| Convenience function for SetSize(const Vec2&). More...
|
|
void | SetVisible (bool visible) |
| Sets whether the widgets in this container are visible. More...
|
|
void | ShrinkWrap () |
| Resize the container to the minimum size that will fit all of the child elements. More...
|
|
| UiViewModel (uiLayoutFlags_t layoutFlags=0) |
|
virtual | ~UiViewModel () |
|
Vec2 | GetAlignedPos (const Vec2 &pos, double w, double h) const |
| Retrieve an arbitrary position adjusted by the current alignment. More...
|
|
Vec2 | GetAlignedPos (double w, double h) const |
| Retrieve the position adjusted by the current alignment. More...
|
|
Alignment | GetAlignment () const |
| Retrieve the alignment of the component. More...
|
|
focusRelinquishedSignal_t & | GetFocusRelinquishedSignal () |
|
focusRequestedSignal_t & | GetFocusRequestedSignal () |
|
uiLayoutFlags_t | GetLayoutFlags () const |
| Retrieve the layout flags. More...
|
|
const Vec2 & | GetPos () const |
| Get the position of the component. More...
|
|
const Vec2 & | GetTranslation () const |
| Retrieves the position translation. More...
|
|
bool | IsFocused () const |
| Check if this widget currently has input focus. More...
|
|
uiLayoutFlags_t | IsLayoutFloating () const |
|
uiLayoutFlags_t | IsLayoutUnscaled () const |
|
void | RequestFocus () |
| Attempt to hand over the input focus to this widget. More...
|
|
void | SetAlignment (Alignment alignment) |
| Set the alignment of the component. More...
|
|
void | SetPos (const Vec2 &pos) |
| Set the position of the component. More...
|
|
void | SetPos (double x, double y) |
| Convenience function for SetPos(const Vec2&). More...
|
|
void | SetTranslation (const Vec2 &translation) |
| Sets the position translation. More...
|
|
void | SetTranslation (double x, double y) |
| Convenience function for SetTranslation(const Vec2&). More...
|
|
| ViewModel () |
|
virtual | ~ViewModel () |
|
View * | GetView () const |
|
void | PrepareRender () |
|
void | Render () |
|
void | SetView (std::unique_ptr< View > &&view) |
|
|
void | Layout () override |
| Adjust the size and position of any child elements. More...
|
|
void | OnHudRescaled (const Vec2 &hudScale) override |
| Called when the containing HUD changes the scaling factor (that is, when the viewport changes). More...
|
|
void | FireModelUpdate (int prop) override |
| Indicate that a model property has changed. More...
|
|
void | OnChildRelinquishedFocus (UiViewModel &child, const Control::Nav &nav) override |
| Called when a child widget passes input focus to another widget. More...
|
|
void | OnChildRequestedFocus (UiViewModel &child) override |
| Called when a child widget requests input focus. More...
|
|
children_t & | GetChildren () |
|
template<class T , class... Args> |
std::enable_if< std::is_base_of< UiViewModel, T >::value, std::shared_ptr< T > >::type | NewChild (Args &&...args) |
| Create and append a new child widget to the end of the list. More...
|
|
template<typename T > |
std::enable_if< std::is_base_of< UiViewModel, T >::value, std::shared_ptr< T > >::type | RemoveChild (const std::shared_ptr< T > &child) |
| Remove a child element. More...
|
|
template<class T > |
std::enable_if< std::is_base_of< UiViewModel, T >::value, std::shared_ptr< T > >::type | ReorderChild (const std::shared_ptr< T > &child, size_t idx) |
| Move a widget to a different position in the list. More...
|
|
void | SetChildOffset (const Vec2 &offset) |
| Sets the position offset of child widgets. More...
|
|
bool | TestHit (const Vec2 &pos) |
| Check if the coordinates of an event are within the bounds of this component. More...
|
|
void | RelinquishFocus (const Control::Nav &nav) |
| Voluntarily give up input focus, passing it on to the next widget. More...
|
|
void | SetFocused (bool focused) |
| Set the focused state. More...
|
|
template<class T > |
void | AttachViewDynamic (Display &disp, T *self) |
|
void | RequestLayout () |
| Indicate that the current layout is out-of-date and needs to be adjusted. More...
|
|
Display the current game time.
- Author
- Michael Imamura