diff --git a/include/Plutonium/docs/d6/d08/ui___overlay_8hpp.html b/include/Plutonium/docs/d6/d08/ui___overlay_8hpp.html new file mode 100644 index 0000000..ad39608 --- /dev/null +++ b/include/Plutonium/docs/d6/d08/ui___overlay_8hpp.html @@ -0,0 +1,118 @@ + + +
+ + + + +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <pu/ui/ui_Container.hpp>
Go to the source code of this file.
++Classes | |
class | pu::ui::Overlay |
+Namespaces | |
namespace | pu |
namespace | pu::ui |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <ui_Layout.hpp>
+Public Types | |
using | OnInputCallback = std::function< void(const u64, const u64, const u64, const TouchPoint)> |
using | RenderCallback = std::function< void()> |
+Public Member Functions | |
Layout () | |
~Layout () | |
bool | HasChildren () |
void | SetOnInput (OnInputCallback on_ipt_cb) |
OnInputCallback | GetOnInput () |
void | AddRenderCallback (RenderCallback render_cb) |
std::vector< RenderCallback > & | GetRenderCallbacks () |
bool | HasBackgroundImage () |
sdl2::Texture | GetBackgroundImageTexture () |
Color | GetBackgroundColor () |
void | SetBackgroundImage (const std::string &path) |
void | SetBackgroundColor (const Color clr) |
void | SimulateTouchPosition (const TouchPoint sim_touch_pos) |
TouchPoint | ConsumeSimulatedTouchPosition () |
![]() | |
Container (const i32 x, const i32 y, const i32 width, const i32 height) | |
void | Add (elm::Element::Ref elem) |
elm::Element::Ref & | At (const i32 idx) |
bool | Has (elm::Element::Ref &elem) |
void | Clear () |
size_t | GetCount () |
void | SetX (const i32 x) |
i32 | GetX () |
void | SetY (const i32 y) |
i32 | GetY () |
void | SetWidth (const i32 width) |
i32 | GetWidth () |
void | SetHeight (const i32 height) |
i32 | GetHeight () |
void | PreRender () |
+Static Public Attributes | |
static constexpr Color | DefaultBackgroundColor = { 0xE1, 0xE1, 0xE1, 0xFF } |
+Additional Inherited Members | |
![]() | |
i32 | x |
i32 | y |
i32 | w |
i32 | h |
std::vector< elm::Element::Ref > | elems |
using pu::ui::Layout::OnInputCallback = std::function<void(const u64, const u64, const u64, const TouchPoint)> | +
using pu::ui::Layout::RenderCallback = std::function<void()> | +
+
|
+ +inline | +
pu::ui::Layout::~Layout | +( | +) | ++ |
+
|
+ +inline | +
TouchPoint pu::ui::Layout::ConsumeSimulatedTouchPosition | +( | +) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
void pu::ui::Layout::SetBackgroundColor | +( | +const Color | +clr | ) | ++ |
void pu::ui::Layout::SetBackgroundImage | +( | +const std::string & | +path | ) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +staticconstexpr | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <elm_Image.hpp>
+Public Member Functions | |
Image (const i32 x, const i32 y, const std::string &image_path) | |
~Image () | |
i32 | GetX () override |
void | SetX (const i32 x) |
i32 | GetY () override |
void | SetY (const i32 y) |
i32 | GetWidth () override |
void | SetWidth (const i32 width) |
i32 | GetHeight () override |
void | SetHeight (const i32 height) |
float | GetRotationAngle () |
void | SetRotationAngle (const float angle) |
std::string | GetImagePath () |
void | SetImage (const std::string &image_path) |
bool | IsImageValid () |
void | OnRender (render::Renderer::Ref &drawer, const i32 x, const i32 y) override |
void | OnInput (const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override |
![]() | |
Element () | |
virtual | ~Element () |
virtual i32 | GetX ()=0 |
virtual i32 | GetY ()=0 |
virtual i32 | GetWidth ()=0 |
virtual i32 | GetHeight ()=0 |
virtual void | OnRender (render::Renderer::Ref &drawer, const i32 x, const i32 y)=0 |
virtual void | OnInput (const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos)=0 |
bool | IsVisible () |
void | SetVisible (const bool visible) |
void | SetHorizontalAlign (const HorizontalAlign align) |
HorizontalAlign | GetHorizontalAlign () |
void | SetVerticalAlign (const VerticalAlign align) |
VerticalAlign | GetVerticalAlign () |
void | SetParentContainer (Container *parent_container) |
i32 | GetProcessedX () |
i32 | GetProcessedY () |
+Additional Inherited Members | |
![]() | |
bool | visible |
HorizontalAlign | h_align |
VerticalAlign | v_align |
Container * | parent_container |
pu::ui::elm::Image::Image | +( | +const i32 | +x, | +
+ | + | const i32 | +y, | +
+ | + | const std::string & | +image_path | +
+ | ) | ++ |
pu::ui::elm::Image::~Image | +( | +) | ++ |
+
|
+ +inlineoverridevirtual | +
Implements pu::ui::elm::Element.
+ +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inlineoverridevirtual | +
Implements pu::ui::elm::Element.
+ +
+
|
+ +inlineoverridevirtual | +
Implements pu::ui::elm::Element.
+ +
+
|
+ +inlineoverridevirtual | +
Implements pu::ui::elm::Element.
+ +
+
|
+ +inline | +
+
|
+ +inlineoverridevirtual | +
Implements pu::ui::elm::Element.
+ +
+
|
+ +overridevirtual | +
Implements pu::ui::elm::Element.
+ +
+
|
+ +inline | +
void pu::ui::elm::Image::SetImage | +( | +const std::string & | +image_path | ) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <pu/ui/elm/elm_Element.hpp>
Go to the source code of this file.
++Classes | |
class | pu::ui::elm::Image |
+Namespaces | |
namespace | pu |
namespace | pu::ui |
namespace | pu::ui::elm |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <ui_Overlay.hpp>
+Public Member Functions | |
Overlay (const i32 x, const i32 y, const i32 width, const i32 height, const Color bg_clr, const bool round=true, const i32 radius=DefaultRadius) | |
void | SetRadius (const i32 radius) |
i32 | GetRadius () |
virtual void | OnPreRender (render::Renderer::Ref &drawer) |
virtual void | OnPostRender (render::Renderer::Ref &drawer) |
bool | Render (render::Renderer::Ref &drawer) |
void | NotifyEnding (const bool ending) |
![]() | |
Container (const i32 x, const i32 y, const i32 width, const i32 height) | |
void | Add (elm::Element::Ref elem) |
elm::Element::Ref & | At (const i32 idx) |
bool | Has (elm::Element::Ref &elem) |
void | Clear () |
size_t | GetCount () |
void | SetX (const i32 x) |
i32 | GetX () |
void | SetY (const i32 y) |
i32 | GetY () |
void | SetWidth (const i32 width) |
i32 | GetWidth () |
void | SetHeight (const i32 height) |
i32 | GetHeight () |
void | PreRender () |
+Static Public Attributes | |
static constexpr i32 | DefaultRadius = 25 |
static constexpr i32 | MaxFadeAlpha = 200 |
static constexpr i32 | FadeAlphaVariation = 25 |
+Additional Inherited Members | |
![]() | |
i32 | x |
i32 | y |
i32 | w |
i32 | h |
std::vector< elm::Element::Ref > | elems |
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inlinevirtual | +
Reimplemented in pu::ui::extras::Toast.
+ +
+
|
+ +inlinevirtual | +
Reimplemented in pu::ui::extras::Toast.
+ +bool pu::ui::Overlay::Render | +( | +render::Renderer::Ref & | +drawer | ) | ++ |
+
|
+ +inline | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
This is the complete list of members for pu::ui::Dialog, including all inherited members.
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
This is the complete list of members for pu::ui::Container, including all inherited members.
+Add(elm::Element::Ref elem) | pu::ui::Container | inline |
At(const i32 idx) | pu::ui::Container | inline |
Clear() | pu::ui::Container | inline |
Container(const i32 x, const i32 y, const i32 width, const i32 height) | pu::ui::Container | inline |
elems | pu::ui::Container | protected |
GetCount() | pu::ui::Container | inline |
GetHeight() | pu::ui::Container | inline |
GetWidth() | pu::ui::Container | inline |
GetX() | pu::ui::Container | inline |
GetY() | pu::ui::Container | inline |
h | pu::ui::Container | protected |
Has(elm::Element::Ref &elem) | pu::ui::Container | inline |
PreRender() | pu::ui::Container | |
SetHeight(const i32 height) | pu::ui::Container | inline |
SetWidth(const i32 width) | pu::ui::Container | inline |
SetX(const i32 x) | pu::ui::Container | inline |
SetY(const i32 y) | pu::ui::Container | inline |
w | pu::ui::Container | protected |
x | pu::ui::Container | protected |
y | pu::ui::Container | protected |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
Go to the source code of this file.
++Classes | |
class | pu::ttf::Font |
+Namespaces | |
namespace | pu |
namespace | pu::ttf |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <ui_Dialog.hpp>
+Public Member Functions | |
Dialog (const std::string &title, const std::string &content) | |
~Dialog () | |
void | AddOption (const std::string &opt_name) |
void | SetCancelOption (const std::string &opt_name) |
void | RemoveCancelOption () |
bool | HasCancelOption () |
void | SetIcon (const std::string &icon_path) |
constexpr bool | HasIcon () |
i32 | Show (Application *app_ref) |
constexpr bool | UserCancelled () |
bool | IsOk () |
+Static Public Member Functions | |
static constexpr Color | MakeDialogColor (const u8 alpha) |
static constexpr Color | MakeOverColor (const u8 alpha) |
+Static Public Attributes | |
static constexpr Color | DefaultTitleColor = { 0xA, 0xA, 0xA, 0xFF } |
static constexpr Color | DefaultContentColor = { 0x14, 0x14, 0x14, 0xFF } |
static constexpr Color | DefaultOptionColor = { 0xA, 0xA, 0xA, 0xFF } |
static constexpr u32 | DialogExtraBaseWidth = 250 |
static constexpr u32 | DialogBorderRadius = 35 |
static constexpr u32 | SpaceBetweenOptions = 20 |
static constexpr u32 | TitleExtraWidth = 90 |
static constexpr u32 | ContentExtraWidth = 90 |
static constexpr u32 | SpaceBetweenContentAndOptions = 140 |
static constexpr u32 | TitleTopMargin = 20 |
static constexpr u32 | TitleX = 45 |
static constexpr u32 | TitleY = 55 |
static constexpr u32 | ContentX = 45 |
static constexpr u32 | ContentY = 140 |
static constexpr u32 | IconExtraHeight = 25 |
static constexpr u32 | OptionsBaseHorizontalMargin = 45 |
static constexpr u32 | OptionHeight = 60 |
static constexpr u32 | OptionHorizontalMargin = 30 |
static constexpr u32 | OptionBorderRadius = OptionHeight / 3 |
static constexpr u32 | OptionBottomMargin = 25 |
static constexpr u8 | MaxScreenFadeAlpha = 125 |
static constexpr u32 | IconMargin = 30 |
static constexpr u8 | OverAlphaIncrement = 48 |
static constexpr u8 | FadeAlphaIncrement = 25 |
pu::ui::Dialog::Dialog | +( | +const std::string & | +title, | +
+ | + | const std::string & | +content | +
+ | ) | ++ |
pu::ui::Dialog::~Dialog | +( | +) | ++ |
void pu::ui::Dialog::AddOption | +( | +const std::string & | +opt_name | ) | ++ |
+
|
+ +inline | +
+
|
+ +inlineconstexpr | +
+
|
+ +inline | +
+
|
+ +inlinestaticconstexpr | +
+
|
+ +inlinestaticconstexpr | +
+
|
+ +inline | +
+
|
+ +inline | +
void pu::ui::Dialog::SetIcon | +( | +const std::string & | +icon_path | ) | ++ |
i32 pu::ui::Dialog::Show | +( | +Application * | +app_ref | ) | ++ |
+
|
+ +inlineconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+
|
+ +staticconstexpr | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <ui_Types.hpp>
+Public Member Functions | |
constexpr | Color () |
constexpr | Color (const u8 r, const u8 g, const u8 b, const u8 a) |
+Static Public Member Functions | |
static Color | FromHex (const std::string &str_clr) |
+Public Attributes | |
u8 | r |
u8 | g |
u8 | b |
u8 | a |
+
|
+ +inlineconstexpr | +
+
|
+ +inlineconstexpr | +
+
|
+ +static | +
u8 pu::ui::Color::a | +
u8 pu::ui::Color::b | +
u8 pu::ui::Color::g | +
u8 pu::ui::Color::r | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <pu/ui/elm/elm_Element.hpp>
Go to the source code of this file.
++Classes | |
class | pu::ui::elm::TextBlock |
+Namespaces | |
namespace | pu |
namespace | pu::ui |
namespace | pu::ui::elm |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <ui_Types.hpp>
+Public Member Functions | |
constexpr | TouchPoint () |
constexpr | TouchPoint (const u32 x, const u32 y) |
constexpr bool | IsEmpty () const |
constexpr bool | HitsRegion (const i32 region_x, const i32 region_y, const i32 region_w, const i32 region_h) const |
+Public Attributes | |
i32 | x |
i32 | y |
+
|
+ +inlineconstexpr | +
+
|
+ +inlineconstexpr | +
+
|
+ +inlineconstexpr | +
+
|
+ +inlineconstexpr | +
i32 pu::ui::TouchPoint::x | +
i32 pu::ui::TouchPoint::y | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+Typedefs | |
using | Music = Mix_Music * |
using | Sfx = Mix_Chunk * |
+Functions | |
Music | OpenMusic (const std::string &path) |
void | PlayMusic (Music mus, const int loops) |
void | PlayMusicWithFadeIn (Music mus, const i32 llops, const i32 ms) |
bool | IsPlayingMusic () |
void | PauseMusic () |
void | ResumeMusic () |
void | SetMusicVolume (const i32 vol) |
i32 | GetMusicVolume () |
void | FadeOutMusic (const i32 ms) |
void | RewindMusic () |
void | StopMusic () |
void | SetMusicPosition (const double sec) |
void | DestroyMusic (Music &mus) |
Sfx | LoadSfx (const std::string &path) |
void | PlaySfx (Sfx sfx) |
void | DestroySfx (Sfx &sfx) |
using pu::audio::Music = typedef Mix_Music* | +
using pu::audio::Sfx = typedef Mix_Chunk* | +
void pu::audio::DestroyMusic | +( | +Music & | +mus | ) | ++ |
void pu::audio::DestroySfx | +( | +Sfx & | +sfx | ) | ++ |
void pu::audio::FadeOutMusic | +( | +const i32 | +ms | ) | ++ |
i32 pu::audio::GetMusicVolume | +( | +) | ++ |
bool pu::audio::IsPlayingMusic | +( | +) | ++ |
Sfx pu::audio::LoadSfx | +( | +const std::string & | +path | ) | ++ |
Music pu::audio::OpenMusic | +( | +const std::string & | +path | ) | ++ |
void pu::audio::PauseMusic | +( | +) | ++ |
void pu::audio::PlayMusic | +( | +Music | +mus, | +
+ | + | const int | +loops | +
+ | ) | ++ |
void pu::audio::PlayMusicWithFadeIn | +( | +Music | +mus, | +
+ | + | const i32 | +llops, | +
+ | + | const i32 | +ms | +
+ | ) | ++ |
void pu::audio::PlaySfx | +( | +Sfx | +sfx | ) | ++ |
void pu::audio::ResumeMusic | +( | +) | ++ |
void pu::audio::RewindMusic | +( | +) | ++ |
void pu::audio::SetMusicPosition | +( | +const double | +sec | ) | ++ |
void pu::audio::SetMusicVolume | +( | +const i32 | +vol | ) | ++ |
void pu::audio::StopMusic | +( | +) | ++ |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <elm_Element.hpp>
+Public Member Functions | |
Element () | |
virtual | ~Element () |
virtual i32 | GetX ()=0 |
virtual i32 | GetY ()=0 |
virtual i32 | GetWidth ()=0 |
virtual i32 | GetHeight ()=0 |
virtual void | OnRender (render::Renderer::Ref &drawer, const i32 x, const i32 y)=0 |
virtual void | OnInput (const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos)=0 |
bool | IsVisible () |
void | SetVisible (const bool visible) |
void | SetHorizontalAlign (const HorizontalAlign align) |
HorizontalAlign | GetHorizontalAlign () |
void | SetVerticalAlign (const VerticalAlign align) |
VerticalAlign | GetVerticalAlign () |
void | SetParentContainer (Container *parent_container) |
i32 | GetProcessedX () |
i32 | GetProcessedY () |
+Protected Attributes | |
bool | visible |
HorizontalAlign | h_align |
VerticalAlign | v_align |
Container * | parent_container |
+
|
+ +inline | +
+
|
+ +inlinevirtual | +
+
|
+ +pure virtual | +
Implemented in pu::ui::elm::Button, pu::ui::elm::Image, pu::ui::elm::Menu, pu::ui::elm::ProgressBar, pu::ui::elm::Rectangle, pu::ui::elm::TextBlock, and pu::ui::elm::Toggle.
+ +
+
|
+ +inline | +
i32 pu::ui::elm::Element::GetProcessedX | +( | +) | ++ |
i32 pu::ui::elm::Element::GetProcessedY | +( | +) | ++ |
+
|
+ +inline | +
+
|
+ +pure virtual | +
Implemented in pu::ui::elm::Button, pu::ui::elm::Image, pu::ui::elm::Menu, pu::ui::elm::ProgressBar, pu::ui::elm::Rectangle, pu::ui::elm::TextBlock, and pu::ui::elm::Toggle.
+ +
+
|
+ +pure virtual | +
Implemented in pu::ui::elm::Button, pu::ui::elm::Image, pu::ui::elm::Menu, pu::ui::elm::ProgressBar, pu::ui::elm::Rectangle, pu::ui::elm::TextBlock, and pu::ui::elm::Toggle.
+ +
+
|
+ +pure virtual | +
Implemented in pu::ui::elm::Button, pu::ui::elm::Image, pu::ui::elm::Menu, pu::ui::elm::ProgressBar, pu::ui::elm::Rectangle, pu::ui::elm::TextBlock, and pu::ui::elm::Toggle.
+ +
+
|
+ +inline | +
+
|
+ +pure virtual | +
Implemented in pu::ui::elm::Button, pu::ui::elm::Image, pu::ui::elm::Menu, pu::ui::elm::ProgressBar, pu::ui::elm::Rectangle, pu::ui::elm::TextBlock, and pu::ui::elm::Toggle.
+ +
+
|
+ +pure virtual | +
Implemented in pu::ui::elm::Button, pu::ui::elm::Image, pu::ui::elm::Menu, pu::ui::elm::ProgressBar, pu::ui::elm::Rectangle, pu::ui::elm::TextBlock, and pu::ui::elm::Toggle.
+ +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <pu/ui/render/render_Renderer.hpp>
Go to the source code of this file.
++Classes | |
class | pu::ui::elm::Element |
+Namespaces | |
namespace | pu |
namespace | pu::ui |
namespace | pu::ui::elm |
+Enumerations | |
enum class | pu::ui::elm::HorizontalAlign { pu::ui::elm::Left +, pu::ui::elm::Center +, pu::ui::elm::Right + } |
enum class | pu::ui::elm::VerticalAlign { pu::ui::elm::Up +, pu::ui::elm::Center +, pu::ui::elm::Down + } |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+Namespaces | |
namespace | elm |
namespace | extras |
namespace | render |
+Classes | |
class | Application |
struct | Color |
class | Container |
class | Dialog |
class | Layout |
class | Overlay |
struct | TouchPoint |
+Enumerations | |
enum class | DefaultFontSize : u32 { + Small +, Medium +, MediumLarge +, Large +, + Count + + } |
+Functions | |
std::string | MakeDefaultFontName (const u32 font_size) |
constexpr u32 | GetDefaultFontSize (const DefaultFontSize kind) |
std::string | GetDefaultFont (const DefaultFontSize kind) |
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) |
+Variables | |
static constexpr std::array< u32, static_cast< u32 >(DefaultFontSize::Count)> | DefaultFontSizes = { 18, 20, 25, 30 } |
constexpr u64 | TouchPseudoKey = HidNpadButton_29 |
+
|
+ +strong | +
+
|
+ +inline | +
+
|
+ +inlineconstexpr | +
+
|
+ +inline | +
+
|
+ +inlinestaticconstexpr | +
+
|
+ +inlinestaticconstexpr | +
+
|
+ +constexpr | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
Go to the source code of this file.
++Classes | |
class | pu::ui::Container |
+Namespaces | |
namespace | pu |
namespace | pu::ui |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
Go to the source code of this file.
++Classes | |
class | pu::ui::elm::Button |
+Namespaces | |
namespace | pu |
namespace | pu::ui |
namespace | pu::ui::elm |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+Classes | |
class | Renderer |
struct | RendererInitOptions |
struct | TextureRenderOptions |
+Functions | |
sdl2::Renderer | GetMainRenderer () |
sdl2::Window | GetMainWindow () |
sdl2::Surface | GetMainSurface () |
std::pair< u32, u32 > | GetDimensions () |
bool | AddSharedFont (const std::string &font_name, const u32 font_size, const PlSharedFontType type) |
bool | AddAllSharedFonts (const std::string &font_name, const u32 font_size) |
bool | AddFontFile (const std::string &font_name, const u32 font_size, const std::string &path) |
void | AddDefaultFontFromShared (const u32 font_size) |
void | AddDefaultFontFromFile (const u32 font_size, const std::string &path) |
sdl2::Texture | RenderText (const std::string &font_name, const std::string &text, const Color clr) |
i32 | GetTextWidth (const std::string &font_name, const std::string &text) |
i32 | GetTextHeight (const std::string &font_name, const std::string &text) |
sdl2::Texture | ConvertToTexture (sdl2::Surface surface) |
sdl2::Texture | LoadImage (const std::string &path) |
i32 | GetTextureWidth (sdl2::Texture texture) |
i32 | GetTextureHeight (sdl2::Texture texture) |
void | SetAlphaValue (sdl2::Texture texture, const u8 alpha) |
void | DeleteTexture (sdl2::Texture &texture) |
+Variables | |
constexpr u32 | ScreenWidth = 1280 |
constexpr u32 | ScreenHeight = 720 |
constexpr u32 | MixerAllFlags = MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG |
constexpr u32 | IMGAllFlags = IMG_INIT_PNG | IMG_INIT_JPG | IMG_INIT_TIF | IMG_INIT_WEBP |
constexpr u32 | RendererSoftwareFlags = SDL_RENDERER_SOFTWARE |
constexpr u32 | RendererHardwareFlags = SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED |
bool pu::ui::render::AddAllSharedFonts | +( | +const std::string & | +font_name, | +
+ | + | const u32 | +font_size | +
+ | ) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
bool pu::ui::render::AddFontFile | +( | +const std::string & | +font_name, | +
+ | + | const u32 | +font_size, | +
+ | + | const std::string & | +path | +
+ | ) | ++ |
bool pu::ui::render::AddSharedFont | +( | +const std::string & | +font_name, | +
+ | + | const u32 | +font_size, | +
+ | + | const PlSharedFontType | +type | +
+ | ) | ++ |
sdl2::Texture pu::ui::render::ConvertToTexture | +( | +sdl2::Surface | +surface | ) | ++ |
void pu::ui::render::DeleteTexture | +( | +sdl2::Texture & | +texture | ) | ++ |
std::pair< u32, u32 > pu::ui::render::GetDimensions | +( | +) | ++ |
sdl2::Renderer pu::ui::render::GetMainRenderer | +( | +) | ++ |
sdl2::Surface pu::ui::render::GetMainSurface | +( | +) | ++ |
sdl2::Window pu::ui::render::GetMainWindow | +( | +) | ++ |
i32 pu::ui::render::GetTextHeight | +( | +const std::string & | +font_name, | +
+ | + | const std::string & | +text | +
+ | ) | ++ |
i32 pu::ui::render::GetTextureHeight | +( | +sdl2::Texture | +texture | ) | ++ |
i32 pu::ui::render::GetTextureWidth | +( | +sdl2::Texture | +texture | ) | ++ |
i32 pu::ui::render::GetTextWidth | +( | +const std::string & | +font_name, | +
+ | + | const std::string & | +text | +
+ | ) | ++ |
sdl2::Texture pu::ui::render::LoadImage | +( | +const std::string & | +path | ) | ++ |
sdl2::Texture pu::ui::render::RenderText | +( | +const std::string & | +font_name, | +
+ | + | const std::string & | +text, | +
+ | + | const Color | +clr | +
+ | ) | ++ |
void pu::ui::render::SetAlphaValue | +( | +sdl2::Texture | +texture, | +
+ | + | const u8 | +alpha | +
+ | ) | ++ |
+
|
+ +constexpr | +
+
|
+ +constexpr | +
+
|
+ +constexpr | +
+
|
+ +constexpr | +
+
|
+ +constexpr | +
+
|
+ +constexpr | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <ui_Application.hpp>
+Public Types | |
using | OnInputCallback = std::function< void(const u64, const u64, const u64, const TouchPoint)> |
using | RenderCallback = std::function< void()> |
using | RenderOverFunction = std::function< bool(render::Renderer::Ref &)> |
+Public Member Functions | |
Application (render::Renderer::Ref renderer) | |
void | LoadLayout (Layout::Ref lyt) |
template<typename L > | |
std::shared_ptr< L > | GetLayout () |
void | Prepare () |
virtual void | OnLoad ()=0 |
void | AddRenderCallback (RenderCallback render_cb) |
void | SetOnInput (OnInputCallback on_ipt_cb) |
i32 | ShowDialog (Dialog::Ref &dialog) |
i32 | CreateShowDialog (const std::string &title, const std::string &content, const std::vector< std::string > &opts, const bool use_last_opt_as_cancel, const std::string &icon_path="") |
void | StartOverlay (Overlay::Ref ovl) |
void | StartOverlayWithTimeout (Overlay::Ref ovl, const u64 ms) |
void | EndOverlay () |
void | Show () |
void | ShowWithFadeIn () |
bool | IsShown () |
bool | CanBeShown () |
bool | CallForRender () |
bool | CallForRenderWithRenderOver (RenderOverFunction render_over_fn) |
void | FadeIn () |
void | FadeOut () |
bool | IsFadedIn () |
void | SetFadeAlphaIncrement (const u8 fade_alpha_increment) |
void | OnRender () |
void | Close () |
void | CloseWithFadeOut () |
u64 | GetButtonsDown () |
u64 | GetButtonsUp () |
u64 | GetButtonsHeld () |
HidTouchScreenState | GetTouchState () |
+Static Public Attributes | |
static constexpr u8 | DefaultFadeAlphaIncrement = 35 |
+Protected Attributes | |
bool | loaded |
bool | in_render_over |
RenderOverFunction | render_over_fn |
bool | is_shown |
u8 | fade_alpha_increment |
i32 | fade_alpha |
Layout::Ref | lyt |
Overlay::Ref | ovl |
u64 | ovl_timeout_ms |
std::chrono::steady_clock::time_point | ovl_start_time |
std::vector< RenderCallback > | render_cbs |
OnInputCallback | on_ipt_cb |
render::Renderer::Ref | renderer |
PadState | input_pad |
using pu::ui::Application::OnInputCallback = std::function<void(const u64, const u64, const u64, const TouchPoint)> | +
using pu::ui::Application::RenderCallback = std::function<void()> | +
using pu::ui::Application::RenderOverFunction = std::function<bool(render::Renderer::Ref&)> | +
pu::ui::Application::Application | +( | +render::Renderer::Ref | +renderer | ) | ++ |
+
|
+ +inline | +
bool pu::ui::Application::CallForRender | +( | +) | ++ |
bool pu::ui::Application::CallForRenderWithRenderOver | +( | +RenderOverFunction | +render_over_fn | ) | ++ |
+
|
+ +inline | +
void pu::ui::Application::Close | +( | +) | ++ |
+
|
+ +inline | +
i32 pu::ui::Application::CreateShowDialog | +( | +const std::string & | +title, | +
+ | + | const std::string & | +content, | +
+ | + | const std::vector< std::string > & | +opts, | +
+ | + | const bool | +use_last_opt_as_cancel, | +
+ | + | const std::string & | +icon_path = "" |
+
+ | ) | ++ |
void pu::ui::Application::EndOverlay | +( | +) | ++ |
void pu::ui::Application::FadeIn | +( | +) | ++ |
void pu::ui::Application::FadeOut | +( | +) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +pure virtual | +
void pu::ui::Application::OnRender | +( | +) | ++ |
void pu::ui::Application::Prepare | +( | +) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
void pu::ui::Application::Show | +( | +) | ++ |
+
|
+ +inline | +
+
|
+ +inline | +
+
|
+ +inline | +
void pu::ui::Application::StartOverlayWithTimeout | +( | +Overlay::Ref | +ovl, | +
+ | + | const u64 | +ms | +
+ | ) | ++ |
+
|
+ +staticconstexpr | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+
|
+ +protected | +
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
This is the complete list of members for pu::ui::render::RendererInitOptions, including all inherited members.
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
#include <pu/ui/ui_Dialog.hpp>
#include <pu/ui/ui_Layout.hpp>
#include <pu/ui/ui_Overlay.hpp>
#include <chrono>
Go to the source code of this file.
++Classes | |
class | pu::ui::Application |
+Namespaces | |
namespace | pu |
namespace | pu::ui |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
Go to the source code of this file.
++Namespaces | |
namespace | pu |
namespace | pu::ui |
namespace | pu::ui::render |
+Functions | |
sdl2::Texture | pu::ui::render::ConvertToTexture (sdl2::Surface surface) |
sdl2::Texture | pu::ui::render::LoadImage (const std::string &path) |
i32 | pu::ui::render::GetTextureWidth (sdl2::Texture texture) |
i32 | pu::ui::render::GetTextureHeight (sdl2::Texture texture) |
void | pu::ui::render::SetAlphaValue (sdl2::Texture texture, const u8 alpha) |
void | pu::ui::render::DeleteTexture (sdl2::Texture &texture) |
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
This is the complete list of members for pu::ui::elm::Element, including all inherited members.
+
+ Plutonium framework API 0.3.0
+
+ UI framework libraries for libnx
+ |
+
This is the complete list of members for pu::ui::extras::Toast, including all inherited members.
+Add(elm::Element::Ref elem) | pu::ui::Container | inline |
At(const i32 idx) | pu::ui::Container | inline |
BaseAlpha | pu::ui::extras::Toast | static |
Clear() | pu::ui::Container | inline |
Container(const i32 x, const i32 y, const i32 width, const i32 height) | pu::ui::Container | inline |
DefaultRadius | pu::ui::Overlay | static |
DefaultY | pu::ui::extras::Toast | static |
elems | pu::ui::Container | protected |
FadeAlphaVariation | pu::ui::Overlay | static |
GetCount() | pu::ui::Container | inline |
GetHeight() | pu::ui::Container | inline |
GetRadius() | pu::ui::Overlay | inline |
GetWidth() | pu::ui::Container | inline |
GetX() | pu::ui::Container | inline |
GetY() | pu::ui::Container | inline |
h | pu::ui::Container | protected |
Has(elm::Element::Ref &elem) | pu::ui::Container | inline |
HeightAndTextHeightFactor | pu::ui::extras::Toast | static |
HorizontalMargin | pu::ui::extras::Toast | static |
MaxFadeAlpha | pu::ui::Overlay | static |
NotifyEnding(const bool ending) | pu::ui::Overlay | inline |
OnPostRender(render::Renderer::Ref &drawer) override | pu::ui::extras::Toast | virtual |
OnPreRender(render::Renderer::Ref &drawer) override | pu::ui::extras::Toast | virtual |
Overlay(const i32 x, const i32 y, const i32 width, const i32 height, const Color bg_clr, const bool round=true, const i32 radius=DefaultRadius) | pu::ui::Overlay | inline |
PreRender() | pu::ui::Container | |
Render(render::Renderer::Ref &drawer) | pu::ui::Overlay | |
SetHeight(const i32 height) | pu::ui::Container | inline |
SetRadius(const i32 radius) | pu::ui::Overlay | inline |
SetText(const std::string &text) | pu::ui::extras::Toast | |
SetWidth(const i32 width) | pu::ui::Container | inline |
SetX(const i32 x) | pu::ui::Container | inline |
SetY(const i32 y) | pu::ui::Container | inline |
Toast(const std::string &text, const std::string &font_name, const Color text_clr, const Color bg_clr) | pu::ui::extras::Toast | |
w | pu::ui::Container | protected |
x | pu::ui::Container | protected |
y | pu::ui::Container | protected |