|
Plutonium framework API 1.0.0
Easy-to-use, SDL2-based UI framework for Nintendo Switch homebrew
|
Namespaces | |
| namespace | elm |
| namespace | extras |
| namespace | render |
Classes | |
| class | Application |
| Type that represents the basic object in this library, the general context for UI and rendering. More... | |
| struct | Color |
| Type encoding a RGBA-8888 color. More... | |
| class | Container |
| Type containing a list of elements. More... | |
| class | Dialog |
| Class that represents a dialog, which is a simple way to show a message and various options to the user and get a response. More... | |
| class | Layout |
| Class that represents a layout, the core UI container in the library. More... | |
| class | Overlay |
| Class that represents an overlay, which is a container that is rendered over the current Layout. More... | |
| class | SigmoidIncrementer |
| Type used to vary a value, from an initial value to a final one, following the shape of a sigmoid function. More... | |
| struct | TouchPoint |
| Type encoding a touch point. More... | |
Enumerations | |
| enum class | DefaultFontSize : u32 { Small , Medium , MediumLarge , Large , Count } |
| Enum containing the default font sizes used by Plutonium components. More... | |
Functions | |
| std::string | MakeDefaultFontName (const u32 font_size) |
| Makes a default font name with the specified font size. | |
| constexpr u32 | GetDefaultFontSize (const DefaultFontSize kind) |
| Gets the default font size value for the specified DefaultFontSize. | |
| std::string | GetDefaultFont (const DefaultFontSize kind) |
| Gets the default font name for the specified DefaultFontSize. | |
| static constexpr bool | TouchHitsRegion (const i32 touch_x, const i32 touch_y, const i32 region_x, const i32 region_y, const i32 region_w, const i32 region_h) |
| Helper function to check whether a touch point hits a rectangle region. | |
Variables | |
| constexpr u32 | DefaultFontSizes [static_cast< u32 >(DefaultFontSize::Count)] = { 27, 30, 37, 45 } |
| Array containing the default font size values used by Plutonium components, for all DefaultFontSize values. | |
| constexpr u64 | TouchPseudoKey = 1 << 29 |
| Input key value used internally by Plutonium to represent the presence of a touch input. | |
|
strong |
|
inline |
Gets the default font name for the specified DefaultFontSize.
| kind | DefaultFontSize to get the font name from. |
|
inlineconstexpr |
Gets the default font size value for the specified DefaultFontSize.
| kind | DefaultFontSize to get the value from. |
|
inline |
Makes a default font name with the specified font size.
| font_size | Font size to use. |
|
inlinestaticconstexpr |
Helper function to check whether a touch point hits a rectangle region.
| touch_x | X coordinate of the touch point. |
| touch_y | Y coordinate of the touch point. |
| region_x | X coordinate of the region. |
| region_y | Y coordinate of the region. |
| region_w | Width of the region. |
| region_h | Height of the region. |
|
constexpr |
Array containing the default font size values used by Plutonium components, for all DefaultFontSize values.
|
constexpr |
Input key value used internally by Plutonium to represent the presence of a touch input.