![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Platform UI: orientation, window show state, window style flags, message box (icon, buttons, return value). More...
Enumerations | |
| enum class | MessageBoxButtons { Ok , OkCancel , AbortRetryIgnore , YesNoCancel , YesNo , RetryCancel , CancelTryContinue , OkHelp } |
| Which buttons to show on a message box or dialog. More... | |
| enum class | MessageBoxIcon { None , Error , Question , Warning , Information } |
| Icon shown in a message box or dialog. More... | |
| enum class | MessageBoxReturn { Ok , Cancel , Abort , Retry , Ignore , Yes , No , Close , Help , TryAgain , Continue } |
| User choice when dismissing a message box or dialog. More... | |
| enum class | Orientation : uint8_t { Landscape = 1 , Portrait = 2 , LandscapeFlipped = 4 , PortraitFlipped = 8 , LandscapeAny = Landscape | LandscapeFlipped , PortraitAny = Portrait | PortraitFlipped , Any = LandscapeAny | PortraitAny } |
| Screen orientation for UI layout and device rotation. More... | |
| enum class | WindowShowState : uint8_t { Hidden , Normal , Maximized , Minimized } |
| Visibility and display state of a window. More... | |
| enum class | WindowStyle : uint8_t { Simple = 0x00 , Close = 0x01 , MinMax = 0x02 , Popup = 0x04 , TopMost = 0x08 , FullScreen = 0x10 , Resized = 0x20 } |
| Bitmask flags for window decoration, modality, and display mode. More... | |
Platform UI: orientation, window show state, window style flags, message box (icon, buttons, return value).
|
strong |
Which buttons to show on a message box or dialog.
Platform APIs take a value to configure the button set. Exact layout and labels are platform-dependent; use for branching after showing a message box together with toy::platform::ui::MessageBoxReturn.
|
strong |
Icon shown in a message box or dialog.
Used when displaying a native message box to indicate severity or kind of message. Exact appearance is platform-dependent.
| Enumerator | |
|---|---|
| None | No icon. |
| Error | Error icon (e.g. stop/critical). |
| Question | Question icon (e.g. help/inquiry). |
| Warning | Warning icon (e.g. caution). |
| Information | Information icon (e.g. info). |
|
strong |
User choice when dismissing a message box or dialog.
Maps to common dialog button results (OK, Cancel, Yes/No, Abort/Retry/Ignore, etc.). Exact semantics are platform-dependent; use for branching after showing a message box.
|
strong |
Screen orientation for UI layout and device rotation.
Values use bit flags so they can be combined (e.g. to accept both landscape variants). Use toy::platform::ui::Orientation::LandscapeAny or toy::platform::ui::Orientation::PortraitAny when the rotation direction does not matter.
|
strong |
Visibility and display state of a window.
Values are mutually exclusive. Typical use: pass to platform show-window APIs or store the result of a get-window-state query.
|
strong |
Bitmask flags for window decoration, modality, and display mode.
Values can be combined (e.g. Close | MinMax for a standard title bar). Used when creating or configuring platform windows.