class
#include <Jazz2/UI/Menu/MenuSection.h>
MenuSection Base class of a menu section.
Derived classes
-
template<class TItem>class ScrollableMenuSection
- Simplifies creation of unified scrollable menu sections.
- class AboutSection
- class BeginSection
- class CreateServerOptionsSection
- class CustomLevelSelectSection
- class InputDiagnosticsSection
- class LoadingSection
- class PauseSection
- class RefreshCacheSection
- class ServerSelectSection
- class SimpleMessageSection
- class SoundsOptionsSection
- class StartGameOptionsSection
- class TouchControlsOptionsSection
Constructors, destructors, conversion operators
- MenuSection()
- ~MenuSection() virtual
Public functions
- auto GetClipRectangle(const Recti& contentBounds) -> Recti virtual
- Allows to override clip rectangle of the middle layer.
- void OnShow(IMenuContainer* root) virtual
- Called when the section is shown.
- void OnHide() virtual
- Called when the section is hidden.
- void OnUpdate(float timeMult) pure virtual
- Called when the section should be updated.
- void OnDraw(Canvas* canvas) pure virtual
- Called when the section should be drawn — the bottom background layer.
- void OnDrawClipped(Canvas* canvas) virtual
- Called when the section should be drawn — the middle clipped layer.
- void OnDrawOverlay(Canvas* canvas) virtual
- Called when the section should be drawn — the top overlay layer.
-
void OnKeyPressed(const nCine::
KeyboardEvent& event) virtual - Called when a key is pressed.
-
void OnKeyReleased(const nCine::
KeyboardEvent& event) virtual - Called when a key is released.
-
void OnTextInput(const nCine::
TextInputEvent& event) virtual - Called when a text input is detected.
-
void OnTouchEvent(const nCine::
TouchEvent& event, Vector2i viewSize) pure virtual - Called when a touch event is triggered.
- auto GetNavigationFlags() const -> NavigationFlags virtual
- Allows to override navigation behavior.
Protected static variables
- static float TouchKineticDivider constexpr
- static float TouchKineticFriction constexpr
- static float TouchKineticDamping constexpr