|
Plutonium framework API 1.0.0
Easy-to-use, SDL2-based UI framework for Nintendo Switch homebrew
|
Basic Plutonium include header. More...
#include <switch.h>#include <string>#include <memory>#include <cmath>#include <optional>Go to the source code of this file.
Namespaces | |
| namespace | pu |
Macros | |
| #define | PU_SMART_CTOR(type) |
| Defines a static function (::New(...)) as a constructor for smart ptrs, also defines a custom type (::Ref) to simplify it. | |
| #define | PU_CLASS_POD_GET(fn_name, var_name, type) |
| Automatically defines a getter function for a POD variable. | |
| #define | PU_CLASS_POD_SET(fn_name, var_name, type) |
| Automatically defines a setter function for a POD variable. | |
| #define | PU_CLASS_POD_GETSET(fn_name, var_name, type) |
| Automatically defines a getter and setter function for a POD variable. | |
| #define | PU_RC_TRY(rc) |
| Checks if the specified result code is not successful, and if so, returns it and ends the function. | |
Typedefs | |
| using | pu::i32 = s32 |
Variables | |
| constexpr u32 | pu::Module = 493 |
| constexpr auto | pu::ResultSdlInitFailed = ((((Module)&0x1FF)) | ((1)&0x1FFF)<<9) |
| constexpr auto | pu::ResultSdlCreateWindowFailed = ((((Module)&0x1FF)) | ((2)&0x1FFF)<<9) |
| constexpr auto | pu::ResultSdlCreateRendererFailed = ((((Module)&0x1FF)) | ((3)&0x1FFF)<<9) |
| constexpr auto | pu::ResultImgInitFailed = ((((Module)&0x1FF)) | ((4)&0x1FFF)<<9) |
| constexpr auto | pu::ResultTtfInitFailed = ((((Module)&0x1FF)) | ((5)&0x1FFF)<<9) |
Basic Plutonium include header.
Plutonium library
| #define PU_CLASS_POD_GET | ( | fn_name, | |
| var_name, | |||
| type ) |
Automatically defines a getter function for a POD variable.
| #define PU_CLASS_POD_GETSET | ( | fn_name, | |
| var_name, | |||
| type ) |
Automatically defines a getter and setter function for a POD variable.
| #define PU_CLASS_POD_SET | ( | fn_name, | |
| var_name, | |||
| type ) |
Automatically defines a setter function for a POD variable.
| #define PU_RC_TRY | ( | rc | ) |
Checks if the specified result code is not successful, and if so, returns it and ends the function.
| #define PU_SMART_CTOR | ( | type | ) |
Defines a static function (::New(...)) as a constructor for smart ptrs, also defines a custom type (::Ref) to simplify it.