Jazz2/UI/Menu/IMenuContainer.h file

Namespaces

namespace Jazz2
Root namespace of Jazz² Resurrection.
namespace Jazz2::UI
User interface and menus.
namespace Jazz2::UI::Menu
Menu implementation.
namespace Jazz2::UI::Menu::MenuLayout
Metrics of the menu layout that follow the size of the view.

Classes

class Jazz2::UI::Menu::IMenuContainer
Base interface of a menu container.

Enums

enum class ChangedPreferencesType { None = 0x00, Audio = 0x01, Graphics = 0x02, Gameplay = 0x04, Language = 0x08, ControlScheme = 0x10, TouchButtons = 0x20, MainMenu = 0x40, Layout = 0x80 }
Changed preferences.

Functions

auto GetTransition(Vector2i viewSize) -> float
Returns how far the view is from the compact layout towards the full one (0 to 1).
auto Blend(float compact, float full, Vector2i viewSize) -> float
Blends a metric between its compact and full layout values for the given view.
auto GetTitleOffset(Vector2i viewSize) -> float
Returns the distance of a section title (and the logo baseline) above the content bounds.

Variables

std::int32_t CompactHeight constexpr
Height at and below which the compact layout applies entirely.
std::int32_t FullHeight constexpr
Height at and above which the full layout applies entirely.