From 66d34447c7c5ffd63c6154f8f8f904d1c14028af Mon Sep 17 00:00:00 2001 From: mrdude2478 Date: Tue, 5 Sep 2023 02:21:12 +0100 Subject: [PATCH] Add files via upload --- ..._1_1render_1_1_texture_render_options.html | 371 +++ ...ui_1_1render_1_1_texture_render_options.js | 14 + .../classpu_1_1ui_1_1extras_1_1_toast.html | 413 ++++ .../d49/classpu_1_1ui_1_1extras_1_1_toast.js | 11 + .../d49/classpu_1_1ui_1_1extras_1_1_toast.png | Bin 0 -> 741 bytes .../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html | 1256 ++++++++++ .../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.js | 41 + .../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.png | Bin 0 -> 533 bytes ...pu_1_1ui_1_1elm_1_1_rectangle-members.html | 131 + .../dc/dcd/classpu_1_1ui_1_1_container.html | 676 +++++ .../dc/dcd/classpu_1_1ui_1_1_container.js | 23 + .../dc/dcd/classpu_1_1ui_1_1_container.png | Bin 0 -> 996 bytes .../dd4/classpu_1_1ui_1_1_layout-members.html | 138 ++ ...classpu_1_1ui_1_1_application-members.html | 148 ++ .../docs/dd/d39/ui___dialog_8hpp.html | 119 + .../docs/dd/d39/ui___dialog_8hpp_source.html | 272 +++ ...pu_1_1ui_1_1elm_1_1_menu_item-members.html | 115 + .../docs/dd/d76/classpu_1_1ttf_1_1_font.html | 447 ++++ .../docs/dd/d76/classpu_1_1ttf_1_1_font.js | 16 + .../classpu_1_1ui_1_1_overlay-members.html | 131 + .../classpu_1_1ui_1_1elm_1_1_menu_item.html | 488 ++++ .../dbb/classpu_1_1ui_1_1elm_1_1_menu_item.js | 17 + .../docs/de/de5/audio___music_8hpp.html | 149 ++ .../docs/de/de5/audio___music_8hpp.js | 17 + .../de/de5/audio___music_8hpp_source.html | 152 ++ .../docs/de/dfe/sdl2___custom_ttf_8h.html | 2174 +++++++++++++++++ .../docs/de/dfe/sdl2___custom_ttf_8h.js | 79 + .../de/dfe/sdl2___custom_ttf_8h_source.html | 426 ++++ .../docs/df/d13/ui___types_8hpp.html | 154 ++ .../Plutonium/docs/df/d13/ui___types_8hpp.js | 18 + .../docs/df/d13/ui___types_8hpp_source.html | 211 ++ .../classpu_1_1ui_1_1elm_1_1_text_block.html | 637 +++++ .../classpu_1_1ui_1_1elm_1_1_text_block.js | 19 + .../classpu_1_1ui_1_1elm_1_1_text_block.png | Bin 0 -> 549 bytes ...i_1_1render_1_1_renderer_init_options.html | 515 ++++ ...1ui_1_1render_1_1_renderer_init_options.js | 22 + ..._1_1ui_1_1render_1_1_renderer-members.html | 121 + ...lasspu_1_1ui_1_1elm_1_1_image-members.html | 133 + 38 files changed, 9654 insertions(+) create mode 100644 include/Plutonium/docs/dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html create mode 100644 include/Plutonium/docs/dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.js create mode 100644 include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html create mode 100644 include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.js create mode 100644 include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.png create mode 100644 include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html create mode 100644 include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.js create mode 100644 include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.png create mode 100644 include/Plutonium/docs/dc/da1/classpu_1_1ui_1_1elm_1_1_rectangle-members.html create mode 100644 include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.html create mode 100644 include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.js create mode 100644 include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.png create mode 100644 include/Plutonium/docs/dc/dd4/classpu_1_1ui_1_1_layout-members.html create mode 100644 include/Plutonium/docs/dc/de9/classpu_1_1ui_1_1_application-members.html create mode 100644 include/Plutonium/docs/dd/d39/ui___dialog_8hpp.html create mode 100644 include/Plutonium/docs/dd/d39/ui___dialog_8hpp_source.html create mode 100644 include/Plutonium/docs/dd/d61/classpu_1_1ui_1_1elm_1_1_menu_item-members.html create mode 100644 include/Plutonium/docs/dd/d76/classpu_1_1ttf_1_1_font.html create mode 100644 include/Plutonium/docs/dd/d76/classpu_1_1ttf_1_1_font.js create mode 100644 include/Plutonium/docs/de/d69/classpu_1_1ui_1_1_overlay-members.html create mode 100644 include/Plutonium/docs/de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html create mode 100644 include/Plutonium/docs/de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.js create mode 100644 include/Plutonium/docs/de/de5/audio___music_8hpp.html create mode 100644 include/Plutonium/docs/de/de5/audio___music_8hpp.js create mode 100644 include/Plutonium/docs/de/de5/audio___music_8hpp_source.html create mode 100644 include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h.html create mode 100644 include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h.js create mode 100644 include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h_source.html create mode 100644 include/Plutonium/docs/df/d13/ui___types_8hpp.html create mode 100644 include/Plutonium/docs/df/d13/ui___types_8hpp.js create mode 100644 include/Plutonium/docs/df/d13/ui___types_8hpp_source.html create mode 100644 include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html create mode 100644 include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.js create mode 100644 include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.png create mode 100644 include/Plutonium/docs/df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html create mode 100644 include/Plutonium/docs/df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.js create mode 100644 include/Plutonium/docs/df/d8b/classpu_1_1ui_1_1render_1_1_renderer-members.html create mode 100644 include/Plutonium/docs/df/dbf/classpu_1_1ui_1_1elm_1_1_image-members.html diff --git a/include/Plutonium/docs/dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html b/include/Plutonium/docs/dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html new file mode 100644 index 0000000..7b67e7c --- /dev/null +++ b/include/Plutonium/docs/dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html @@ -0,0 +1,371 @@ + + + + + + + +Plutonium framework API: pu::ui::render::TextureRenderOptions Struct Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
pu::ui::render::TextureRenderOptions Struct Reference
+
+
+ +

#include <render_Renderer.hpp>

+ + + + + + +

+Static Public Member Functions

static constexpr TextureRenderOptions WithCustomAlpha (const u8 alpha)
 
static constexpr TextureRenderOptions WithCustomDimensions (const i32 width, const i32 height)
 
+ + + + + + + + + +

+Public Attributes

i32 alpha_mod
 
i32 width
 
i32 height
 
float rot_angle
 
+ + + + + + + + + + + +

+Static Public Attributes

static constexpr i32 NoAlpha = -1
 
static constexpr i32 NoWidth = -1
 
static constexpr i32 NoHeight = -1
 
static constexpr float NoRotation = -1.0f
 
static const TextureRenderOptions Default = { TextureRenderOptions::NoAlpha, TextureRenderOptions::NoWidth, TextureRenderOptions::NoHeight, TextureRenderOptions::NoRotation }
 
+

Member Function Documentation

+ +

◆ WithCustomAlpha()

+ +
+
+ + + + + +
+ + + + + + + + +
static constexpr TextureRenderOptions pu::ui::render::TextureRenderOptions::WithCustomAlpha (const u8 alpha)
+
+inlinestaticconstexpr
+
+ +
+
+ +

◆ WithCustomDimensions()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
static constexpr TextureRenderOptions pu::ui::render::TextureRenderOptions::WithCustomDimensions (const i32 width,
const i32 height 
)
+
+inlinestaticconstexpr
+
+ +
+
+

Member Data Documentation

+ +

◆ alpha_mod

+ +
+
+ + + + +
i32 pu::ui::render::TextureRenderOptions::alpha_mod
+
+ +
+
+ +

◆ Default

+ +
+
+ + + + + +
+ + + + +
constexpr const TextureRenderOptions pu::ui::render::TextureRenderOptions::Default = { TextureRenderOptions::NoAlpha, TextureRenderOptions::NoWidth, TextureRenderOptions::NoHeight, TextureRenderOptions::NoRotation }
+
+inlinestaticconstexpr
+
+ +
+
+ +

◆ height

+ +
+
+ + + + +
i32 pu::ui::render::TextureRenderOptions::height
+
+ +
+
+ +

◆ NoAlpha

+ +
+
+ + + + + +
+ + + + +
constexpr i32 pu::ui::render::TextureRenderOptions::NoAlpha = -1
+
+staticconstexpr
+
+ +
+
+ +

◆ NoHeight

+ +
+
+ + + + + +
+ + + + +
constexpr i32 pu::ui::render::TextureRenderOptions::NoHeight = -1
+
+staticconstexpr
+
+ +
+
+ +

◆ NoRotation

+ +
+
+ + + + + +
+ + + + +
constexpr float pu::ui::render::TextureRenderOptions::NoRotation = -1.0f
+
+staticconstexpr
+
+ +
+
+ +

◆ NoWidth

+ +
+
+ + + + + +
+ + + + +
constexpr i32 pu::ui::render::TextureRenderOptions::NoWidth = -1
+
+staticconstexpr
+
+ +
+
+ +

◆ rot_angle

+ +
+
+ + + + +
float pu::ui::render::TextureRenderOptions::rot_angle
+
+ +
+
+ +

◆ width

+ +
+
+ + + + +
i32 pu::ui::render::TextureRenderOptions::width
+
+ +
+
+
The documentation for this struct was generated from the following file: +
+
+ + + + diff --git a/include/Plutonium/docs/dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.js b/include/Plutonium/docs/dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.js new file mode 100644 index 0000000..6105382 --- /dev/null +++ b/include/Plutonium/docs/dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.js @@ -0,0 +1,14 @@ +var structpu_1_1ui_1_1render_1_1_texture_render_options = +[ + [ "WithCustomAlpha", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aa4e31026155552f90a79d79ebb0b8960", null ], + [ "WithCustomDimensions", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a930d13b2448e2deb76b7d1acdfb16c38", null ], + [ "alpha_mod", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a4b579ab4b2bb90df8ad49d633a03e22a", null ], + [ "Default", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050", null ], + [ "height", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aaf5207a4ee7b5198863579ac8da5ba66", null ], + [ "NoAlpha", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a66db5065001cf2ba752c7bb18c17300b", null ], + [ "NoHeight", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aefa877cc8f0002335d30eb93d1faa4e3", null ], + [ "NoRotation", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#ac4399ad9cab23155bd9d5b6e9c30b015", null ], + [ "NoWidth", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a308031ec24474b88bd71242522c42a5b", null ], + [ "rot_angle", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a01880124bb058e56d5830254fe8eed01", null ], + [ "width", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a8b2642bbebad684c07f9e692d053952b", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html b/include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html new file mode 100644 index 0000000..f4ac550 --- /dev/null +++ b/include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html @@ -0,0 +1,413 @@ + + + + + + + +Plutonium framework API: pu::ui::extras::Toast Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
pu::ui::extras::Toast Class Referencefinal
+
+
+ +

#include <extras_Toast.hpp>

+
+Inheritance diagram for pu::ui::extras::Toast:
+
+
+ + +pu::ui::Overlay +pu::ui::Container + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Toast (const std::string &text, const std::string &font_name, const Color text_clr, const Color bg_clr)
 
void SetText (const std::string &text)
 
void OnPreRender (render::Renderer::Ref &drawer) override
 
void OnPostRender (render::Renderer::Ref &drawer) override
 
- Public Member Functions inherited from pu::ui::Overlay
 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)
 
- Public Member Functions inherited from pu::ui::Container
 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 DefaultY = 550
 
static constexpr i32 HeightAndTextHeightFactor = 3
 
static constexpr i32 HorizontalMargin = 50
 
static constexpr u8 BaseAlpha = 200
 
- Static Public Attributes inherited from pu::ui::Overlay
static constexpr i32 DefaultRadius = 25
 
static constexpr i32 MaxFadeAlpha = 200
 
static constexpr i32 FadeAlphaVariation = 25
 
+ + + + + + + + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from pu::ui::Container
i32 x
 
i32 y
 
i32 w
 
i32 h
 
std::vector< elm::Element::Ref > elems
 
+

Constructor & Destructor Documentation

+ +

◆ Toast()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
pu::ui::extras::Toast::Toast (const std::string & text,
const std::string & font_name,
const Color text_clr,
const Color bg_clr 
)
+
+ +
+
+

Member Function Documentation

+ +

◆ OnPostRender()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::extras::Toast::OnPostRender (render::Renderer::Ref & drawer)
+
+overridevirtual
+
+ +

Reimplemented from pu::ui::Overlay.

+ +
+
+ +

◆ OnPreRender()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::extras::Toast::OnPreRender (render::Renderer::Ref & drawer)
+
+overridevirtual
+
+ +

Reimplemented from pu::ui::Overlay.

+ +
+
+ +

◆ SetText()

+ +
+
+ + + + + + + + +
void pu::ui::extras::Toast::SetText (const std::string & text)
+
+ +
+
+

Member Data Documentation

+ +

◆ BaseAlpha

+ +
+
+ + + + + +
+ + + + +
constexpr u8 pu::ui::extras::Toast::BaseAlpha = 200
+
+staticconstexpr
+
+ +
+
+ +

◆ DefaultY

+ +
+
+ + + + + +
+ + + + +
constexpr i32 pu::ui::extras::Toast::DefaultY = 550
+
+staticconstexpr
+
+ +
+
+ +

◆ HeightAndTextHeightFactor

+ +
+
+ + + + + +
+ + + + +
constexpr i32 pu::ui::extras::Toast::HeightAndTextHeightFactor = 3
+
+staticconstexpr
+
+ +
+
+ +

◆ HorizontalMargin

+ +
+
+ + + + + +
+ + + + +
constexpr i32 pu::ui::extras::Toast::HorizontalMargin = 50
+
+staticconstexpr
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.js b/include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.js new file mode 100644 index 0000000..262d3d5 --- /dev/null +++ b/include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.js @@ -0,0 +1,11 @@ +var classpu_1_1ui_1_1extras_1_1_toast = +[ + [ "Toast", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a44c63bca452b4696c9561e24ecef5b0e", null ], + [ "OnPostRender", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#ad7dcaf60b7d87c347cd4519b26841c71", null ], + [ "OnPreRender", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#afa43c401515e588174a9b9a3775791fa", null ], + [ "SetText", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a4c3a98bda1991664cb73542e8047c67a", null ], + [ "BaseAlpha", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#aeaad0b5a3c8e580ff6a3f02e9df86797", null ], + [ "DefaultY", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a23747403d5048ab9d1eb985f45942ee2", null ], + [ "HeightAndTextHeightFactor", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a343475c2661cfb0d1ccc644db4335e90", null ], + [ "HorizontalMargin", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a4aa3d45962c92ed2d6f554f1f4acc2dd", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.png b/include/Plutonium/docs/dc/d49/classpu_1_1ui_1_1extras_1_1_toast.png new file mode 100644 index 0000000000000000000000000000000000000000..cfd6386801e96a23fa75f365fb46acd346de3a52 GIT binary patch literal 741 zcmeAS@N?(olHy`uVBq!ia0vp^WkB4)!3-o>AHMejQW60^A+G=b{|7Q}eR*WQH+ce( z1;z&s9H>v&rw8P6lmz(&GXNEVz|~VBMhpy0C7v#hAr*{o=U(i4t-#~L-+bl&|0ieF zSPGnO-CNPNS1WYcA(r0>GghrXB9UA#sJe2yTG*sHU%zi$D5WRwX{2TRynND`;?=je zzFGM#`-Z8R&fFzJJAJr(=IlOa`MP5Mjn_*$?*{}``rTMtr)b)Axh_iktjn##oAb_o zdVcrT(ac{v7^6?K@2*@s%lp~qqubnkcgNn(-Pu|WWyN#uFqHq4Ksfn`A zj?LP0<~dj5(Ge#cQG?mj6h&ee$-q=d;Sf?N8MwH3cm$Dv}G^)$F_D>F!VN zqD!{_UM5siUS#;~=vh0<6whBB#}aOD-Lp}A=`;HYDweNbZ!kP|BbK53E5nQRhBuBU zbCmOxE$n;1cc^aWWOcCv(U?9tH!Ff6-B;&;HJ4(`KP84QAWy#LPrj|a?sM5@CYh;e z@5_Iiy#Mr6a5qn#`|eM(T$diZbyzCz?V6h_4KLp_JD2~d>8}7+nRbLn?}I;|k^+Bb zrQXbYZTdFvbD_-nqcSH2v&HTlQd=I8V|(+6+~#*B(er0a%-m6UVp-VZywlr)3vRe+ zRUWui{I7lY**fECmJur|mYJ2_Te~sj?UOwZUZgbS{R+}?um{D&u|#K%g}dt*csCky UZBr6{0Zfw&p00i_>zopr0E1d+{Qv*} literal 0 HcmV?d00001 diff --git a/include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html b/include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html new file mode 100644 index 0000000..5910ac9 --- /dev/null +++ b/include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html @@ -0,0 +1,1256 @@ + + + + + + + +Plutonium framework API: pu::ui::elm::Menu Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
pu::ui::elm::Menu Class Reference
+
+
+ +

#include <elm_Menu.hpp>

+
+Inheritance diagram for pu::ui::elm::Menu:
+
+
+ + +pu::ui::elm::Element + +
+ + + + +

+Public Types

using OnSelectionChangedCallback = std::function< void()>
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Menu (const i32 x, const i32 y, const i32 width, const Color items_clr, const Color items_focus_clr, const i32 items_height, const i32 items_to_show)
 
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
 
i32 GetItemsHeight ()
 
void SetItemsHeight (const i32 items_height)
 
i32 GetNumberOfItemsToShow ()
 
void SetNumberOfItemsToShow (const i32 items_to_show)
 
Color GetItemsColor ()
 
void SetItemsColor (const Color items_clr)
 
Color GetItemsFocusColor ()
 
void SetItemsFocusColor (const Color items_focus_clr)
 
Color GetScrollbarColor ()
 
void SetScrollbarColor (const Color scrollbar_clr)
 
void SetOnSelectionChanged (OnSelectionChangedCallback on_selection_changed_cb)
 
void AddItem (MenuItem::Ref &item)
 
void ClearItems ()
 
void SetCooldownEnabled (const bool enabled)
 
MenuItem::Ref & GetSelectedItem ()
 
std::vector< MenuItem::Ref > & GetItems ()
 
i32 GetSelectedIndex ()
 
void SetSelectedIndex (const i32 idx)
 
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
 
- Public Member Functions inherited from pu::ui::elm::Element
 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 ()
 
+ + + + + + + + + + + + + + + + + + + +

+Static Public Attributes

static constexpr Color DefaultScrollbarColor = { 110, 110, 110, 0xFF }
 
static constexpr u8 ItemAlphaIncrement = 48
 
static constexpr float IconItemSizesFactor = 0.8f
 
static constexpr u32 IconMargin = 25
 
static constexpr u32 TextMargin = 25
 
static constexpr u8 LightScrollbarColorFactor = 30
 
static constexpr u32 ScrollbarWidth = 20
 
static constexpr u32 ShadowHeight = 5
 
static constexpr u8 ShadowBaseAlpha = 160
 
+ + + + + + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from pu::ui::elm::Element
bool visible
 
HorizontalAlign h_align
 
VerticalAlign v_align
 
Containerparent_container
 
+

Member Typedef Documentation

+ +

◆ OnSelectionChangedCallback

+ +
+
+ + + + +
using pu::ui::elm::Menu::OnSelectionChangedCallback = std::function<void()>
+
+ +
+
+

Constructor & Destructor Documentation

+ +

◆ Menu()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
pu::ui::elm::Menu::Menu (const i32 x,
const i32 y,
const i32 width,
const Color items_clr,
const Color items_focus_clr,
const i32 items_height,
const i32 items_to_show 
)
+
+ +
+
+

Member Function Documentation

+ +

◆ AddItem()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::AddItem (MenuItem::Ref & item)
+
+inline
+
+ +
+
+ +

◆ ClearItems()

+ +
+
+ + + + + +
+ + + + + + + +
void pu::ui::elm::Menu::ClearItems ()
+
+inline
+
+ +
+
+ +

◆ GetHeight()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::Menu::GetHeight ()
+
+inlineoverridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ GetItems()

+ +
+
+ + + + + +
+ + + + + + + +
std::vector< MenuItem::Ref > & pu::ui::elm::Menu::GetItems ()
+
+inline
+
+ +
+
+ +

◆ GetItemsColor()

+ +
+
+ + + + + +
+ + + + + + + +
Color pu::ui::elm::Menu::GetItemsColor ()
+
+inline
+
+ +
+
+ +

◆ GetItemsFocusColor()

+ +
+
+ + + + + +
+ + + + + + + +
Color pu::ui::elm::Menu::GetItemsFocusColor ()
+
+inline
+
+ +
+
+ +

◆ GetItemsHeight()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::Menu::GetItemsHeight ()
+
+inline
+
+ +
+
+ +

◆ GetNumberOfItemsToShow()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::Menu::GetNumberOfItemsToShow ()
+
+inline
+
+ +
+
+ +

◆ GetScrollbarColor()

+ +
+
+ + + + + +
+ + + + + + + +
Color pu::ui::elm::Menu::GetScrollbarColor ()
+
+inline
+
+ +
+
+ +

◆ GetSelectedIndex()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::Menu::GetSelectedIndex ()
+
+inline
+
+ +
+
+ +

◆ GetSelectedItem()

+ +
+
+ + + + + +
+ + + + + + + +
MenuItem::Ref & pu::ui::elm::Menu::GetSelectedItem ()
+
+inline
+
+ +
+
+ +

◆ GetWidth()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::Menu::GetWidth ()
+
+inlineoverridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ GetX()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::Menu::GetX ()
+
+inlineoverridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ GetY()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::Menu::GetY ()
+
+inlineoverridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ OnInput()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void pu::ui::elm::Menu::OnInput (const u64 keys_down,
const u64 keys_up,
const u64 keys_held,
const TouchPoint touch_pos 
)
+
+overridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ OnRender()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
void pu::ui::elm::Menu::OnRender (render::Renderer::Ref & drawer,
const i32 x,
const i32 y 
)
+
+overridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ SetCooldownEnabled()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetCooldownEnabled (const bool enabled)
+
+inline
+
+ +
+
+ +

◆ SetItemsColor()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetItemsColor (const Color items_clr)
+
+inline
+
+ +
+
+ +

◆ SetItemsFocusColor()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetItemsFocusColor (const Color items_focus_clr)
+
+inline
+
+ +
+
+ +

◆ SetItemsHeight()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetItemsHeight (const i32 items_height)
+
+inline
+
+ +
+
+ +

◆ SetNumberOfItemsToShow()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetNumberOfItemsToShow (const i32 items_to_show)
+
+inline
+
+ +
+
+ +

◆ SetOnSelectionChanged()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetOnSelectionChanged (OnSelectionChangedCallback on_selection_changed_cb)
+
+inline
+
+ +
+
+ +

◆ SetScrollbarColor()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetScrollbarColor (const Color scrollbar_clr)
+
+inline
+
+ +
+
+ +

◆ SetSelectedIndex()

+ +
+
+ + + + + + + + +
void pu::ui::elm::Menu::SetSelectedIndex (const i32 idx)
+
+ +
+
+ +

◆ SetWidth()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetWidth (const i32 width)
+
+inline
+
+ +
+
+ +

◆ SetX()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetX (const i32 x)
+
+inline
+
+ +
+
+ +

◆ SetY()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::Menu::SetY (const i32 y)
+
+inline
+
+ +
+
+

Member Data Documentation

+ +

◆ DefaultScrollbarColor

+ +
+
+ + + + + +
+ + + + +
constexpr Color pu::ui::elm::Menu::DefaultScrollbarColor = { 110, 110, 110, 0xFF }
+
+staticconstexpr
+
+ +
+
+ +

◆ IconItemSizesFactor

+ +
+
+ + + + + +
+ + + + +
constexpr float pu::ui::elm::Menu::IconItemSizesFactor = 0.8f
+
+staticconstexpr
+
+ +
+
+ +

◆ IconMargin

+ +
+
+ + + + + +
+ + + + +
constexpr u32 pu::ui::elm::Menu::IconMargin = 25
+
+staticconstexpr
+
+ +
+
+ +

◆ ItemAlphaIncrement

+ +
+
+ + + + + +
+ + + + +
constexpr u8 pu::ui::elm::Menu::ItemAlphaIncrement = 48
+
+staticconstexpr
+
+ +
+
+ +

◆ LightScrollbarColorFactor

+ +
+
+ + + + + +
+ + + + +
constexpr u8 pu::ui::elm::Menu::LightScrollbarColorFactor = 30
+
+staticconstexpr
+
+ +
+
+ +

◆ ScrollbarWidth

+ +
+
+ + + + + +
+ + + + +
constexpr u32 pu::ui::elm::Menu::ScrollbarWidth = 20
+
+staticconstexpr
+
+ +
+
+ +

◆ ShadowBaseAlpha

+ +
+
+ + + + + +
+ + + + +
constexpr u8 pu::ui::elm::Menu::ShadowBaseAlpha = 160
+
+staticconstexpr
+
+ +
+
+ +

◆ ShadowHeight

+ +
+
+ + + + + +
+ + + + +
constexpr u32 pu::ui::elm::Menu::ShadowHeight = 5
+
+staticconstexpr
+
+ +
+
+ +

◆ TextMargin

+ +
+
+ + + + + +
+ + + + +
constexpr u32 pu::ui::elm::Menu::TextMargin = 25
+
+staticconstexpr
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.js b/include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.js new file mode 100644 index 0000000..cb639fd --- /dev/null +++ b/include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.js @@ -0,0 +1,41 @@ +var classpu_1_1ui_1_1elm_1_1_menu = +[ + [ "OnSelectionChangedCallback", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af1b77782418095762505bbd1d3022451", null ], + [ "Menu", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ae8b2cae8e3a15b2040aa27056eefdc39", null ], + [ "AddItem", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a29a820f09597fef7e363cfaacf6d4f7a", null ], + [ "ClearItems", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abf94e076df3b81e5f35a22afcf8e59a2", null ], + [ "GetHeight", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a65ceb988a218bbbd3fe7e1dd89ebf413", null ], + [ "GetItems", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a958940cffac582f4f9fe4b4529d8a0d0", null ], + [ "GetItemsColor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abdcdcbb6636030cea9c93bd5ee1f2454", null ], + [ "GetItemsFocusColor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a09f75b0b56096167ef9599fed1ebc6b2", null ], + [ "GetItemsHeight", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1e036067e712794ef90eb6dfc18123df", null ], + [ "GetNumberOfItemsToShow", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a159b01bf00f53d240a7f9d2476c984a1", null ], + [ "GetScrollbarColor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af645770008526443f4544623e7e51eba", null ], + [ "GetSelectedIndex", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2c62051cb4d00c989e3dc3f0cda27438", null ], + [ "GetSelectedItem", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1b94e50b817d58ca2fab65f3682d4c80", null ], + [ "GetWidth", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a66c4d9b796198ba19d802b8f6ae9d412", null ], + [ "GetX", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#add328966e5eccbb162e158796527168e", null ], + [ "GetY", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ac47968d50273b93d35ef38edeb4c3e66", null ], + [ "OnInput", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a8513f7fc66b938d0cbaec4dc7e42f986", null ], + [ "OnRender", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab00c239a39190158a37866235e9b87d5", null ], + [ "SetCooldownEnabled", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a21b17603c72e6afac87d21391d689835", null ], + [ "SetItemsColor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad656b194db971dd374e9aa931df0c37b", null ], + [ "SetItemsFocusColor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0109316c9734d6db2d555262017785", null ], + [ "SetItemsHeight", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af9df49cb62e6786a83fbb5a181fffdc8", null ], + [ "SetNumberOfItemsToShow", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aab52de9e0a906d8fc4ddafcf04322067", null ], + [ "SetOnSelectionChanged", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a6f7c8e6e462df71fb54eef0aebb781e9", null ], + [ "SetScrollbarColor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a0b2197f2c4e59271bcc7a30f9dd731d9", null ], + [ "SetSelectedIndex", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2a7c18fb29fe2802d1de5278922c0dd5", null ], + [ "SetWidth", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aa66f87d0e1843745e71d51cc035591b9", null ], + [ "SetX", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a55b92cfb287ab8c25fc95eb6a672771f", null ], + [ "SetY", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a06fc20588804c20a00a43c81fe70b382", null ], + [ "DefaultScrollbarColor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a51883af6fcc217c66c9b414b025ca29f", null ], + [ "IconItemSizesFactor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0e6d0fe95a46289c40441e8644445d", null ], + [ "IconMargin", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a87a799cbe4cee1e3c434fc00cbed4903", null ], + [ "ItemAlphaIncrement", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a39184ce87a23d17e70865e6998a56aaa", null ], + [ "LightScrollbarColorFactor", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad5e26ee602c66c6d8eb95d4699eb77e2", null ], + [ "ScrollbarWidth", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2b3b88d164f08916e85676f65c59a715", null ], + [ "ShadowBaseAlpha", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a96db8cad313dedb360e4b54fea41aa6e", null ], + [ "ShadowHeight", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab1d3d1185ddae9d7add1237a75623f1e", null ], + [ "TextMargin", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a28f36a9751b1e84e17f4984d32f7a8b5", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.png b/include/Plutonium/docs/dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..888eda18515e52b6f0fc3933675ead3fd8460108 GIT binary patch literal 533 zcmeAS@N?(olHy`uVBq!ia0vp^r9d3O!3-n?cAw$~QW60^A+G=b{|7Q}eR*WQH+ce( z1;z&s9H>v&rw8P6lmz(&GXNEVz|~VBMhpy$OFUg1Ln;{G&b^p-Sb@j2Uq9&o|H;$U zR3w<*PT>t&=@V00mRDo2Y9i$M&Fr_>tHsY~Ylidp6PX?4%^GrxkXl}@hD*l{Vl z^;Qj#H7Vhr(W7dLs`|M;xgU;XNt*8;BxkG6V!QwS>WH$HMh zGIssHrB&;<#!mTu>)y-MRqJE((%*0Wvc&SY^ZKW}b5@l4cfTro-j#a4{Tt`}_g}ZG z@45JA!W^|@XE*rd{VYCXt63(Ss;=Yd{AFs0r_?f#vv&1LIdLpzEePaqc(|+eSH+#i zy{)?(@(kx z55@~YjCt=`2xaf;1NY5gkO+o$5P zcNc6m%369S^wlqQUgfoiD@y7r{%yYgiOugy+0N(9J%3v`PbN2Po$cY96GVh3 zpEYpXHfhsC-Tx;;{3I4^-Zz8Gz+p1ih2ZUhXV193W*29a_&?1s@;NXL89ZJ6T-G@y GGywonp#szZ literal 0 HcmV?d00001 diff --git a/include/Plutonium/docs/dc/da1/classpu_1_1ui_1_1elm_1_1_rectangle-members.html b/include/Plutonium/docs/dc/da1/classpu_1_1ui_1_1elm_1_1_rectangle-members.html new file mode 100644 index 0000000..755ea97 --- /dev/null +++ b/include/Plutonium/docs/dc/da1/classpu_1_1ui_1_1elm_1_1_rectangle-members.html @@ -0,0 +1,131 @@ + + + + + + + +Plutonium framework API: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
pu::ui::elm::Rectangle Member List
+
+
+ +

This is the complete list of members for pu::ui::elm::Rectangle, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Element()pu::ui::elm::Elementinline
GetBorderRadius()pu::ui::elm::Rectangleinline
GetColor()pu::ui::elm::Rectangleinline
GetHeight() overridepu::ui::elm::Rectangleinlinevirtual
GetHorizontalAlign()pu::ui::elm::Elementinline
GetProcessedX()pu::ui::elm::Element
GetProcessedY()pu::ui::elm::Element
GetVerticalAlign()pu::ui::elm::Elementinline
GetWidth() overridepu::ui::elm::Rectangleinlinevirtual
GetX() overridepu::ui::elm::Rectangleinlinevirtual
GetY() overridepu::ui::elm::Rectangleinlinevirtual
h_alignpu::ui::elm::Elementprotected
IsVisible()pu::ui::elm::Elementinline
OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) overridepu::ui::elm::Rectangleinlinevirtual
OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) overridepu::ui::elm::Rectanglevirtual
parent_containerpu::ui::elm::Elementprotected
Rectangle(const i32 x, const i32 y, const i32 width, const i32 height, const Color clr, const i32 border_radius=0)pu::ui::elm::Rectangleinline
SetBorderRadius(const i32 border_radius)pu::ui::elm::Rectangleinline
SetColor(const Color clr)pu::ui::elm::Rectangleinline
SetHeight(const i32 height)pu::ui::elm::Rectangleinline
SetHorizontalAlign(const HorizontalAlign align)pu::ui::elm::Elementinline
SetParentContainer(Container *parent_container)pu::ui::elm::Elementinline
SetVerticalAlign(const VerticalAlign align)pu::ui::elm::Elementinline
SetVisible(const bool visible)pu::ui::elm::Elementinline
SetWidth(const i32 width)pu::ui::elm::Rectangleinline
SetX(const i32 x)pu::ui::elm::Rectangleinline
SetY(const i32 y)pu::ui::elm::Rectangleinline
v_alignpu::ui::elm::Elementprotected
visiblepu::ui::elm::Elementprotected
~Element()pu::ui::elm::Elementinlinevirtual
+
+ + + + diff --git a/include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.html b/include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.html new file mode 100644 index 0000000..842a84b --- /dev/null +++ b/include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.html @@ -0,0 +1,676 @@ + + + + + + + +Plutonium framework API: pu::ui::Container Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
pu::ui::Container Class Reference
+
+
+ +

#include <ui_Container.hpp>

+
+Inheritance diagram for pu::ui::Container:
+
+
+ + +pu::ui::Layout +pu::ui::Overlay +pu::ui::extras::Toast + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 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 ()
 
+ + + + + + + + + + + +

+Protected Attributes

i32 x
 
i32 y
 
i32 w
 
i32 h
 
std::vector< elm::Element::Ref > elems
 
+

Constructor & Destructor Documentation

+ +

◆ Container()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
pu::ui::Container::Container (const i32 x,
const i32 y,
const i32 width,
const i32 height 
)
+
+inline
+
+ +
+
+

Member Function Documentation

+ +

◆ Add()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::Container::Add (elm::Element::Ref elem)
+
+inline
+
+ +
+
+ +

◆ At()

+ +
+
+ + + + + +
+ + + + + + + + +
elm::Element::Ref & pu::ui::Container::At (const i32 idx)
+
+inline
+
+ +
+
+ +

◆ Clear()

+ +
+
+ + + + + +
+ + + + + + + +
void pu::ui::Container::Clear ()
+
+inline
+
+ +
+
+ +

◆ GetCount()

+ +
+
+ + + + + +
+ + + + + + + +
size_t pu::ui::Container::GetCount ()
+
+inline
+
+ +
+
+ +

◆ GetHeight()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::Container::GetHeight ()
+
+inline
+
+ +
+
+ +

◆ GetWidth()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::Container::GetWidth ()
+
+inline
+
+ +
+
+ +

◆ GetX()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::Container::GetX ()
+
+inline
+
+ +
+
+ +

◆ GetY()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::Container::GetY ()
+
+inline
+
+ +
+
+ +

◆ Has()

+ +
+
+ + + + + +
+ + + + + + + + +
bool pu::ui::Container::Has (elm::Element::Ref & elem)
+
+inline
+
+ +
+
+ +

◆ PreRender()

+ +
+
+ + + + + + + +
void pu::ui::Container::PreRender ()
+
+ +
+
+ +

◆ SetHeight()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::Container::SetHeight (const i32 height)
+
+inline
+
+ +
+
+ +

◆ SetWidth()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::Container::SetWidth (const i32 width)
+
+inline
+
+ +
+
+ +

◆ SetX()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::Container::SetX (const i32 x)
+
+inline
+
+ +
+
+ +

◆ SetY()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::Container::SetY (const i32 y)
+
+inline
+
+ +
+
+

Member Data Documentation

+ +

◆ elems

+ +
+
+ + + + + +
+ + + + +
std::vector<elm::Element::Ref> pu::ui::Container::elems
+
+protected
+
+ +
+
+ +

◆ h

+ +
+
+ + + + + +
+ + + + +
i32 pu::ui::Container::h
+
+protected
+
+ +
+
+ +

◆ w

+ +
+
+ + + + + +
+ + + + +
i32 pu::ui::Container::w
+
+protected
+
+ +
+
+ +

◆ x

+ +
+
+ + + + + +
+ + + + +
i32 pu::ui::Container::x
+
+protected
+
+ +
+
+ +

◆ y

+ +
+
+ + + + + +
+ + + + +
i32 pu::ui::Container::y
+
+protected
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.js b/include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.js new file mode 100644 index 0000000..c227312 --- /dev/null +++ b/include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.js @@ -0,0 +1,23 @@ +var classpu_1_1ui_1_1_container = +[ + [ "Container", "dc/dcd/classpu_1_1ui_1_1_container.html#a2ff66728ca4ad1640d6f3993b727a35e", null ], + [ "Add", "dc/dcd/classpu_1_1ui_1_1_container.html#ad05f397ce7e1a6029eff10884406c019", null ], + [ "At", "dc/dcd/classpu_1_1ui_1_1_container.html#a4d3542c9a6bb9d5330cb4572d2ffa6c7", null ], + [ "Clear", "dc/dcd/classpu_1_1ui_1_1_container.html#a2a123855380966b76b7904ffe94b7fc5", null ], + [ "GetCount", "dc/dcd/classpu_1_1ui_1_1_container.html#a1e30ab38bd2f2a90b5def1a08b1a232f", null ], + [ "GetHeight", "dc/dcd/classpu_1_1ui_1_1_container.html#a7730ee6140fbd34095a2140a3ec82e23", null ], + [ "GetWidth", "dc/dcd/classpu_1_1ui_1_1_container.html#aff20ef4581c3e60e25eca8184aacfc6e", null ], + [ "GetX", "dc/dcd/classpu_1_1ui_1_1_container.html#a67deb4effe6e93d58339b75fad207284", null ], + [ "GetY", "dc/dcd/classpu_1_1ui_1_1_container.html#af4b294c2c97a464f84a74ad6906656a4", null ], + [ "Has", "dc/dcd/classpu_1_1ui_1_1_container.html#a207e830a8cb788fa3737a6f0f536fb8c", null ], + [ "PreRender", "dc/dcd/classpu_1_1ui_1_1_container.html#a9a72b95abf9aaf98500384a7a3258b4e", null ], + [ "SetHeight", "dc/dcd/classpu_1_1ui_1_1_container.html#a751ba1fc10928b3de4a0126300975f95", null ], + [ "SetWidth", "dc/dcd/classpu_1_1ui_1_1_container.html#af27fd51419e50e0035bac38c2ebde565", null ], + [ "SetX", "dc/dcd/classpu_1_1ui_1_1_container.html#abfb560acdd4061b46a97072441ba20fb", null ], + [ "SetY", "dc/dcd/classpu_1_1ui_1_1_container.html#a74c8effea20d6bb11645ed79b21d00ac", null ], + [ "elems", "dc/dcd/classpu_1_1ui_1_1_container.html#a0e8fcdecac68cddf4c9baa90599569c6", null ], + [ "h", "dc/dcd/classpu_1_1ui_1_1_container.html#a908e50723784ef3d1e0fea0c8ce65cad", null ], + [ "w", "dc/dcd/classpu_1_1ui_1_1_container.html#a1cfc135e2bb905b57a4be3b9294e812f", null ], + [ "x", "dc/dcd/classpu_1_1ui_1_1_container.html#a0611d8d500db31fe2c83a29ab2089f5e", null ], + [ "y", "dc/dcd/classpu_1_1ui_1_1_container.html#a3470636cdd7eb6dfea4b40b22e0e12c7", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.png b/include/Plutonium/docs/dc/dcd/classpu_1_1ui_1_1_container.png new file mode 100644 index 0000000000000000000000000000000000000000..548bed68a0dad78efc91b8a492613d6bed3c68eb GIT binary patch literal 996 zcmeAS@N?(olHy`uVBq!ia0vp^-+;J-gBeIZe)7y4NJ#|vgt-3y{~yS__2rTI-sA~D z78oBmaG*Y6pB|9QQ4-`A%m7pb0#{Fk7%?y~7kj!mhEy=VoqM;aSwX<9U*34%f930L zN(*KjF^Sxgb9^$(llL1o>}CBSeAs~J8-vNxlUy;<3mDh&CNyU=n>=_bn!>w!r^Qtp z`A?HB?km0d#oFk?%`NSklQtGr3Ua$vcK*8b{M+xiLV5MDKVpqv=J-{A^IkUfP?~*~ zZgMPrn* zJHFX6KYx9m>-(QMPhZ+>zB@~7=bB&l-}SW1JUG3>%z-&Z`T*N?wv2{s<{J-gG4M*X zC2nAUu&RgQ@5SZcEXrQqUH&cQ?&9+0x8|K>{B>|EV-*r!cgUhIIhf&1rmXIDwhf22 zGM*{SWzYs1D1*s;bn2F3%Llb&4#hq0pMN&1L{853o@BaC*E4L#HXw`leFpz*`AH$^ z%TM0Eb+h8|7j;k3d3taBFXk=SD^;2P zG3Z~7OSPZg(<^1SUIwgxA62NQvh=y|t(&2FD`Vf=?4J^1qkre^l&MJ%L*Fi1yW~yf z*Sz=V=ca#p`n>EmfA(?B<>%ipq_^I-dbD%a>-XInR{s0;uxqHVpmB@#;fI(p9 z0}Pu4zh$yc9M2eHrV1{w|8+&~xZd91SLUs${_-y5wy~vyJut5HiN^<)awxW#OFDBr zv}Kqjq;gUU9L2zJUdMZ(;rXp*mE0BA@7+67KWU5NwK(%zzi;)&&GW6E(Ihf`>l#b3 zNr!dYwm*_Nw=#ImpTDDIlM+}B>;xoGbCjdE|FTC6$m zTBvgEmTR+j)^VTEtmjih-y~osR$Z~M+X7R=ZauZ!f8lQ2 zr`(B~!ZdZBuCZCEzdLlv7MscXyyvE!R6WT9bg0AqTa!}Sf%)XXR@IZB#Oc7Hc;hp3 Y(`B!d?t7FtfmxEl)78&qol`;+0I + + + + + + +Plutonium framework API: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
pu::ui::Layout Member List
+
+
+ +

This is the complete list of members for pu::ui::Layout, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add(elm::Element::Ref elem)pu::ui::Containerinline
AddRenderCallback(RenderCallback render_cb)pu::ui::Layoutinline
At(const i32 idx)pu::ui::Containerinline
Clear()pu::ui::Containerinline
ConsumeSimulatedTouchPosition()pu::ui::Layout
Container(const i32 x, const i32 y, const i32 width, const i32 height)pu::ui::Containerinline
DefaultBackgroundColorpu::ui::Layoutstatic
elemspu::ui::Containerprotected
GetBackgroundColor()pu::ui::Layoutinline
GetBackgroundImageTexture()pu::ui::Layoutinline
GetCount()pu::ui::Containerinline
GetHeight()pu::ui::Containerinline
GetOnInput()pu::ui::Layoutinline
GetRenderCallbacks()pu::ui::Layoutinline
GetWidth()pu::ui::Containerinline
GetX()pu::ui::Containerinline
GetY()pu::ui::Containerinline
hpu::ui::Containerprotected
Has(elm::Element::Ref &elem)pu::ui::Containerinline
HasBackgroundImage()pu::ui::Layoutinline
HasChildren()pu::ui::Layoutinline
Layout()pu::ui::Layoutinline
OnInputCallback typedefpu::ui::Layout
PreRender()pu::ui::Container
RenderCallback typedefpu::ui::Layout
SetBackgroundColor(const Color clr)pu::ui::Layout
SetBackgroundImage(const std::string &path)pu::ui::Layout
SetHeight(const i32 height)pu::ui::Containerinline
SetOnInput(OnInputCallback on_ipt_cb)pu::ui::Layoutinline
SetWidth(const i32 width)pu::ui::Containerinline
SetX(const i32 x)pu::ui::Containerinline
SetY(const i32 y)pu::ui::Containerinline
SimulateTouchPosition(const TouchPoint sim_touch_pos)pu::ui::Layoutinline
wpu::ui::Containerprotected
xpu::ui::Containerprotected
ypu::ui::Containerprotected
~Layout()pu::ui::Layout
+
+ + + + diff --git a/include/Plutonium/docs/dc/de9/classpu_1_1ui_1_1_application-members.html b/include/Plutonium/docs/dc/de9/classpu_1_1ui_1_1_application-members.html new file mode 100644 index 0000000..61a9ec3 --- /dev/null +++ b/include/Plutonium/docs/dc/de9/classpu_1_1ui_1_1_application-members.html @@ -0,0 +1,148 @@ + + + + + + + +Plutonium framework API: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
pu::ui::Application Member List
+
+
+ +

This is the complete list of members for pu::ui::Application, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddRenderCallback(RenderCallback render_cb)pu::ui::Applicationinline
Application(render::Renderer::Ref renderer)pu::ui::Application
CallForRender()pu::ui::Application
CallForRenderWithRenderOver(RenderOverFunction render_over_fn)pu::ui::Application
CanBeShown()pu::ui::Applicationinline
Close()pu::ui::Application
CloseWithFadeOut()pu::ui::Applicationinline
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="")pu::ui::Application
DefaultFadeAlphaIncrementpu::ui::Applicationstatic
EndOverlay()pu::ui::Application
fade_alphapu::ui::Applicationprotected
fade_alpha_incrementpu::ui::Applicationprotected
FadeIn()pu::ui::Application
FadeOut()pu::ui::Application
GetButtonsDown()pu::ui::Applicationinline
GetButtonsHeld()pu::ui::Applicationinline
GetButtonsUp()pu::ui::Applicationinline
GetLayout()pu::ui::Applicationinline
GetTouchState()pu::ui::Applicationinline
in_render_overpu::ui::Applicationprotected
input_padpu::ui::Applicationprotected
is_shownpu::ui::Applicationprotected
IsFadedIn()pu::ui::Applicationinline
IsShown()pu::ui::Applicationinline
loadedpu::ui::Applicationprotected
LoadLayout(Layout::Ref lyt)pu::ui::Applicationinline
lytpu::ui::Applicationprotected
on_ipt_cbpu::ui::Applicationprotected
OnInputCallback typedefpu::ui::Application
OnLoad()=0pu::ui::Applicationpure virtual
OnRender()pu::ui::Application
ovlpu::ui::Applicationprotected
ovl_start_timepu::ui::Applicationprotected
ovl_timeout_mspu::ui::Applicationprotected
Prepare()pu::ui::Application
render_cbspu::ui::Applicationprotected
render_over_fnpu::ui::Applicationprotected
RenderCallback typedefpu::ui::Application
rendererpu::ui::Applicationprotected
RenderOverFunction typedefpu::ui::Application
SetFadeAlphaIncrement(const u8 fade_alpha_increment)pu::ui::Applicationinline
SetOnInput(OnInputCallback on_ipt_cb)pu::ui::Applicationinline
Show()pu::ui::Application
ShowDialog(Dialog::Ref &dialog)pu::ui::Applicationinline
ShowWithFadeIn()pu::ui::Applicationinline
StartOverlay(Overlay::Ref ovl)pu::ui::Applicationinline
StartOverlayWithTimeout(Overlay::Ref ovl, const u64 ms)pu::ui::Application
+
+ + + + diff --git a/include/Plutonium/docs/dd/d39/ui___dialog_8hpp.html b/include/Plutonium/docs/dd/d39/ui___dialog_8hpp.html new file mode 100644 index 0000000..9aeaef4 --- /dev/null +++ b/include/Plutonium/docs/dd/d39/ui___dialog_8hpp.html @@ -0,0 +1,119 @@ + + + + + + + +Plutonium framework API: Plutonium/include/pu/ui/ui_Dialog.hpp File Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
ui_Dialog.hpp File Reference
+
+
+
#include <pu/ui/render/render_Renderer.hpp>
+#include <vector>
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  pu::ui::Dialog
 
+ + + + + +

+Namespaces

namespace  pu
 
namespace  pu::ui
 
+
+
+ + + + diff --git a/include/Plutonium/docs/dd/d39/ui___dialog_8hpp_source.html b/include/Plutonium/docs/dd/d39/ui___dialog_8hpp_source.html new file mode 100644 index 0000000..5e4ebaf --- /dev/null +++ b/include/Plutonium/docs/dd/d39/ui___dialog_8hpp_source.html @@ -0,0 +1,272 @@ + + + + + + + +Plutonium framework API: Plutonium/include/pu/ui/ui_Dialog.hpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
ui_Dialog.hpp
+
+
+Go to the documentation of this file.
1
+
2/*
+
3
+
4 Plutonium library
+
5
+
6 @file ui_Dialog.hpp
+
7 @brief A Dialog is an easy way to ask the user to choose between several options.
+
8 @author XorTroll
+
9
+
10 @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
+
11
+
12*/
+
13
+
14#pragma once
+ +
16#include <vector>
+
17
+
18namespace pu::ui {
+
19
+
20 class Application;
+
21
+
22 class Dialog {
+
23 public:
+
24 static constexpr Color DefaultTitleColor = { 0xA, 0xA, 0xA, 0xFF };
+
25 static constexpr Color DefaultContentColor = { 0x14, 0x14, 0x14, 0xFF };
+
26 static constexpr Color DefaultOptionColor = { 0xA, 0xA, 0xA, 0xFF };
+
27
+
28 static constexpr u32 DialogExtraBaseWidth = 250;
+
29 static constexpr u32 DialogBorderRadius = 35;
+
30
+
31 static constexpr u32 SpaceBetweenOptions = 20;
+
32
+
33 static constexpr u32 TitleExtraWidth = 90;
+
34 static constexpr u32 ContentExtraWidth = 90;
+
35 static constexpr u32 SpaceBetweenContentAndOptions = 140;
+
36 static constexpr u32 TitleTopMargin = 20;
+
37
+
38 static constexpr u32 TitleX = 45;
+
39 static constexpr u32 TitleY = 55;
+
40 static constexpr u32 ContentX = 45;
+
41 static constexpr u32 ContentY = 140;
+
42
+
43 static constexpr u32 IconExtraHeight = 25;
+
44
+
45 static constexpr u32 OptionsBaseHorizontalMargin = 45;
+
46 static constexpr u32 OptionHeight = 60;
+
47 static constexpr u32 OptionHorizontalMargin = 30;
+
48 static constexpr u32 OptionBorderRadius = OptionHeight / 3;
+
49 static constexpr u32 OptionBottomMargin = 25;
+
50
+
51 static constexpr u8 MaxScreenFadeAlpha = 125;
+
52
+
53 static constexpr u32 IconMargin = 30;
+
54
+
55 static inline constexpr Color MakeDialogColor(const u8 alpha) {
+
56 return { 0xE1, 0xE1, 0xE1, alpha };
+
57 }
+
58
+
59 static inline constexpr Color MakeOverColor(const u8 alpha) {
+
60 return { 0xB4, 0xB4, 0xC8, alpha };
+
61 }
+
62
+
63 static constexpr u8 OverAlphaIncrement = 48;
+
64 static constexpr u8 FadeAlphaIncrement = 25;
+
65
+
66 private:
+
67 std::string title_font_name;
+
68 std::string cnt_font_name;
+
69 std::string opt_font_name;
+
70 std::string title;
+
71 std::string cnt;
+
72 sdl2::Texture title_tex;
+
73 sdl2::Texture cnt_tex;
+
74 std::vector<std::string> opts;
+
75 std::vector<sdl2::Texture> opt_texs;
+
76 std::string cancel_opt;
+
77 i32 selected_opt_idx;
+
78 i32 selected_opt_over_alpha;
+
79 i32 prev_selected_opt_idx;
+
80 i32 prev_selected_opt_over_alpha;
+
81 bool user_cancelled;
+
82 sdl2::Texture icon_tex;
+
83
+
84 public:
+
85 Dialog(const std::string &title, const std::string &content);
+ + +
88
+
89 void AddOption(const std::string &opt_name);
+
90
+
91 inline void SetCancelOption(const std::string &opt_name) {
+
92 this->cancel_opt = opt_name;
+
93 }
+
94
+
95 inline void RemoveCancelOption() {
+
96 this->SetCancelOption("");
+
97 }
+
98
+
99 inline bool HasCancelOption() {
+
100 return !this->cancel_opt.empty();
+
101 }
+
102
+
103 void SetIcon(const std::string &icon_path);
+
104
+
105 inline constexpr bool HasIcon() {
+
106 return this->icon_tex != nullptr;
+
107 }
+
108
+ +
110
+
111 inline constexpr bool UserCancelled() {
+
112 return this->user_cancelled;
+
113 }
+
114
+
115 inline bool IsOk() {
+
116 if(this->user_cancelled) {
+
117 return false;
+
118 }
+
119
+
120 if(this->HasCancelOption() && (this->selected_opt_idx == (this->opt_texs.size() - 1))) {
+
121 return false;
+
122 }
+
123
+
124 return true;
+
125 }
+
126 };
+
127
+
128}
+
Definition: ui_Application.hpp:22
+
Definition: ui_Dialog.hpp:22
+
static constexpr u8 MaxScreenFadeAlpha
Definition: ui_Dialog.hpp:51
+
static constexpr Color DefaultTitleColor
Definition: ui_Dialog.hpp:24
+
constexpr bool UserCancelled()
Definition: ui_Dialog.hpp:111
+
static constexpr u32 ContentY
Definition: ui_Dialog.hpp:41
+
void SetCancelOption(const std::string &opt_name)
Definition: ui_Dialog.hpp:91
+
bool HasCancelOption()
Definition: ui_Dialog.hpp:99
+
static constexpr Color MakeOverColor(const u8 alpha)
Definition: ui_Dialog.hpp:59
+
static constexpr u32 IconMargin
Definition: ui_Dialog.hpp:53
+
static constexpr u32 OptionHorizontalMargin
Definition: ui_Dialog.hpp:47
+
static constexpr u32 OptionBorderRadius
Definition: ui_Dialog.hpp:48
+
static constexpr Color DefaultContentColor
Definition: ui_Dialog.hpp:25
+
static constexpr u32 TitleExtraWidth
Definition: ui_Dialog.hpp:33
+
static constexpr u32 TitleTopMargin
Definition: ui_Dialog.hpp:36
+ +
i32 Show(Application *app_ref)
+
static constexpr u32 DialogExtraBaseWidth
Definition: ui_Dialog.hpp:28
+
static constexpr u32 OptionBottomMargin
Definition: ui_Dialog.hpp:49
+
static constexpr u32 OptionHeight
Definition: ui_Dialog.hpp:46
+
static constexpr u32 SpaceBetweenContentAndOptions
Definition: ui_Dialog.hpp:35
+
static constexpr u32 OptionsBaseHorizontalMargin
Definition: ui_Dialog.hpp:45
+
static constexpr u32 TitleY
Definition: ui_Dialog.hpp:39
+
void RemoveCancelOption()
Definition: ui_Dialog.hpp:95
+
static constexpr u8 OverAlphaIncrement
Definition: ui_Dialog.hpp:63
+
void AddOption(const std::string &opt_name)
+
static constexpr u32 SpaceBetweenOptions
Definition: ui_Dialog.hpp:31
+
static constexpr Color MakeDialogColor(const u8 alpha)
Definition: ui_Dialog.hpp:55
+
constexpr bool HasIcon()
Definition: ui_Dialog.hpp:105
+
static constexpr u32 IconExtraHeight
Definition: ui_Dialog.hpp:43
+
static constexpr u32 TitleX
Definition: ui_Dialog.hpp:38
+
static constexpr u32 DialogBorderRadius
Definition: ui_Dialog.hpp:29
+
static constexpr u32 ContentX
Definition: ui_Dialog.hpp:40
+
static constexpr Color DefaultOptionColor
Definition: ui_Dialog.hpp:26
+
static constexpr u8 FadeAlphaIncrement
Definition: ui_Dialog.hpp:64
+
static constexpr u32 ContentExtraWidth
Definition: ui_Dialog.hpp:34
+
bool IsOk()
Definition: ui_Dialog.hpp:115
+
void SetIcon(const std::string &icon_path)
+
Dialog(const std::string &title, const std::string &content)
+
SDL_Texture * Texture
Definition: sdl2_Types.hpp:11
+
Definition: elm_Button.hpp:18
+
s32 i32
Definition: pu_Include.hpp:28
+
#define PU_SMART_CTOR(type)
Definition: pu_Include.hpp:19
+ +
Definition: ui_Types.hpp:44
+
+
+ + + + diff --git a/include/Plutonium/docs/dd/d61/classpu_1_1ui_1_1elm_1_1_menu_item-members.html b/include/Plutonium/docs/dd/d61/classpu_1_1ui_1_1elm_1_1_menu_item-members.html new file mode 100644 index 0000000..2001261 --- /dev/null +++ b/include/Plutonium/docs/dd/d61/classpu_1_1ui_1_1elm_1_1_menu_item-members.html @@ -0,0 +1,115 @@ + + + + + + + +Plutonium framework API: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
pu::ui::elm::MenuItem Member List
+
+
+ +

This is the complete list of members for pu::ui::elm::MenuItem, including all inherited members.

+ + + + + + + + + + + + + + + +
AddOnKey(OnKeyCallback on_key_cb, const u64 key=HidNpadButton_A)pu::ui::elm::MenuItem
DefaultColorpu::ui::elm::MenuItemstatic
GetColor()pu::ui::elm::MenuIteminline
GetIconPath()pu::ui::elm::MenuIteminline
GetName()pu::ui::elm::MenuIteminline
GetOnKeyCallback(const i32 idx)pu::ui::elm::MenuIteminline
GetOnKeyCallbackCount()pu::ui::elm::MenuIteminline
GetOnKeyCallbackKey(const i32 idx)pu::ui::elm::MenuIteminline
HasIcon()pu::ui::elm::MenuIteminline
MenuItem(const std::string &name)pu::ui::elm::MenuIteminline
OnKeyCallback typedefpu::ui::elm::MenuItem
SetColor(const Color items_clr)pu::ui::elm::MenuIteminline
SetIcon(const std::string &icon_path)pu::ui::elm::MenuItem
SetName(const std::string &name)pu::ui::elm::MenuIteminline
+
+ + + + diff --git a/include/Plutonium/docs/dd/d76/classpu_1_1ttf_1_1_font.html b/include/Plutonium/docs/dd/d76/classpu_1_1ttf_1_1_font.html new file mode 100644 index 0000000..ca88e75 --- /dev/null +++ b/include/Plutonium/docs/dd/d76/classpu_1_1ttf_1_1_font.html @@ -0,0 +1,447 @@ + + + + + + + +Plutonium framework API: pu::ttf::Font Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+ +

#include <ttf_Font.hpp>

+ + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Font (const u32 font_sz)
 
 ~Font ()
 
i32 LoadFromMemory (void *ptr, const size_t size, FontFaceDisposingFunction disp_fn)
 
i32 LoadFromFile (const std::string &path)
 
void Unload (const i32 font_idx)
 
u32 GetFontSize ()
 
sdl2::Font FindValidFontFor (const char ch)
 
std::pair< u32, u32 > GetTextDimensions (const std::string &str)
 
sdl2::Texture RenderText (const std::string &str, const ui::Color clr)
 
+ + + + + +

+Static Public Member Functions

static void EmptyFontFaceDisposingFunction (void *)
 
static constexpr bool IsValidFontFaceIndex (const i32 index)
 
+ + + + + +

+Static Public Attributes

static constexpr i32 InvalidFontFaceIndex = -1
 
static constexpr u32 DefaultFontSize = 25
 
+

Constructor & Destructor Documentation

+ +

◆ Font()

+ +
+
+ + + + + +
+ + + + + + + + +
pu::ttf::Font::Font (const u32 font_sz)
+
+inline
+
+ +
+
+ +

◆ ~Font()

+ +
+
+ + + + + + + +
pu::ttf::Font::~Font ()
+
+ +
+
+

Member Function Documentation

+ +

◆ EmptyFontFaceDisposingFunction()

+ +
+
+ + + + + +
+ + + + + + + + +
static void pu::ttf::Font::EmptyFontFaceDisposingFunction (void * )
+
+inlinestatic
+
+ +
+
+ +

◆ FindValidFontFor()

+ +
+
+ + + + + + + + +
sdl2::Font pu::ttf::Font::FindValidFontFor (const char ch)
+
+ +
+
+ +

◆ GetFontSize()

+ +
+
+ + + + + +
+ + + + + + + +
u32 pu::ttf::Font::GetFontSize ()
+
+inline
+
+ +
+
+ +

◆ GetTextDimensions()

+ +
+
+ + + + + + + + +
std::pair< u32, u32 > pu::ttf::Font::GetTextDimensions (const std::string & str)
+
+ +
+
+ +

◆ IsValidFontFaceIndex()

+ +
+
+ + + + + +
+ + + + + + + + +
static constexpr bool pu::ttf::Font::IsValidFontFaceIndex (const i32 index)
+
+inlinestaticconstexpr
+
+ +
+
+ +

◆ LoadFromFile()

+ +
+
+ + + + + + + + +
i32 pu::ttf::Font::LoadFromFile (const std::string & path)
+
+ +
+
+ +

◆ LoadFromMemory()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
i32 pu::ttf::Font::LoadFromMemory (void * ptr,
const size_t size,
FontFaceDisposingFunction disp_fn 
)
+
+ +
+
+ +

◆ RenderText()

+ +
+
+ + + + + + + + + + + + + + + + + + +
sdl2::Texture pu::ttf::Font::RenderText (const std::string & str,
const ui::Color clr 
)
+
+ +
+
+ +

◆ Unload()

+ +
+
+ + + + + + + + +
void pu::ttf::Font::Unload (const i32 font_idx)
+
+ +
+
+

Member Data Documentation

+ +

◆ DefaultFontSize

+ +
+
+ + + + + +
+ + + + +
constexpr u32 pu::ttf::Font::DefaultFontSize = 25
+
+staticconstexpr
+
+ +
+
+ +

◆ InvalidFontFaceIndex

+ +
+
+ + + + + +
+ + + + +
constexpr i32 pu::ttf::Font::InvalidFontFaceIndex = -1
+
+staticconstexpr
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/include/Plutonium/docs/dd/d76/classpu_1_1ttf_1_1_font.js b/include/Plutonium/docs/dd/d76/classpu_1_1ttf_1_1_font.js new file mode 100644 index 0000000..33a7ab2 --- /dev/null +++ b/include/Plutonium/docs/dd/d76/classpu_1_1ttf_1_1_font.js @@ -0,0 +1,16 @@ +var classpu_1_1ttf_1_1_font = +[ + [ "Font", "dd/d76/classpu_1_1ttf_1_1_font.html#ab8d94d1d98e3d64184413d01992808e8", null ], + [ "~Font", "dd/d76/classpu_1_1ttf_1_1_font.html#a5013c818d4c511e5a90e261e9c5e3323", null ], + [ "EmptyFontFaceDisposingFunction", "dd/d76/classpu_1_1ttf_1_1_font.html#a11cb4d9c0e5a4a89327a2c08d211c27b", null ], + [ "FindValidFontFor", "dd/d76/classpu_1_1ttf_1_1_font.html#a9a58d1b9ed579353b70fff68e5fd096d", null ], + [ "GetFontSize", "dd/d76/classpu_1_1ttf_1_1_font.html#a75155cdaaa058dc76401839b6643ebfb", null ], + [ "GetTextDimensions", "dd/d76/classpu_1_1ttf_1_1_font.html#adf857402bea5c385c17189953ec24b22", null ], + [ "IsValidFontFaceIndex", "dd/d76/classpu_1_1ttf_1_1_font.html#a9bf8adcefc6de5b8ce195556184c9794", null ], + [ "LoadFromFile", "dd/d76/classpu_1_1ttf_1_1_font.html#adbc4327d5579e631ab212396aaca21fd", null ], + [ "LoadFromMemory", "dd/d76/classpu_1_1ttf_1_1_font.html#a53e4bb1bfa859c9e07d3b9531459d496", null ], + [ "RenderText", "dd/d76/classpu_1_1ttf_1_1_font.html#a63b8e719cf5a6badb9b381fc4437b316", null ], + [ "Unload", "dd/d76/classpu_1_1ttf_1_1_font.html#a09f2e16e3ec0e20a61c49b9899ec0796", null ], + [ "DefaultFontSize", "dd/d76/classpu_1_1ttf_1_1_font.html#abb4ac46c73eaefd27282a6b3460d2a28", null ], + [ "InvalidFontFaceIndex", "dd/d76/classpu_1_1ttf_1_1_font.html#a99ce50e78019ea5a048d5f2f040e0f43", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/de/d69/classpu_1_1ui_1_1_overlay-members.html b/include/Plutonium/docs/de/d69/classpu_1_1ui_1_1_overlay-members.html new file mode 100644 index 0000000..d099c80 --- /dev/null +++ b/include/Plutonium/docs/de/d69/classpu_1_1ui_1_1_overlay-members.html @@ -0,0 +1,131 @@ + + + + + + + +Plutonium framework API: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
pu::ui::Overlay Member List
+
+
+ +

This is the complete list of members for pu::ui::Overlay, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Add(elm::Element::Ref elem)pu::ui::Containerinline
At(const i32 idx)pu::ui::Containerinline
Clear()pu::ui::Containerinline
Container(const i32 x, const i32 y, const i32 width, const i32 height)pu::ui::Containerinline
DefaultRadiuspu::ui::Overlaystatic
elemspu::ui::Containerprotected
FadeAlphaVariationpu::ui::Overlaystatic
GetCount()pu::ui::Containerinline
GetHeight()pu::ui::Containerinline
GetRadius()pu::ui::Overlayinline
GetWidth()pu::ui::Containerinline
GetX()pu::ui::Containerinline
GetY()pu::ui::Containerinline
hpu::ui::Containerprotected
Has(elm::Element::Ref &elem)pu::ui::Containerinline
MaxFadeAlphapu::ui::Overlaystatic
NotifyEnding(const bool ending)pu::ui::Overlayinline
OnPostRender(render::Renderer::Ref &drawer)pu::ui::Overlayinlinevirtual
OnPreRender(render::Renderer::Ref &drawer)pu::ui::Overlayinlinevirtual
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::Overlayinline
PreRender()pu::ui::Container
Render(render::Renderer::Ref &drawer)pu::ui::Overlay
SetHeight(const i32 height)pu::ui::Containerinline
SetRadius(const i32 radius)pu::ui::Overlayinline
SetWidth(const i32 width)pu::ui::Containerinline
SetX(const i32 x)pu::ui::Containerinline
SetY(const i32 y)pu::ui::Containerinline
wpu::ui::Containerprotected
xpu::ui::Containerprotected
ypu::ui::Containerprotected
+
+ + + + diff --git a/include/Plutonium/docs/de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html b/include/Plutonium/docs/de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html new file mode 100644 index 0000000..06f295e --- /dev/null +++ b/include/Plutonium/docs/de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html @@ -0,0 +1,488 @@ + + + + + + + +Plutonium framework API: pu::ui::elm::MenuItem Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
pu::ui::elm::MenuItem Class Reference
+
+
+ +

#include <elm_Menu.hpp>

+ + + + +

+Public Types

using OnKeyCallback = std::function< void()>
 
+ + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 MenuItem (const std::string &name)
 
std::string GetName ()
 
void SetName (const std::string &name)
 
Color GetColor ()
 
void SetColor (const Color items_clr)
 
void AddOnKey (OnKeyCallback on_key_cb, const u64 key=HidNpadButton_A)
 
i32 GetOnKeyCallbackCount ()
 
OnKeyCallback GetOnKeyCallback (const i32 idx)
 
u64 GetOnKeyCallbackKey (const i32 idx)
 
std::string GetIconPath ()
 
void SetIcon (const std::string &icon_path)
 
bool HasIcon ()
 
+ + + +

+Static Public Attributes

static constexpr Color DefaultColor = { 10, 10, 10, 0xFF }
 
+

Member Typedef Documentation

+ +

◆ OnKeyCallback

+ +
+
+ + + + +
using pu::ui::elm::MenuItem::OnKeyCallback = std::function<void()>
+
+ +
+
+

Constructor & Destructor Documentation

+ +

◆ MenuItem()

+ +
+
+ + + + + +
+ + + + + + + + +
pu::ui::elm::MenuItem::MenuItem (const std::string & name)
+
+inline
+
+ +
+
+

Member Function Documentation

+ +

◆ AddOnKey()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void pu::ui::elm::MenuItem::AddOnKey (OnKeyCallback on_key_cb,
const u64 key = HidNpadButton_A 
)
+
+ +
+
+ +

◆ GetColor()

+ +
+
+ + + + + +
+ + + + + + + +
Color pu::ui::elm::MenuItem::GetColor ()
+
+inline
+
+ +
+
+ +

◆ GetIconPath()

+ +
+
+ + + + + +
+ + + + + + + +
std::string pu::ui::elm::MenuItem::GetIconPath ()
+
+inline
+
+ +
+
+ +

◆ GetName()

+ +
+
+ + + + + +
+ + + + + + + +
std::string pu::ui::elm::MenuItem::GetName ()
+
+inline
+
+ +
+
+ +

◆ GetOnKeyCallback()

+ +
+
+ + + + + +
+ + + + + + + + +
OnKeyCallback pu::ui::elm::MenuItem::GetOnKeyCallback (const i32 idx)
+
+inline
+
+ +
+
+ +

◆ GetOnKeyCallbackCount()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::MenuItem::GetOnKeyCallbackCount ()
+
+inline
+
+ +
+
+ +

◆ GetOnKeyCallbackKey()

+ +
+
+ + + + + +
+ + + + + + + + +
u64 pu::ui::elm::MenuItem::GetOnKeyCallbackKey (const i32 idx)
+
+inline
+
+ +
+
+ +

◆ HasIcon()

+ +
+
+ + + + + +
+ + + + + + + +
bool pu::ui::elm::MenuItem::HasIcon ()
+
+inline
+
+ +
+
+ +

◆ SetColor()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::MenuItem::SetColor (const Color items_clr)
+
+inline
+
+ +
+
+ +

◆ SetIcon()

+ +
+
+ + + + + + + + +
void pu::ui::elm::MenuItem::SetIcon (const std::string & icon_path)
+
+ +
+
+ +

◆ SetName()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::MenuItem::SetName (const std::string & name)
+
+inline
+
+ +
+
+

Member Data Documentation

+ +

◆ DefaultColor

+ +
+
+ + + + + +
+ + + + +
constexpr Color pu::ui::elm::MenuItem::DefaultColor = { 10, 10, 10, 0xFF }
+
+staticconstexpr
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/include/Plutonium/docs/de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.js b/include/Plutonium/docs/de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.js new file mode 100644 index 0000000..2165395 --- /dev/null +++ b/include/Plutonium/docs/de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.js @@ -0,0 +1,17 @@ +var classpu_1_1ui_1_1elm_1_1_menu_item = +[ + [ "OnKeyCallback", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a8e77055d6b85df04010739767c61c48d", null ], + [ "MenuItem", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a83c50c4ca5f49289da2026fe0f662d7c", null ], + [ "AddOnKey", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a5b7f483bde86cd3237f7e3bdb21ba437", null ], + [ "GetColor", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a13c86f370dfdde1b9d19762840d8d57a", null ], + [ "GetIconPath", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a5652491238e88f142625db867ca95523", null ], + [ "GetName", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#ab6e9f3a65809763aa70b11ba66abc251", null ], + [ "GetOnKeyCallback", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a2f027a733ec2016f064b8b73aafbcfab", null ], + [ "GetOnKeyCallbackCount", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#af62ad8e3368a430c2818314dd8be4701", null ], + [ "GetOnKeyCallbackKey", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#afdce956c0700df79ae134845257648f3", null ], + [ "HasIcon", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a32324239744b25ddf9256887069b554c", null ], + [ "SetColor", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a94298f10821ae13f41ebedebe68dd170", null ], + [ "SetIcon", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a75ed47105bec4304b2ba457d1c301f4f", null ], + [ "SetName", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a3182a41b6b6d604d8692cc4d0338f1b7", null ], + [ "DefaultColor", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a62b160e43a24fa6466a0f3081a2d12b1", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/de/de5/audio___music_8hpp.html b/include/Plutonium/docs/de/de5/audio___music_8hpp.html new file mode 100644 index 0000000..4c6df21 --- /dev/null +++ b/include/Plutonium/docs/de/de5/audio___music_8hpp.html @@ -0,0 +1,149 @@ + + + + + + + +Plutonium framework API: Plutonium/include/pu/audio/audio_Music.hpp File Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
audio_Music.hpp File Reference
+
+
+
#include <SDL2/SDL_mixer.h>
+#include <pu/pu_Include.hpp>
+
+

Go to the source code of this file.

+ + + + + + +

+Namespaces

namespace  pu
 
namespace  pu::audio
 
+ + + +

+Typedefs

using pu::audio::Music = Mix_Music *
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

Music pu::audio::OpenMusic (const std::string &path)
 
void pu::audio::PlayMusic (Music mus, const int loops)
 
void pu::audio::PlayMusicWithFadeIn (Music mus, const i32 llops, const i32 ms)
 
bool pu::audio::IsPlayingMusic ()
 
void pu::audio::PauseMusic ()
 
void pu::audio::ResumeMusic ()
 
void pu::audio::SetMusicVolume (const i32 vol)
 
i32 pu::audio::GetMusicVolume ()
 
void pu::audio::FadeOutMusic (const i32 ms)
 
void pu::audio::RewindMusic ()
 
void pu::audio::StopMusic ()
 
void pu::audio::SetMusicPosition (const double sec)
 
void pu::audio::DestroyMusic (Music &mus)
 
+
+
+ + + + diff --git a/include/Plutonium/docs/de/de5/audio___music_8hpp.js b/include/Plutonium/docs/de/de5/audio___music_8hpp.js new file mode 100644 index 0000000..438d366 --- /dev/null +++ b/include/Plutonium/docs/de/de5/audio___music_8hpp.js @@ -0,0 +1,17 @@ +var audio___music_8hpp = +[ + [ "Music", "de/de5/audio___music_8hpp.html#adc990fea10ff67b623e34b67ffa29413", null ], + [ "DestroyMusic", "de/de5/audio___music_8hpp.html#a1f7671249f422dca75905b3becfe0a24", null ], + [ "FadeOutMusic", "de/de5/audio___music_8hpp.html#a0514eeae754124a9bdec08e79823f08a", null ], + [ "GetMusicVolume", "de/de5/audio___music_8hpp.html#a00fd980306751af01d7946a7d6da2044", null ], + [ "IsPlayingMusic", "de/de5/audio___music_8hpp.html#a07bae3d9442a509f1729c72ba4b4c92c", null ], + [ "OpenMusic", "de/de5/audio___music_8hpp.html#a66c81b8c5c29b92ac8a0786bc803ca23", null ], + [ "PauseMusic", "de/de5/audio___music_8hpp.html#a1a16cf110068c643338a686d06fc0311", null ], + [ "PlayMusic", "de/de5/audio___music_8hpp.html#ae6860df6873c68be641096106f2f10e1", null ], + [ "PlayMusicWithFadeIn", "de/de5/audio___music_8hpp.html#a6732fa4e7407c46285dda78126c4ae55", null ], + [ "ResumeMusic", "de/de5/audio___music_8hpp.html#a293674d2948d7a79e2cde7796c661848", null ], + [ "RewindMusic", "de/de5/audio___music_8hpp.html#a2f34c8478347186d0209fef078d41582", null ], + [ "SetMusicPosition", "de/de5/audio___music_8hpp.html#a101f963439aaf0a9a5229de9a9545ab1", null ], + [ "SetMusicVolume", "de/de5/audio___music_8hpp.html#ad8c9e4959cf7ad40f9493659130f2878", null ], + [ "StopMusic", "de/de5/audio___music_8hpp.html#adefbe54b078d8a9f1db1d50e9dfcaa7c", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/de/de5/audio___music_8hpp_source.html b/include/Plutonium/docs/de/de5/audio___music_8hpp_source.html new file mode 100644 index 0000000..a98ef8b --- /dev/null +++ b/include/Plutonium/docs/de/de5/audio___music_8hpp_source.html @@ -0,0 +1,152 @@ + + + + + + + +Plutonium framework API: Plutonium/include/pu/audio/audio_Music.hpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
audio_Music.hpp
+
+
+Go to the documentation of this file.
1
+
2/*
+
3
+
4 Plutonium library
+
5
+
6 @file audio_Music.hpp
+
7 @brief Music (BGM) support
+
8 @author XorTroll
+
9
+
10 @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
+
11
+
12*/
+
13
+
14#pragma once
+
15#include <SDL2/SDL_mixer.h>
+
16#include <pu/pu_Include.hpp>
+
17
+
18namespace pu::audio {
+
19
+
20 using Music = Mix_Music*;
+
21
+
22 Music OpenMusic(const std::string &path);
+
23 void PlayMusic(Music mus, const int loops);
+
24 void PlayMusicWithFadeIn(Music mus, const i32 llops, const i32 ms);
+ +
26 void PauseMusic();
+ +
28 void SetMusicVolume(const i32 vol);
+ +
30 void FadeOutMusic(const i32 ms);
+ +
32 void StopMusic();
+
33 void SetMusicPosition(const double sec);
+
34 void DestroyMusic(Music &mus);
+
35
+
36}
+
Definition: audio_Music.hpp:18
+
i32 GetMusicVolume()
+
void FadeOutMusic(const i32 ms)
+
bool IsPlayingMusic()
+
void SetMusicPosition(const double sec)
+
void PauseMusic()
+
void DestroyMusic(Music &mus)
+
void ResumeMusic()
+
void RewindMusic()
+
Music OpenMusic(const std::string &path)
+
void PlayMusicWithFadeIn(Music mus, const i32 llops, const i32 ms)
+
void SetMusicVolume(const i32 vol)
+
Mix_Music * Music
Definition: audio_Music.hpp:20
+
void StopMusic()
+
void PlayMusic(Music mus, const int loops)
+
s32 i32
Definition: pu_Include.hpp:28
+ +
+
+ + + + diff --git a/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h.html b/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h.html new file mode 100644 index 0000000..3f2d726 --- /dev/null +++ b/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h.html @@ -0,0 +1,2174 @@ + + + + + + + +Plutonium framework API: Plutonium/include/pu/sdl2/sdl2_CustomTtf.h File Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
sdl2_CustomTtf.h File Reference
+
+
+
#include <SDL2/SDL.h>
+#include <SDL2/begin_code.h>
+#include <switch.h>
+#include <SDL2/close_code.h>
+
+

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#define SDL_TTF_MAJOR_VERSION   2
 
#define SDL_TTF_MINOR_VERSION   0
 
#define SDL_TTF_PATCHLEVEL   12
 
#define SDL_TTF_VERSION(X)
 
#define TTF_MAJOR_VERSION   SDL_TTF_MAJOR_VERSION
 
#define TTF_MINOR_VERSION   SDL_TTF_MINOR_VERSION
 
#define TTF_PATCHLEVEL   SDL_TTF_PATCHLEVEL
 
#define TTF_VERSION(X)   SDL_TTF_VERSION(X)
 
#define UNICODE_BOM_NATIVE   0xFEFF
 
#define UNICODE_BOM_SWAPPED   0xFFFE
 
#define TTF_STYLE_NORMAL   0x00
 
#define TTF_STYLE_BOLD   0x01
 
#define TTF_STYLE_ITALIC   0x02
 
#define TTF_STYLE_UNDERLINE   0x04
 
#define TTF_STYLE_STRIKETHROUGH   0x08
 
#define TTF_HINTING_NORMAL   0
 
#define TTF_HINTING_LIGHT   1
 
#define TTF_HINTING_MONO   2
 
#define TTF_HINTING_NONE   3
 
#define TTF_RenderText(font, text, fg, bg)    TTF_RenderText_Shaded(font, text, fg, bg)
 
#define TTF_RenderUTF8(font, text, fg, bg)    TTF_RenderUTF8_Shaded(font, text, fg, bg)
 
#define TTF_RenderUNICODE(font, text, fg, bg)    TTF_RenderUNICODE_Shaded(font, text, fg, bg)
 
#define TTF_SetError   SDL_SetError
 
#define TTF_GetError   SDL_GetError
 
#define TMP_LOG(str)   { const char *cstr = str; svcOutputDebugString(cstr, strlen(cstr)); }
 
+ + + +

+Typedefs

typedef struct _TTF_Font TTF_Font
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

DECLSPEC const SDL_version *SDLCALL TTF_Linked_Version (void)
 
DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE (int swapped)
 
DECLSPEC int SDLCALL TTF_Init (void)
 
DECLSPEC TTF_Font *SDLCALL TTF_OpenFont (const char *file, int ptsize)
 
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndex (const char *file, int ptsize, long index)
 
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontRW (SDL_RWops *src, int freesrc, int ptsize)
 
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndexRW (SDL_RWops *src, int freesrc, int ptsize, long index)
 
DECLSPEC int SDLCALL TTF_GetFontStyle (const TTF_Font *font)
 
DECLSPEC void SDLCALL TTF_SetFontStyle (TTF_Font *font, int style)
 
DECLSPEC int SDLCALL TTF_GetFontOutline (const TTF_Font *font)
 
DECLSPEC void SDLCALL TTF_SetFontOutline (TTF_Font *font, int outline)
 
DECLSPEC int SDLCALL TTF_GetFontHinting (const TTF_Font *font)
 
DECLSPEC void SDLCALL TTF_SetFontHinting (TTF_Font *font, int hinting)
 
DECLSPEC int SDLCALL TTF_FontHeight (const TTF_Font *font)
 
DECLSPEC int SDLCALL TTF_FontAscent (const TTF_Font *font)
 
DECLSPEC int SDLCALL TTF_FontDescent (const TTF_Font *font)
 
DECLSPEC int SDLCALL TTF_FontLineSkip (const TTF_Font *font)
 
DECLSPEC int SDLCALL TTF_GetFontKerning (const TTF_Font *font)
 
DECLSPEC void SDLCALL TTF_SetFontKerning (TTF_Font *font, int allowed)
 
DECLSPEC long SDLCALL TTF_FontFaces (const TTF_Font *font)
 
DECLSPEC int SDLCALL TTF_FontFaceIsFixedWidth (const TTF_Font *font)
 
DECLSPEC char *SDLCALL TTF_FontFaceFamilyName (const TTF_Font *font)
 
DECLSPEC char *SDLCALL TTF_FontFaceStyleName (const TTF_Font *font)
 
DECLSPEC int SDLCALL TTF_GlyphIsProvided (const TTF_Font *font, Uint16 ch)
 
DECLSPEC int SDLCALL TTF_GlyphMetrics (TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance)
 
DECLSPEC int SDLCALL TTF_SizeText (TTF_Font *font, const char *text, int *w, int *h)
 
DECLSPEC int SDLCALL TTF_SizeUTF8 (TTF_Font *font, const char *text, int *w, int *h)
 
DECLSPEC int SDLCALL TTF_SizeUNICODE (TTF_Font *font, const Uint16 *text, int *w, int *h)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Solid (TTF_Font *font, const char *text, SDL_Color fg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Solid (TTF_Font *font, const char *text, SDL_Color fg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Solid (TTF_Font *font, const Uint16 *text, SDL_Color fg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Solid (TTF_Font *font, Uint16 ch, SDL_Color fg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Shaded (TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Shaded (TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Shaded (TTF_Font *font, const Uint16 *text, SDL_Color fg, SDL_Color bg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Shaded (TTF_Font *font, Uint16 ch, SDL_Color fg, SDL_Color bg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Blended (TTF_Font *font, const char *text, SDL_Color fg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended (TTF_Font *font, const char *text, SDL_Color fg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Blended (TTF_Font *font, const Uint16 *text, SDL_Color fg)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Blended_Wrapped (TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended_Wrapped (TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Blended_Wrapped (TTF_Font *font, const Uint16 *text, SDL_Color fg, Uint32 wrapLength)
 
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Blended (TTF_Font *font, Uint16 ch, SDL_Color fg)
 
DECLSPEC void SDLCALL TTF_CloseFont (TTF_Font *font)
 
DECLSPEC void SDLCALL TTF_Quit (void)
 
DECLSPEC int SDLCALL TTF_WasInit (void)
 
DECLSPEC int TTF_GetFontKerningSize (TTF_Font *font, int prev_index, int index)
 
TTF_FontTTF_CppWrap_FindValidFont (TTF_Font *font, Uint16 ch)
 
void * TTF_CppWrap_GetCppPtrRef (TTF_Font *font)
 
void TTF_CppWrap_SetCppPtrRef (TTF_Font *font, void *cpp_ptr_ref)
 
+

Macro Definition Documentation

+ +

◆ SDL_TTF_MAJOR_VERSION

+ +
+
+ + + + +
#define SDL_TTF_MAJOR_VERSION   2
+
+ +
+
+ +

◆ SDL_TTF_MINOR_VERSION

+ +
+
+ + + + +
#define SDL_TTF_MINOR_VERSION   0
+
+ +
+
+ +

◆ SDL_TTF_PATCHLEVEL

+ +
+
+ + + + +
#define SDL_TTF_PATCHLEVEL   12
+
+ +
+
+ +

◆ SDL_TTF_VERSION

+ +
+
+ + + + + + + + +
#define SDL_TTF_VERSION( X)
+
+Value:
{ \
+
(X)->major = SDL_TTF_MAJOR_VERSION; \
+
(X)->minor = SDL_TTF_MINOR_VERSION; \
+
(X)->patch = SDL_TTF_PATCHLEVEL; \
+
}
+
#define SDL_TTF_PATCHLEVEL
Definition: sdl2_CustomTtf.h:44
+
#define SDL_TTF_MAJOR_VERSION
Definition: sdl2_CustomTtf.h:42
+
#define SDL_TTF_MINOR_VERSION
Definition: sdl2_CustomTtf.h:43
+
+
+
+ +

◆ TMP_LOG

+ +
+
+ + + + + + + + +
#define TMP_LOG( str)   { const char *cstr = str; svcOutputDebugString(cstr, strlen(cstr)); }
+
+ +
+
+ +

◆ TTF_GetError

+ +
+
+ + + + +
#define TTF_GetError   SDL_GetError
+
+ +
+
+ +

◆ TTF_HINTING_LIGHT

+ +
+
+ + + + +
#define TTF_HINTING_LIGHT   1
+
+ +
+
+ +

◆ TTF_HINTING_MONO

+ +
+
+ + + + +
#define TTF_HINTING_MONO   2
+
+ +
+
+ +

◆ TTF_HINTING_NONE

+ +
+
+ + + + +
#define TTF_HINTING_NONE   3
+
+ +
+
+ +

◆ TTF_HINTING_NORMAL

+ +
+
+ + + + +
#define TTF_HINTING_NORMAL   0
+
+ +
+
+ +

◆ TTF_MAJOR_VERSION

+ +
+
+ + + + +
#define TTF_MAJOR_VERSION   SDL_TTF_MAJOR_VERSION
+
+ +
+
+ +

◆ TTF_MINOR_VERSION

+ +
+
+ + + + +
#define TTF_MINOR_VERSION   SDL_TTF_MINOR_VERSION
+
+ +
+
+ +

◆ TTF_PATCHLEVEL

+ +
+
+ + + + +
#define TTF_PATCHLEVEL   SDL_TTF_PATCHLEVEL
+
+ +
+
+ +

◆ TTF_RenderText

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#define TTF_RenderText( font,
 text,
 fg,
 bg 
)    TTF_RenderText_Shaded(font, text, fg, bg)
+
+ +
+
+ +

◆ TTF_RenderUNICODE

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#define TTF_RenderUNICODE( font,
 text,
 fg,
 bg 
)    TTF_RenderUNICODE_Shaded(font, text, fg, bg)
+
+ +
+
+ +

◆ TTF_RenderUTF8

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#define TTF_RenderUTF8( font,
 text,
 fg,
 bg 
)    TTF_RenderUTF8_Shaded(font, text, fg, bg)
+
+ +
+
+ +

◆ TTF_SetError

+ +
+
+ + + + +
#define TTF_SetError   SDL_SetError
+
+ +
+
+ +

◆ TTF_STYLE_BOLD

+ +
+
+ + + + +
#define TTF_STYLE_BOLD   0x01
+
+ +
+
+ +

◆ TTF_STYLE_ITALIC

+ +
+
+ + + + +
#define TTF_STYLE_ITALIC   0x02
+
+ +
+
+ +

◆ TTF_STYLE_NORMAL

+ +
+
+ + + + +
#define TTF_STYLE_NORMAL   0x00
+
+ +
+
+ +

◆ TTF_STYLE_STRIKETHROUGH

+ +
+
+ + + + +
#define TTF_STYLE_STRIKETHROUGH   0x08
+
+ +
+
+ +

◆ TTF_STYLE_UNDERLINE

+ +
+
+ + + + +
#define TTF_STYLE_UNDERLINE   0x04
+
+ +
+
+ +

◆ TTF_VERSION

+ +
+
+ + + + + + + + +
#define TTF_VERSION( X)   SDL_TTF_VERSION(X)
+
+ +
+
+ +

◆ UNICODE_BOM_NATIVE

+ +
+
+ + + + +
#define UNICODE_BOM_NATIVE   0xFEFF
+
+ +
+
+ +

◆ UNICODE_BOM_SWAPPED

+ +
+
+ + + + +
#define UNICODE_BOM_SWAPPED   0xFFFE
+
+ +
+
+

Typedef Documentation

+ +

◆ TTF_Font

+ +
+
+ + + + +
typedef struct _TTF_Font TTF_Font
+
+ +
+
+

Function Documentation

+ +

◆ TTF_ByteSwappedUNICODE()

+ +
+
+ + + + + + + + +
DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE (int swapped)
+
+ +
+
+ +

◆ TTF_CloseFont()

+ +
+
+ + + + + + + + +
DECLSPEC void SDLCALL TTF_CloseFont (TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_CppWrap_FindValidFont()

+ +
+
+ + + + + + + + + + + + + + + + + + +
TTF_Font * TTF_CppWrap_FindValidFont (TTF_Fontfont,
Uint16 ch 
)
+
+ +
+
+ +

◆ TTF_CppWrap_GetCppPtrRef()

+ +
+
+ + + + + + + + +
void * TTF_CppWrap_GetCppPtrRef (TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_CppWrap_SetCppPtrRef()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void TTF_CppWrap_SetCppPtrRef (TTF_Fontfont,
void * cpp_ptr_ref 
)
+
+ +
+
+ +

◆ TTF_FontAscent()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_FontAscent (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_FontDescent()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_FontDescent (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_FontFaceFamilyName()

+ +
+
+ + + + + + + + +
DECLSPEC char *SDLCALL TTF_FontFaceFamilyName (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_FontFaceIsFixedWidth()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_FontFaceIsFixedWidth (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_FontFaces()

+ +
+
+ + + + + + + + +
DECLSPEC long SDLCALL TTF_FontFaces (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_FontFaceStyleName()

+ +
+
+ + + + + + + + +
DECLSPEC char *SDLCALL TTF_FontFaceStyleName (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_FontHeight()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_FontHeight (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_FontLineSkip()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_FontLineSkip (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_GetFontHinting()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_GetFontHinting (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_GetFontKerning()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_GetFontKerning (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_GetFontKerningSize()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC int TTF_GetFontKerningSize (TTF_Fontfont,
int prev_index,
int index 
)
+
+ +
+
+ +

◆ TTF_GetFontOutline()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_GetFontOutline (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_GetFontStyle()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_GetFontStyle (const TTF_Fontfont)
+
+ +
+
+ +

◆ TTF_GlyphIsProvided()

+ +
+
+ + + + + + + + + + + + + + + + + + +
DECLSPEC int SDLCALL TTF_GlyphIsProvided (const TTF_Fontfont,
Uint16 ch 
)
+
+ +
+
+ +

◆ TTF_GlyphMetrics()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC int SDLCALL TTF_GlyphMetrics (TTF_Fontfont,
Uint16 ch,
int * minx,
int * maxx,
int * miny,
int * maxy,
int * advance 
)
+
+ +
+
+ +

◆ TTF_Init()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_Init (void )
+
+ +
+
+ +

◆ TTF_Linked_Version()

+ +
+
+ + + + + + + + +
DECLSPEC const SDL_version *SDLCALL TTF_Linked_Version (void )
+
+ +
+
+ +

◆ TTF_OpenFont()

+ +
+
+ + + + + + + + + + + + + + + + + + +
DECLSPEC TTF_Font *SDLCALL TTF_OpenFont (const char * file,
int ptsize 
)
+
+ +
+
+ +

◆ TTF_OpenFontIndex()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndex (const char * file,
int ptsize,
long index 
)
+
+ +
+
+ +

◆ TTF_OpenFontIndexRW()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndexRW (SDL_RWops * src,
int freesrc,
int ptsize,
long index 
)
+
+ +
+
+ +

◆ TTF_OpenFontRW()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontRW (SDL_RWops * src,
int freesrc,
int ptsize 
)
+
+ +
+
+ +

◆ TTF_Quit()

+ +
+
+ + + + + + + + +
DECLSPEC void SDLCALL TTF_Quit (void )
+
+ +
+
+ +

◆ TTF_RenderGlyph_Blended()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Blended (TTF_Fontfont,
Uint16 ch,
SDL_Color fg 
)
+
+ +
+
+ +

◆ TTF_RenderGlyph_Shaded()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Shaded (TTF_Fontfont,
Uint16 ch,
SDL_Color fg,
SDL_Color bg 
)
+
+ +
+
+ +

◆ TTF_RenderGlyph_Solid()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Solid (TTF_Fontfont,
Uint16 ch,
SDL_Color fg 
)
+
+ +
+
+ +

◆ TTF_RenderText_Blended()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Blended (TTF_Fontfont,
const char * text,
SDL_Color fg 
)
+
+ +
+
+ +

◆ TTF_RenderText_Blended_Wrapped()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Blended_Wrapped (TTF_Fontfont,
const char * text,
SDL_Color fg,
Uint32 wrapLength 
)
+
+ +
+
+ +

◆ TTF_RenderText_Shaded()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Shaded (TTF_Fontfont,
const char * text,
SDL_Color fg,
SDL_Color bg 
)
+
+ +
+
+ +

◆ TTF_RenderText_Solid()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Solid (TTF_Fontfont,
const char * text,
SDL_Color fg 
)
+
+ +
+
+ +

◆ TTF_RenderUNICODE_Blended()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Blended (TTF_Fontfont,
const Uint16 * text,
SDL_Color fg 
)
+
+ +
+
+ +

◆ TTF_RenderUNICODE_Blended_Wrapped()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Blended_Wrapped (TTF_Fontfont,
const Uint16 * text,
SDL_Color fg,
Uint32 wrapLength 
)
+
+ +
+
+ +

◆ TTF_RenderUNICODE_Shaded()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Shaded (TTF_Fontfont,
const Uint16 * text,
SDL_Color fg,
SDL_Color bg 
)
+
+ +
+
+ +

◆ TTF_RenderUNICODE_Solid()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Solid (TTF_Fontfont,
const Uint16 * text,
SDL_Color fg 
)
+
+ +
+
+ +

◆ TTF_RenderUTF8_Blended()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended (TTF_Fontfont,
const char * text,
SDL_Color fg 
)
+
+ +
+
+ +

◆ TTF_RenderUTF8_Blended_Wrapped()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended_Wrapped (TTF_Fontfont,
const char * text,
SDL_Color fg,
Uint32 wrapLength 
)
+
+ +
+
+ +

◆ TTF_RenderUTF8_Shaded()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Shaded (TTF_Fontfont,
const char * text,
SDL_Color fg,
SDL_Color bg 
)
+
+ +
+
+ +

◆ TTF_RenderUTF8_Solid()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Solid (TTF_Fontfont,
const char * text,
SDL_Color fg 
)
+
+ +
+
+ +

◆ TTF_SetFontHinting()

+ +
+
+ + + + + + + + + + + + + + + + + + +
DECLSPEC void SDLCALL TTF_SetFontHinting (TTF_Fontfont,
int hinting 
)
+
+ +
+
+ +

◆ TTF_SetFontKerning()

+ +
+
+ + + + + + + + + + + + + + + + + + +
DECLSPEC void SDLCALL TTF_SetFontKerning (TTF_Fontfont,
int allowed 
)
+
+ +
+
+ +

◆ TTF_SetFontOutline()

+ +
+
+ + + + + + + + + + + + + + + + + + +
DECLSPEC void SDLCALL TTF_SetFontOutline (TTF_Fontfont,
int outline 
)
+
+ +
+
+ +

◆ TTF_SetFontStyle()

+ +
+
+ + + + + + + + + + + + + + + + + + +
DECLSPEC void SDLCALL TTF_SetFontStyle (TTF_Fontfont,
int style 
)
+
+ +
+
+ +

◆ TTF_SizeText()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC int SDLCALL TTF_SizeText (TTF_Fontfont,
const char * text,
int * w,
int * h 
)
+
+ +
+
+ +

◆ TTF_SizeUNICODE()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC int SDLCALL TTF_SizeUNICODE (TTF_Fontfont,
const Uint16 * text,
int * w,
int * h 
)
+
+ +
+
+ +

◆ TTF_SizeUTF8()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DECLSPEC int SDLCALL TTF_SizeUTF8 (TTF_Fontfont,
const char * text,
int * w,
int * h 
)
+
+ +
+
+ +

◆ TTF_WasInit()

+ +
+
+ + + + + + + + +
DECLSPEC int SDLCALL TTF_WasInit (void )
+
+ +
+
+
+
+ + + + diff --git a/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h.js b/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h.js new file mode 100644 index 0000000..9ac5a63 --- /dev/null +++ b/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h.js @@ -0,0 +1,79 @@ +var sdl2___custom_ttf_8h = +[ + [ "SDL_TTF_MAJOR_VERSION", "de/dfe/sdl2___custom_ttf_8h.html#a895f91173346a028d25202ced75b549e", null ], + [ "SDL_TTF_MINOR_VERSION", "de/dfe/sdl2___custom_ttf_8h.html#ae192fcc5f145ad3ffb3652fe4ab768bb", null ], + [ "SDL_TTF_PATCHLEVEL", "de/dfe/sdl2___custom_ttf_8h.html#a6c438d5ec0bddd2361845ac5d4f7f30b", null ], + [ "SDL_TTF_VERSION", "de/dfe/sdl2___custom_ttf_8h.html#ae9baeafdf603e01fdd7f52ef71d7a1e8", null ], + [ "TMP_LOG", "de/dfe/sdl2___custom_ttf_8h.html#ab2c3d9ef4492e1a489a12e22440a58d4", null ], + [ "TTF_GetError", "de/dfe/sdl2___custom_ttf_8h.html#a2279ed6996e43f75966ef7765b7aff1f", null ], + [ "TTF_HINTING_LIGHT", "de/dfe/sdl2___custom_ttf_8h.html#abc9c7c175a1d7d16a561ef2151b50cc4", null ], + [ "TTF_HINTING_MONO", "de/dfe/sdl2___custom_ttf_8h.html#aef7571e561ac5f72b1c87eef3ec8844c", null ], + [ "TTF_HINTING_NONE", "de/dfe/sdl2___custom_ttf_8h.html#a5156c8d96e605a4001fefb6438bbdba0", null ], + [ "TTF_HINTING_NORMAL", "de/dfe/sdl2___custom_ttf_8h.html#a2227f3c1c83d70f2cb665b7f3b6855c4", null ], + [ "TTF_MAJOR_VERSION", "de/dfe/sdl2___custom_ttf_8h.html#aba8b8a98dd3909c5524907f5977ea2d2", null ], + [ "TTF_MINOR_VERSION", "de/dfe/sdl2___custom_ttf_8h.html#adf546d001be35fab9c98a490feb4eb1f", null ], + [ "TTF_PATCHLEVEL", "de/dfe/sdl2___custom_ttf_8h.html#a362f41bc8d0a8250f1b9f0b243a052dd", null ], + [ "TTF_RenderText", "de/dfe/sdl2___custom_ttf_8h.html#aa976ff0751d7df9259015ea30fa6f35c", null ], + [ "TTF_RenderUNICODE", "de/dfe/sdl2___custom_ttf_8h.html#ad05ede3045200e9a8e8dfe2c492eaec7", null ], + [ "TTF_RenderUTF8", "de/dfe/sdl2___custom_ttf_8h.html#a68b3fc53f8cc04d8e7e9c78ac27efc6e", null ], + [ "TTF_SetError", "de/dfe/sdl2___custom_ttf_8h.html#a1633de56d6e306be805a7ee0f9e8c0a8", null ], + [ "TTF_STYLE_BOLD", "de/dfe/sdl2___custom_ttf_8h.html#a5b7025df3aea05ea0249b2c1a04d136e", null ], + [ "TTF_STYLE_ITALIC", "de/dfe/sdl2___custom_ttf_8h.html#a1258b233d1d0c4e2cfd2c16633ce9105", null ], + [ "TTF_STYLE_NORMAL", "de/dfe/sdl2___custom_ttf_8h.html#a9088f514038770c5a37cc1d90eaa753f", null ], + [ "TTF_STYLE_STRIKETHROUGH", "de/dfe/sdl2___custom_ttf_8h.html#a09dcbfb234033df961c1f4e265f8caf3", null ], + [ "TTF_STYLE_UNDERLINE", "de/dfe/sdl2___custom_ttf_8h.html#ab27048c94a69566e8eb7e70a281858ab", null ], + [ "TTF_VERSION", "de/dfe/sdl2___custom_ttf_8h.html#acf616d2162b67777b8706216d3d1257e", null ], + [ "UNICODE_BOM_NATIVE", "de/dfe/sdl2___custom_ttf_8h.html#a98e376b293c26e85ae636e518fb27822", null ], + [ "UNICODE_BOM_SWAPPED", "de/dfe/sdl2___custom_ttf_8h.html#ad519362832048f87d7050108bac69098", null ], + [ "TTF_Font", "de/dfe/sdl2___custom_ttf_8h.html#ac3b14e1c2946c0cf19776fe568d9abcf", null ], + [ "TTF_ByteSwappedUNICODE", "de/dfe/sdl2___custom_ttf_8h.html#ac5c76b0b95a972409c3a75bfda4049c1", null ], + [ "TTF_CloseFont", "de/dfe/sdl2___custom_ttf_8h.html#a006b7c83a8ff15bb9f9d453d48ba3e51", null ], + [ "TTF_CppWrap_FindValidFont", "de/dfe/sdl2___custom_ttf_8h.html#a602d98d388b80f2c9fe0294560cb6107", null ], + [ "TTF_CppWrap_GetCppPtrRef", "de/dfe/sdl2___custom_ttf_8h.html#aaf268cfbe04686badc430312de63caf3", null ], + [ "TTF_CppWrap_SetCppPtrRef", "de/dfe/sdl2___custom_ttf_8h.html#adbd24e2ea583836369e8bd8267dd0539", null ], + [ "TTF_FontAscent", "de/dfe/sdl2___custom_ttf_8h.html#ac9141f8ea39a51e5c2680237d8664c7c", null ], + [ "TTF_FontDescent", "de/dfe/sdl2___custom_ttf_8h.html#a03b50763ced86438f00954ca77462259", null ], + [ "TTF_FontFaceFamilyName", "de/dfe/sdl2___custom_ttf_8h.html#a8f19b1fba3191ee05e96de228777042d", null ], + [ "TTF_FontFaceIsFixedWidth", "de/dfe/sdl2___custom_ttf_8h.html#adef57fd3e2916b09beb8267c82f82dd8", null ], + [ "TTF_FontFaces", "de/dfe/sdl2___custom_ttf_8h.html#a8b9d32e67c5fa4563689c3961f770c15", null ], + [ "TTF_FontFaceStyleName", "de/dfe/sdl2___custom_ttf_8h.html#a6d0ca7e88bc8cf38e23102ea83d19e25", null ], + [ "TTF_FontHeight", "de/dfe/sdl2___custom_ttf_8h.html#a58edd2675b2863bbad2188e7bd8cf496", null ], + [ "TTF_FontLineSkip", "de/dfe/sdl2___custom_ttf_8h.html#a49434e1ca98064611f06ec6ad2b47011", null ], + [ "TTF_GetFontHinting", "de/dfe/sdl2___custom_ttf_8h.html#ada9b1fcf2f99949ae9fdeecd16ae161f", null ], + [ "TTF_GetFontKerning", "de/dfe/sdl2___custom_ttf_8h.html#afb4cb064f896513a04b0cc3b4c82783c", null ], + [ "TTF_GetFontKerningSize", "de/dfe/sdl2___custom_ttf_8h.html#a0d844ca9b8c8b8a1a11f4e9227034170", null ], + [ "TTF_GetFontOutline", "de/dfe/sdl2___custom_ttf_8h.html#a086d541c84b679ec0b1c366cb74bd5d4", null ], + [ "TTF_GetFontStyle", "de/dfe/sdl2___custom_ttf_8h.html#a14e696b18d6a0dd199d8515cad637db1", null ], + [ "TTF_GlyphIsProvided", "de/dfe/sdl2___custom_ttf_8h.html#ae2b337c6d3881d9ba13796f2d8d8a036", null ], + [ "TTF_GlyphMetrics", "de/dfe/sdl2___custom_ttf_8h.html#ad2a5a4984534c969ff71f80750b1fe55", null ], + [ "TTF_Init", "de/dfe/sdl2___custom_ttf_8h.html#a766731737c2ca9121924bcef57889128", null ], + [ "TTF_Linked_Version", "de/dfe/sdl2___custom_ttf_8h.html#a0cf457e7d1e15d02a596174ab1dcff3f", null ], + [ "TTF_OpenFont", "de/dfe/sdl2___custom_ttf_8h.html#a3a6f3ed91f8ce0d6a1aaf9352c5e9a8e", null ], + [ "TTF_OpenFontIndex", "de/dfe/sdl2___custom_ttf_8h.html#a5f1e45bf1814915099b879a03203f0a8", null ], + [ "TTF_OpenFontIndexRW", "de/dfe/sdl2___custom_ttf_8h.html#ad39997fa79b0755ff5070cc0f03c614b", null ], + [ "TTF_OpenFontRW", "de/dfe/sdl2___custom_ttf_8h.html#aae080416313819a910740cbeefe22df8", null ], + [ "TTF_Quit", "de/dfe/sdl2___custom_ttf_8h.html#aa215d7d4fe202960904507a6ad4e6097", null ], + [ "TTF_RenderGlyph_Blended", "de/dfe/sdl2___custom_ttf_8h.html#a1af073a022c2f1c2360a83e031078c2a", null ], + [ "TTF_RenderGlyph_Shaded", "de/dfe/sdl2___custom_ttf_8h.html#a985c8d64368bf74aeabbf92a281b487e", null ], + [ "TTF_RenderGlyph_Solid", "de/dfe/sdl2___custom_ttf_8h.html#a32ad50c1db0c1d5399bdb2470ce32b69", null ], + [ "TTF_RenderText_Blended", "de/dfe/sdl2___custom_ttf_8h.html#aab246fd7087f737dd55420960f30d5c8", null ], + [ "TTF_RenderText_Blended_Wrapped", "de/dfe/sdl2___custom_ttf_8h.html#a2876d3b87d41bd17c26b0c4bd20d1144", null ], + [ "TTF_RenderText_Shaded", "de/dfe/sdl2___custom_ttf_8h.html#a88eb47356450068a4741d3b52c8fc2a3", null ], + [ "TTF_RenderText_Solid", "de/dfe/sdl2___custom_ttf_8h.html#a40818af46aa1591333d3734152a02f07", null ], + [ "TTF_RenderUNICODE_Blended", "de/dfe/sdl2___custom_ttf_8h.html#a01203e7347c8d44f3a5740ce6583476c", null ], + [ "TTF_RenderUNICODE_Blended_Wrapped", "de/dfe/sdl2___custom_ttf_8h.html#a3258b989986159f67e913c7ff41dd397", null ], + [ "TTF_RenderUNICODE_Shaded", "de/dfe/sdl2___custom_ttf_8h.html#a0c1d4277c9e85c6de890eb9621a81def", null ], + [ "TTF_RenderUNICODE_Solid", "de/dfe/sdl2___custom_ttf_8h.html#a03ab14f6ddd4782c29dc61fa429bab95", null ], + [ "TTF_RenderUTF8_Blended", "de/dfe/sdl2___custom_ttf_8h.html#a4ea1dcff830ac93b032920c1cd7a2326", null ], + [ "TTF_RenderUTF8_Blended_Wrapped", "de/dfe/sdl2___custom_ttf_8h.html#af7a999e3557d8690f9a0fec888ca2be0", null ], + [ "TTF_RenderUTF8_Shaded", "de/dfe/sdl2___custom_ttf_8h.html#a93c9a88e31fa39d8691f4ad65ed8299e", null ], + [ "TTF_RenderUTF8_Solid", "de/dfe/sdl2___custom_ttf_8h.html#aa68127157495ec3b63d62a8febbb22ea", null ], + [ "TTF_SetFontHinting", "de/dfe/sdl2___custom_ttf_8h.html#a20b981697804f033b5f1c883f69ef7ed", null ], + [ "TTF_SetFontKerning", "de/dfe/sdl2___custom_ttf_8h.html#a603b837e7511507afc5eb1d16b19ef6c", null ], + [ "TTF_SetFontOutline", "de/dfe/sdl2___custom_ttf_8h.html#a7da12acc22bd9cb9c9296952fbda31e4", null ], + [ "TTF_SetFontStyle", "de/dfe/sdl2___custom_ttf_8h.html#aa503af9d6b9e24d596927bda18f127af", null ], + [ "TTF_SizeText", "de/dfe/sdl2___custom_ttf_8h.html#aeb0bb513b51be10a5df91830a21eadb8", null ], + [ "TTF_SizeUNICODE", "de/dfe/sdl2___custom_ttf_8h.html#ade0bf8412406700360997cd7adaf92a7", null ], + [ "TTF_SizeUTF8", "de/dfe/sdl2___custom_ttf_8h.html#a4d6df828756cff027ccd878fde2213e9", null ], + [ "TTF_WasInit", "de/dfe/sdl2___custom_ttf_8h.html#a28768607fd8a55a3ab06531eaf721c15", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h_source.html b/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h_source.html new file mode 100644 index 0000000..997089b --- /dev/null +++ b/include/Plutonium/docs/de/dfe/sdl2___custom_ttf_8h_source.html @@ -0,0 +1,426 @@ + + + + + + + +Plutonium framework API: Plutonium/include/pu/sdl2/sdl2_CustomTtf.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
sdl2_CustomTtf.h
+
+
+Go to the documentation of this file.
1/*
+
2 SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts
+
3 Copyright (C) 2001-2013 Sam Lantinga <slouken@libsdl.org>
+
4
+
5 This software is provided 'as-is', without any express or implied
+
6 warranty. In no event will the authors be held liable for any damages
+
7 arising from the use of this software.
+
8
+
9 Permission is granted to anyone to use this software for any purpose,
+
10 including commercial applications, and to alter it and redistribute it
+
11 freely, subject to the following restrictions:
+
12
+
13 1. The origin of this software must not be misrepresented; you must not
+
14 claim that you wrote the original software. If you use this software
+
15 in a product, an acknowledgment in the product documentation would be
+
16 appreciated but is not required.
+
17 2. Altered source versions must be plainly marked as such, and must not be
+
18 misrepresented as being the original software.
+
19 3. This notice may not be removed or altered from any source distribution.
+
20*/
+
21
+
22/* This library is a wrapper around the excellent FreeType 2.0 library,
+
23 available at:
+
24 http://www.freetype.org/
+
25*/
+
26
+
27#ifndef _SDL_TTF_H
+
28#define _SDL_TTF_H
+
29
+
30#include <SDL2/SDL.h>
+
31#include <SDL2/begin_code.h>
+
32
+
33#include <switch.h>
+
34
+
35/* Set up for C function definitions, even when using C++ */
+
36#ifdef __cplusplus
+
37extern "C" {
+
38#endif
+
39
+
40/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
+
41*/
+
42#define SDL_TTF_MAJOR_VERSION 2
+
43#define SDL_TTF_MINOR_VERSION 0
+
44#define SDL_TTF_PATCHLEVEL 12
+
45
+
46/* This macro can be used to fill a version structure with the compile-time
+
47 * version of the SDL_ttf library.
+
48 */
+
49#define SDL_TTF_VERSION(X) \
+
50{ \
+
51 (X)->major = SDL_TTF_MAJOR_VERSION; \
+
52 (X)->minor = SDL_TTF_MINOR_VERSION; \
+
53 (X)->patch = SDL_TTF_PATCHLEVEL; \
+
54}
+
55
+
56/* Backwards compatibility */
+
57#define TTF_MAJOR_VERSION SDL_TTF_MAJOR_VERSION
+
58#define TTF_MINOR_VERSION SDL_TTF_MINOR_VERSION
+
59#define TTF_PATCHLEVEL SDL_TTF_PATCHLEVEL
+
60#define TTF_VERSION(X) SDL_TTF_VERSION(X)
+
61
+
62/* This function gets the version of the dynamically linked SDL_ttf library.
+
63 it should NOT be used to fill a version structure, instead you should
+
64 use the SDL_TTF_VERSION() macro.
+
65 */
+
66extern DECLSPEC const SDL_version * SDLCALL TTF_Linked_Version(void);
+
67
+
68/* ZERO WIDTH NO-BREAKSPACE (Unicode byte order mark) */
+
69#define UNICODE_BOM_NATIVE 0xFEFF
+
70#define UNICODE_BOM_SWAPPED 0xFFFE
+
71
+
72/* This function tells the library whether UNICODE text is generally
+
73 byteswapped. A UNICODE BOM character in a string will override
+
74 this setting for the remainder of that string.
+
75*/
+
76extern DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE(int swapped);
+
77
+
78/* The internal structure containing font information */
+
79typedef struct _TTF_Font TTF_Font;
+
80
+
81/* Initialize the TTF engine - returns 0 if successful, -1 on error */
+
82extern DECLSPEC int SDLCALL TTF_Init(void);
+
83
+
84/* Open a font file and create a font of the specified point size.
+
85 * Some .fon fonts will have several sizes embedded in the file, so the
+
86 * point size becomes the index of choosing which size. If the value
+
87 * is too high, the last indexed size will be the default. */
+
88extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFont(const char *file, int ptsize);
+
89extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontIndex(const char *file, int ptsize, long index);
+
90extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize);
+
91extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index);
+
92
+
93/* Set and retrieve the font style */
+
94#define TTF_STYLE_NORMAL 0x00
+
95#define TTF_STYLE_BOLD 0x01
+
96#define TTF_STYLE_ITALIC 0x02
+
97#define TTF_STYLE_UNDERLINE 0x04
+
98#define TTF_STYLE_STRIKETHROUGH 0x08
+
99extern DECLSPEC int SDLCALL TTF_GetFontStyle(const TTF_Font *font);
+
100extern DECLSPEC void SDLCALL TTF_SetFontStyle(TTF_Font *font, int style);
+
101extern DECLSPEC int SDLCALL TTF_GetFontOutline(const TTF_Font *font);
+
102extern DECLSPEC void SDLCALL TTF_SetFontOutline(TTF_Font *font, int outline);
+
103
+
104/* Set and retrieve FreeType hinter settings */
+
105#define TTF_HINTING_NORMAL 0
+
106#define TTF_HINTING_LIGHT 1
+
107#define TTF_HINTING_MONO 2
+
108#define TTF_HINTING_NONE 3
+
109extern DECLSPEC int SDLCALL TTF_GetFontHinting(const TTF_Font *font);
+
110extern DECLSPEC void SDLCALL TTF_SetFontHinting(TTF_Font *font, int hinting);
+
111
+
112/* Get the total height of the font - usually equal to point size */
+
113extern DECLSPEC int SDLCALL TTF_FontHeight(const TTF_Font *font);
+
114
+
115/* Get the offset from the baseline to the top of the font
+
116 This is a positive value, relative to the baseline.
+
117 */
+
118extern DECLSPEC int SDLCALL TTF_FontAscent(const TTF_Font *font);
+
119
+
120/* Get the offset from the baseline to the bottom of the font
+
121 This is a negative value, relative to the baseline.
+
122 */
+
123extern DECLSPEC int SDLCALL TTF_FontDescent(const TTF_Font *font);
+
124
+
125/* Get the recommended spacing between lines of text for this font */
+
126extern DECLSPEC int SDLCALL TTF_FontLineSkip(const TTF_Font *font);
+
127
+
128/* Get/Set whether or not kerning is allowed for this font */
+
129extern DECLSPEC int SDLCALL TTF_GetFontKerning(const TTF_Font *font);
+
130extern DECLSPEC void SDLCALL TTF_SetFontKerning(TTF_Font *font, int allowed);
+
131
+
132/* Get the number of faces of the font */
+
133extern DECLSPEC long SDLCALL TTF_FontFaces(const TTF_Font *font);
+
134
+
135/* Get the font face attributes, if any */
+
136extern DECLSPEC int SDLCALL TTF_FontFaceIsFixedWidth(const TTF_Font *font);
+
137extern DECLSPEC char * SDLCALL TTF_FontFaceFamilyName(const TTF_Font *font);
+
138extern DECLSPEC char * SDLCALL TTF_FontFaceStyleName(const TTF_Font *font);
+
139
+
140/* Check wether a glyph is provided by the font or not */
+
141extern DECLSPEC int SDLCALL TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch);
+
142
+
143/* Get the metrics (dimensions) of a glyph
+
144 To understand what these metrics mean, here is a useful link:
+
145 http://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html
+
146 */
+
147extern DECLSPEC int SDLCALL TTF_GlyphMetrics(TTF_Font *font, Uint16 ch,
+
148 int *minx, int *maxx,
+
149 int *miny, int *maxy, int *advance);
+
150
+
151/* Get the dimensions of a rendered string of text */
+
152extern DECLSPEC int SDLCALL TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h);
+
153extern DECLSPEC int SDLCALL TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h);
+
154extern DECLSPEC int SDLCALL TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h);
+
155
+
156/* Create an 8-bit palettized surface and render the given text at
+
157 fast quality with the given font and color. The 0 pixel is the
+
158 colorkey, giving a transparent background, and the 1 pixel is set
+
159 to the text color.
+
160 This function returns the new surface, or NULL if there was an error.
+
161*/
+
162extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Solid(TTF_Font *font,
+
163 const char *text, SDL_Color fg);
+
164extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Solid(TTF_Font *font,
+
165 const char *text, SDL_Color fg);
+
166extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Solid(TTF_Font *font,
+
167 const Uint16 *text, SDL_Color fg);
+
168
+
169/* Create an 8-bit palettized surface and render the given glyph at
+
170 fast quality with the given font and color. The 0 pixel is the
+
171 colorkey, giving a transparent background, and the 1 pixel is set
+
172 to the text color. The glyph is rendered without any padding or
+
173 centering in the X direction, and aligned normally in the Y direction.
+
174 This function returns the new surface, or NULL if there was an error.
+
175*/
+
176extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Solid(TTF_Font *font,
+
177 Uint16 ch, SDL_Color fg);
+
178
+
179/* Create an 8-bit palettized surface and render the given text at
+
180 high quality with the given font and colors. The 0 pixel is background,
+
181 while other pixels have varying degrees of the foreground color.
+
182 This function returns the new surface, or NULL if there was an error.
+
183*/
+
184extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Shaded(TTF_Font *font,
+
185 const char *text, SDL_Color fg, SDL_Color bg);
+
186extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Shaded(TTF_Font *font,
+
187 const char *text, SDL_Color fg, SDL_Color bg);
+
188extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Shaded(TTF_Font *font,
+
189 const Uint16 *text, SDL_Color fg, SDL_Color bg);
+
190
+
191/* Create an 8-bit palettized surface and render the given glyph at
+
192 high quality with the given font and colors. The 0 pixel is background,
+
193 while other pixels have varying degrees of the foreground color.
+
194 The glyph is rendered without any padding or centering in the X
+
195 direction, and aligned normally in the Y direction.
+
196 This function returns the new surface, or NULL if there was an error.
+
197*/
+
198extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Shaded(TTF_Font *font,
+
199 Uint16 ch, SDL_Color fg, SDL_Color bg);
+
200
+
201/* Create a 32-bit ARGB surface and render the given text at high quality,
+
202 using alpha blending to dither the font with the given color.
+
203 This function returns the new surface, or NULL if there was an error.
+
204*/
+
205extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Blended(TTF_Font *font,
+
206 const char *text, SDL_Color fg);
+
207extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Blended(TTF_Font *font,
+
208 const char *text, SDL_Color fg);
+
209extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Blended(TTF_Font *font,
+
210 const Uint16 *text, SDL_Color fg);
+
211
+
212
+
213/* Create a 32-bit ARGB surface and render the given text at high quality,
+
214 using alpha blending to dither the font with the given color.
+
215 Text is wrapped to multiple lines on line endings and on word boundaries
+
216 if it extends beyond wrapLength in pixels.
+
217 This function returns the new surface, or NULL if there was an error.
+
218*/
+
219extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Blended_Wrapped(TTF_Font *font,
+
220 const char *text, SDL_Color fg, Uint32 wrapLength);
+
221extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Blended_Wrapped(TTF_Font *font,
+
222 const char *text, SDL_Color fg, Uint32 wrapLength);
+
223extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Blended_Wrapped(TTF_Font *font,
+
224 const Uint16 *text, SDL_Color fg, Uint32 wrapLength);
+
225
+
226/* Create a 32-bit ARGB surface and render the given glyph at high quality,
+
227 using alpha blending to dither the font with the given color.
+
228 The glyph is rendered without any padding or centering in the X
+
229 direction, and aligned normally in the Y direction.
+
230 This function returns the new surface, or NULL if there was an error.
+
231*/
+
232extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Blended(TTF_Font *font,
+
233 Uint16 ch, SDL_Color fg);
+
234
+
235/* For compatibility with previous versions, here are the old functions */
+
236#define TTF_RenderText(font, text, fg, bg) \
+
237 TTF_RenderText_Shaded(font, text, fg, bg)
+
238#define TTF_RenderUTF8(font, text, fg, bg) \
+
239 TTF_RenderUTF8_Shaded(font, text, fg, bg)
+
240#define TTF_RenderUNICODE(font, text, fg, bg) \
+
241 TTF_RenderUNICODE_Shaded(font, text, fg, bg)
+
242
+
243/* Close an opened font file */
+
244extern DECLSPEC void SDLCALL TTF_CloseFont(TTF_Font *font);
+
245
+
246/* De-initialize the TTF engine */
+
247extern DECLSPEC void SDLCALL TTF_Quit(void);
+
248
+
249/* Check if the TTF engine is initialized */
+
250extern DECLSPEC int SDLCALL TTF_WasInit(void);
+
251
+
252/* Get the kerning size of two glyphs */
+
253extern DECLSPEC int TTF_GetFontKerningSize(TTF_Font *font, int prev_index, int index);
+
254
+
255/* Code present in C++ code */
+ +
257
+
258/* Get the pointer to the C++ data */
+ +
260
+
261/* Set the pointer to the C++ data */
+
262void TTF_CppWrap_SetCppPtrRef(TTF_Font *font, void *cpp_ptr_ref);
+
263
+
264/* We'll use SDL for reporting errors */
+
265#define TTF_SetError SDL_SetError
+
266#define TTF_GetError SDL_GetError
+
267
+
268#define TMP_LOG(str) { const char *cstr = str; svcOutputDebugString(cstr, strlen(cstr)); }
+
269
+
270/* Ends C function definitions when using C++ */
+
271#ifdef __cplusplus
+
272}
+
273#endif
+
274#include <SDL2/close_code.h>
+
275
+
276#endif /* _SDL_TTF_H */
+
DECLSPEC void SDLCALL TTF_CloseFont(TTF_Font *font)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Blended(TTF_Font *font, const Uint16 *text, SDL_Color fg)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Solid(TTF_Font *font, const Uint16 *text, SDL_Color fg)
+
DECLSPEC int SDLCALL TTF_FontDescent(const TTF_Font *font)
+
DECLSPEC int SDLCALL TTF_GetFontOutline(const TTF_Font *font)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Shaded(TTF_Font *font, const Uint16 *text, SDL_Color fg, SDL_Color bg)
+
DECLSPEC const SDL_version *SDLCALL TTF_Linked_Version(void)
+
DECLSPEC int TTF_GetFontKerningSize(TTF_Font *font, int prev_index, int index)
+
DECLSPEC int SDLCALL TTF_GetFontStyle(const TTF_Font *font)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Blended(TTF_Font *font, Uint16 ch, SDL_Color fg)
+
DECLSPEC void SDLCALL TTF_SetFontHinting(TTF_Font *font, int hinting)
+
DECLSPEC int SDLCALL TTF_WasInit(void)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Blended_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUNICODE_Blended_Wrapped(TTF_Font *font, const Uint16 *text, SDL_Color fg, Uint32 wrapLength)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Solid(TTF_Font *font, Uint16 ch, SDL_Color fg)
+
DECLSPEC TTF_Font *SDLCALL TTF_OpenFont(const char *file, int ptsize)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color fg)
+
DECLSPEC int SDLCALL TTF_FontLineSkip(const TTF_Font *font)
+
DECLSPEC int SDLCALL TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended(TTF_Font *font, const char *text, SDL_Color fg)
+
DECLSPEC int SDLCALL TTF_FontHeight(const TTF_Font *font)
+
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndex(const char *file, int ptsize, long index)
+
TTF_Font * TTF_CppWrap_FindValidFont(TTF_Font *font, Uint16 ch)
+
DECLSPEC void SDLCALL TTF_SetFontKerning(TTF_Font *font, int allowed)
+
DECLSPEC char *SDLCALL TTF_FontFaceStyleName(const TTF_Font *font)
+
DECLSPEC int SDLCALL TTF_Init(void)
+
DECLSPEC void SDLCALL TTF_SetFontOutline(TTF_Font *font, int outline)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Shaded(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg)
+
DECLSPEC long SDLCALL TTF_FontFaces(const TTF_Font *font)
+
DECLSPEC char *SDLCALL TTF_FontFaceFamilyName(const TTF_Font *font)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Shaded(TTF_Font *font, const char *text, SDL_Color fg, SDL_Color bg)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderGlyph_Shaded(TTF_Font *font, Uint16 ch, SDL_Color fg, SDL_Color bg)
+
DECLSPEC void SDLCALL TTF_Quit(void)
+
DECLSPEC void SDLCALL TTF_SetFontStyle(TTF_Font *font, int style)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Solid(TTF_Font *font, const char *text, SDL_Color fg)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderText_Blended(TTF_Font *font, const char *text, SDL_Color fg)
+
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize)
+
void * TTF_CppWrap_GetCppPtrRef(TTF_Font *font)
+
struct _TTF_Font TTF_Font
Definition: sdl2_CustomTtf.h:79
+
DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE(int swapped)
+
DECLSPEC int SDLCALL TTF_FontAscent(const TTF_Font *font)
+
DECLSPEC int SDLCALL TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance)
+
DECLSPEC TTF_Font *SDLCALL TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index)
+
DECLSPEC int SDLCALL TTF_GetFontHinting(const TTF_Font *font)
+
void TTF_CppWrap_SetCppPtrRef(TTF_Font *font, void *cpp_ptr_ref)
+
DECLSPEC int SDLCALL TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h)
+
DECLSPEC int SDLCALL TTF_FontFaceIsFixedWidth(const TTF_Font *font)
+
DECLSPEC int SDLCALL TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch)
+
DECLSPEC int SDLCALL TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h)
+
DECLSPEC SDL_Surface *SDLCALL TTF_RenderUTF8_Blended_Wrapped(TTF_Font *font, const char *text, SDL_Color fg, Uint32 wrapLength)
+
DECLSPEC int SDLCALL TTF_GetFontKerning(const TTF_Font *font)
+
+
+ + + + diff --git a/include/Plutonium/docs/df/d13/ui___types_8hpp.html b/include/Plutonium/docs/df/d13/ui___types_8hpp.html new file mode 100644 index 0000000..39b7ddf --- /dev/null +++ b/include/Plutonium/docs/df/d13/ui___types_8hpp.html @@ -0,0 +1,154 @@ + + + + + + + +Plutonium framework API: Plutonium/include/pu/ui/ui_Types.hpp File Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
ui_Types.hpp File Reference
+
+
+
#include <pu/pu_Include.hpp>
+
+

Go to the source code of this file.

+ + + + + + +

+Classes

struct  pu::ui::Color
 
struct  pu::ui::TouchPoint
 
+ + + + + +

+Namespaces

namespace  pu
 
namespace  pu::ui
 
+ + + +

+Enumerations

enum class  pu::ui::DefaultFontSize : u32 {
+  pu::ui::Small +, pu::ui::Medium +, pu::ui::MediumLarge +, pu::ui::Large +,
+  pu::ui::Count +
+ }
 
+ + + + + + + + + +

+Functions

std::string pu::ui::MakeDefaultFontName (const u32 font_size)
 
constexpr u32 pu::ui::GetDefaultFontSize (const DefaultFontSize kind)
 
std::string pu::ui::GetDefaultFont (const DefaultFontSize kind)
 
static constexpr bool pu::ui::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)> pu::ui::DefaultFontSizes = { 18, 20, 25, 30 }
 
constexpr u64 pu::ui::TouchPseudoKey = HidNpadButton_29
 
+
+
+ + + + diff --git a/include/Plutonium/docs/df/d13/ui___types_8hpp.js b/include/Plutonium/docs/df/d13/ui___types_8hpp.js new file mode 100644 index 0000000..b4f05f5 --- /dev/null +++ b/include/Plutonium/docs/df/d13/ui___types_8hpp.js @@ -0,0 +1,18 @@ +var ui___types_8hpp = +[ + [ "pu::ui::Color", "d7/d0c/structpu_1_1ui_1_1_color.html", "d7/d0c/structpu_1_1ui_1_1_color" ], + [ "pu::ui::TouchPoint", "d7/d55/structpu_1_1ui_1_1_touch_point.html", "d7/d55/structpu_1_1ui_1_1_touch_point" ], + [ "DefaultFontSize", "df/d13/ui___types_8hpp.html#ad3aa8662a33d0c410412b1cd1d2984f0", [ + [ "Small", "df/d13/ui___types_8hpp.html#ad3aa8662a33d0c410412b1cd1d2984f0a2660064e68655415da2628c2ae2f7592", null ], + [ "Medium", "df/d13/ui___types_8hpp.html#ad3aa8662a33d0c410412b1cd1d2984f0a87f8a6ab85c9ced3702b4ea641ad4bb5", null ], + [ "MediumLarge", "df/d13/ui___types_8hpp.html#ad3aa8662a33d0c410412b1cd1d2984f0a5c44044dc65cd33c6cbd48595f688ef9", null ], + [ "Large", "df/d13/ui___types_8hpp.html#ad3aa8662a33d0c410412b1cd1d2984f0a3a69b34ce86dacb205936a8094f6c743", null ], + [ "Count", "df/d13/ui___types_8hpp.html#ad3aa8662a33d0c410412b1cd1d2984f0ae93f994f01c537c4e2f7d8528c3eb5e9", null ] + ] ], + [ "GetDefaultFont", "df/d13/ui___types_8hpp.html#a84163ed7a0814736bafbcc6a35cf53bb", null ], + [ "GetDefaultFontSize", "df/d13/ui___types_8hpp.html#a68b017e053d7b2de2fd2eabaa4395d09", null ], + [ "MakeDefaultFontName", "df/d13/ui___types_8hpp.html#a2dc46745a47dfcca22fbd18451a7dfd3", null ], + [ "TouchHitsRegion", "df/d13/ui___types_8hpp.html#a24a793f56cfb1058002a3a5d805d454f", null ], + [ "DefaultFontSizes", "df/d13/ui___types_8hpp.html#acc118c2b07ab399b3f1d6fd5e39e7f01", null ], + [ "TouchPseudoKey", "df/d13/ui___types_8hpp.html#a66f25a7f79116138f33ff92bfe628c0a", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/df/d13/ui___types_8hpp_source.html b/include/Plutonium/docs/df/d13/ui___types_8hpp_source.html new file mode 100644 index 0000000..6e8b526 --- /dev/null +++ b/include/Plutonium/docs/df/d13/ui___types_8hpp_source.html @@ -0,0 +1,211 @@ + + + + + + + +Plutonium framework API: Plutonium/include/pu/ui/ui_Types.hpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
ui_Types.hpp
+
+
+Go to the documentation of this file.
1
+
2/*
+
3
+
4 Plutonium library
+
5
+
6 @file ui_Types.hpp
+
7 @brief Several basic types helpful for UI and rendering, such as Color
+
8 @author XorTroll
+
9
+
10 @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
+
11
+
12*/
+
13
+
14#pragma once
+
15#include <pu/pu_Include.hpp>
+
16
+
17namespace pu::ui {
+
18
+
19 // Font sizes Plutonium components use by default
+
20
+
21 enum class DefaultFontSize : u32 {
+
22 Small,
+
23 Medium,
+ +
25 Large,
+
26
+
27 Count
+
28 };
+
29
+
30 static inline constexpr std::array<u32, static_cast<u32>(DefaultFontSize::Count)> DefaultFontSizes = { 18, 20, 25, 30 };
+
31
+
32 inline std::string MakeDefaultFontName(const u32 font_size) {
+
33 return "DefaultFont@" + std::to_string(font_size);
+
34 }
+
35
+
36 inline constexpr u32 GetDefaultFontSize(const DefaultFontSize kind) {
+
37 return DefaultFontSizes[static_cast<u32>(kind)];
+
38 }
+
39
+
40 inline std::string GetDefaultFont(const DefaultFontSize kind) {
+ +
42 }
+
43
+
44 struct Color {
+
45 u8 r;
+
46 u8 g;
+
47 u8 b;
+
48 u8 a;
+
49
+
50 constexpr Color() : r(0), g(0), b(0), a(0xFF) {}
+
51 constexpr Color(const u8 r, const u8 g, const u8 b, const u8 a) : r(r), g(g), b(b), a(a) {}
+
52
+
53 static Color FromHex(const std::string &str_clr);
+
54 };
+
55
+
56 static inline 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) {
+
57 return (touch_x >= region_x) && (touch_x < (region_x + region_w)) && (touch_y >= region_y) && (touch_y < (region_y + region_h));
+
58 }
+
59
+
60 constexpr u64 TouchPseudoKey = HidNpadButton_29;
+
61
+
62 struct TouchPoint {
+ + +
65
+
66 constexpr TouchPoint() : x(-1), y(-1) {}
+
67 constexpr TouchPoint(const u32 x, const u32 y) : x(x), y(y) {}
+
68
+
69 inline constexpr bool IsEmpty() const {
+
70 return (this->x < 0) && (this->y < 0);
+
71 }
+
72
+
73 inline constexpr bool HitsRegion(const i32 region_x, const i32 region_y, const i32 region_w, const i32 region_h) const {
+
74 if(this->IsEmpty()) {
+
75 return false;
+
76 }
+
77
+
78 return TouchHitsRegion(this->x, this->y, region_x, region_y, region_w, region_h);
+
79 }
+
80 };
+
81
+
82}
+
Definition: elm_Button.hpp:18
+
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)
Definition: ui_Types.hpp:56
+
std::string MakeDefaultFontName(const u32 font_size)
Definition: ui_Types.hpp:32
+
constexpr u64 TouchPseudoKey
Definition: ui_Types.hpp:60
+
constexpr u32 GetDefaultFontSize(const DefaultFontSize kind)
Definition: ui_Types.hpp:36
+
std::string GetDefaultFont(const DefaultFontSize kind)
Definition: ui_Types.hpp:40
+
static constexpr std::array< u32, static_cast< u32 >(DefaultFontSize::Count)> DefaultFontSizes
Definition: ui_Types.hpp:30
+
DefaultFontSize
Definition: ui_Types.hpp:21
+ + + + + +
s32 i32
Definition: pu_Include.hpp:28
+ +
Definition: ui_Types.hpp:44
+
static Color FromHex(const std::string &str_clr)
+
u8 g
Definition: ui_Types.hpp:46
+
u8 a
Definition: ui_Types.hpp:48
+
u8 r
Definition: ui_Types.hpp:45
+
constexpr Color()
Definition: ui_Types.hpp:50
+
u8 b
Definition: ui_Types.hpp:47
+
constexpr Color(const u8 r, const u8 g, const u8 b, const u8 a)
Definition: ui_Types.hpp:51
+
Definition: ui_Types.hpp:62
+
i32 y
Definition: ui_Types.hpp:64
+
constexpr TouchPoint(const u32 x, const u32 y)
Definition: ui_Types.hpp:67
+
constexpr TouchPoint()
Definition: ui_Types.hpp:66
+
constexpr bool HitsRegion(const i32 region_x, const i32 region_y, const i32 region_w, const i32 region_h) const
Definition: ui_Types.hpp:73
+
i32 x
Definition: ui_Types.hpp:63
+
constexpr bool IsEmpty() const
Definition: ui_Types.hpp:69
+
+
+ + + + diff --git a/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html b/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html new file mode 100644 index 0000000..906dfb4 --- /dev/null +++ b/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html @@ -0,0 +1,637 @@ + + + + + + + +Plutonium framework API: pu::ui::elm::TextBlock Class Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
pu::ui::elm::TextBlock Class Reference
+
+
+ +

#include <elm_TextBlock.hpp>

+
+Inheritance diagram for pu::ui::elm::TextBlock:
+
+
+ + +pu::ui::elm::Element + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 TextBlock (const i32 x, const i32 y, const std::string &text)
 
 ~TextBlock ()
 
i32 GetX () override
 
void SetX (const i32 x)
 
i32 GetY () override
 
void SetY (const i32 y)
 
i32 GetWidth () override
 
i32 GetHeight () override
 
std::string GetText ()
 
void SetText (const std::string &text)
 
void SetFont (const std::string &font_name)
 
Color GetColor ()
 
void SetColor (const Color clr)
 
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
 
- Public Member Functions inherited from pu::ui::elm::Element
 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 ()
 
+ + + +

+Static Public Attributes

static constexpr Color DefaultColor = { 0, 0, 0, 0xFF }
 
+ + + + + + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from pu::ui::elm::Element
bool visible
 
HorizontalAlign h_align
 
VerticalAlign v_align
 
Containerparent_container
 
+

Constructor & Destructor Documentation

+ +

◆ TextBlock()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
pu::ui::elm::TextBlock::TextBlock (const i32 x,
const i32 y,
const std::string & text 
)
+
+ +
+
+ +

◆ ~TextBlock()

+ +
+
+ + + + + + + +
pu::ui::elm::TextBlock::~TextBlock ()
+
+ +
+
+

Member Function Documentation

+ +

◆ GetColor()

+ +
+
+ + + + + +
+ + + + + + + +
Color pu::ui::elm::TextBlock::GetColor ()
+
+inline
+
+ +
+
+ +

◆ GetHeight()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::TextBlock::GetHeight ()
+
+overridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ GetText()

+ +
+
+ + + + + +
+ + + + + + + +
std::string pu::ui::elm::TextBlock::GetText ()
+
+inline
+
+ +
+
+ +

◆ GetWidth()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::TextBlock::GetWidth ()
+
+overridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ GetX()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::TextBlock::GetX ()
+
+inlineoverridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ GetY()

+ +
+
+ + + + + +
+ + + + + + + +
i32 pu::ui::elm::TextBlock::GetY ()
+
+inlineoverridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ OnInput()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void pu::ui::elm::TextBlock::OnInput (const u64 keys_down,
const u64 keys_up,
const u64 keys_held,
const TouchPoint touch_pos 
)
+
+inlineoverridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ OnRender()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
void pu::ui::elm::TextBlock::OnRender (render::Renderer::Ref & drawer,
const i32 x,
const i32 y 
)
+
+overridevirtual
+
+ +

Implements pu::ui::elm::Element.

+ +
+
+ +

◆ SetColor()

+ +
+
+ + + + + + + + +
void pu::ui::elm::TextBlock::SetColor (const Color clr)
+
+ +
+
+ +

◆ SetFont()

+ +
+
+ + + + + + + + +
void pu::ui::elm::TextBlock::SetFont (const std::string & font_name)
+
+ +
+
+ +

◆ SetText()

+ +
+
+ + + + + + + + +
void pu::ui::elm::TextBlock::SetText (const std::string & text)
+
+ +
+
+ +

◆ SetX()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::TextBlock::SetX (const i32 x)
+
+inline
+
+ +
+
+ +

◆ SetY()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::elm::TextBlock::SetY (const i32 y)
+
+inline
+
+ +
+
+

Member Data Documentation

+ +

◆ DefaultColor

+ +
+
+ + + + + +
+ + + + +
constexpr Color pu::ui::elm::TextBlock::DefaultColor = { 0, 0, 0, 0xFF }
+
+staticconstexpr
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.js b/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.js new file mode 100644 index 0000000..783fbc6 --- /dev/null +++ b/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.js @@ -0,0 +1,19 @@ +var classpu_1_1ui_1_1elm_1_1_text_block = +[ + [ "TextBlock", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a53765fda58529ef8f6c0012729a98f66", null ], + [ "~TextBlock", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a50a27767538bd5f5d11dfe8917df2462", null ], + [ "GetColor", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a4df9ca024179ff31534463f57750c4c7", null ], + [ "GetHeight", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a70d4c6bb076406752fe4ac82dcf8de3f", null ], + [ "GetText", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a611edbe4430f49292f55c83c409bf52a", null ], + [ "GetWidth", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#aaf3acb29e652f73e96d2bbc39bb56b02", null ], + [ "GetX", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#ad3443e65c22d339d774ccbb65bd51c40", null ], + [ "GetY", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a81fc9e373ad39f42ab9d8b2bd9552352", null ], + [ "OnInput", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a2b8c187956510b6794cb741441561d41", null ], + [ "OnRender", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a5639bd0b9800c87b124e6cffc22a3932", null ], + [ "SetColor", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a770dba61aee470eb151d0dc8c4566073", null ], + [ "SetFont", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a9f04c7d87296736c67a5a5964c03ee32", null ], + [ "SetText", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a71e8dea5cbd362d3847940fb3e5391c8", null ], + [ "SetX", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a2bac7d345f87901579ffaeab325074d7", null ], + [ "SetY", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#ab51da76bb08921802e7cc31b1fd8034f", null ], + [ "DefaultColor", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a22026d87a80576dd41eb1074097cb0f1", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.png b/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.png new file mode 100644 index 0000000000000000000000000000000000000000..61c3641d0057652bd44d690afa717716d09fc69f GIT binary patch literal 549 zcmV+=0^0qFP)_2ZsRqe12f3Dx*U#_UC9oKx>if9gpQ!_@;USyp*&)b0J(;W``KCwUh{OUiD zj$!P5ztckFcOT=>>~qR%{WjdM-^*vd|LdGTz_*k+v0ne|GdlAl_0RXS@O_`>e3P-+ z_ViX=pZ|LQub+SA+O}GH%=EvCnqg1*>@)0hZQl8-s(w$&&+nhAYLt>+N-2Q?ct)cp%3}f%YQaNPn*1I{5Xw`(Vmap*Ze%JiY zvw=(fZ}4qrUDUs + + + + + + +Plutonium framework API: pu::ui::render::RendererInitOptions Struct Reference + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
pu::ui::render::RendererInitOptions Struct Reference
+
+
+ +

#include <render_Renderer.hpp>

+ + + + + + + + + + + + + + +

+Public Member Functions

 RendererInitOptions (const u32 sdl_flags, const u32 sdl_render_flags, const u32 w=ScreenWidth, const u32 h=ScreenHeight)
 
void UseTTF (const std::string &default_font_path="")
 
void SetExtraDefaultFontSize (const u32 font_size)
 
void UseAudio (const u32 audio_mixer_flags)
 
void UseImage (const u32 sdl_img_flags)
 
void UseRomfs ()
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

u32 sdl_flags
 
u32 sdl_render_flags
 
u32 width
 
u32 height
 
bool init_ttf
 
std::vector< u32 > extra_default_font_sizes
 
std::string default_font_path
 
bool init_mixer
 
u32 audio_mixer_flags
 
bool init_img
 
u32 sdl_img_flags
 
bool init_pl
 
bool init_romfs
 
+

Constructor & Destructor Documentation

+ +

◆ RendererInitOptions()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
pu::ui::render::RendererInitOptions::RendererInitOptions (const u32 sdl_flags,
const u32 sdl_render_flags,
const u32 w = ScreenWidth,
const u32 h = ScreenHeight 
)
+
+inline
+
+ +
+
+

Member Function Documentation

+ +

◆ SetExtraDefaultFontSize()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::render::RendererInitOptions::SetExtraDefaultFontSize (const u32 font_size)
+
+inline
+
+ +
+
+ +

◆ UseAudio()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::render::RendererInitOptions::UseAudio (const u32 audio_mixer_flags)
+
+inline
+
+ +
+
+ +

◆ UseImage()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::render::RendererInitOptions::UseImage (const u32 sdl_img_flags)
+
+inline
+
+ +
+
+ +

◆ UseRomfs()

+ +
+
+ + + + + +
+ + + + + + + +
void pu::ui::render::RendererInitOptions::UseRomfs ()
+
+inline
+
+ +
+
+ +

◆ UseTTF()

+ +
+
+ + + + + +
+ + + + + + + + +
void pu::ui::render::RendererInitOptions::UseTTF (const std::string & default_font_path = "")
+
+inline
+
+ +
+
+

Member Data Documentation

+ +

◆ audio_mixer_flags

+ +
+
+ + + + +
u32 pu::ui::render::RendererInitOptions::audio_mixer_flags
+
+ +
+
+ +

◆ default_font_path

+ +
+
+ + + + +
std::string pu::ui::render::RendererInitOptions::default_font_path
+
+ +
+
+ +

◆ extra_default_font_sizes

+ +
+
+ + + + +
std::vector<u32> pu::ui::render::RendererInitOptions::extra_default_font_sizes
+
+ +
+
+ +

◆ height

+ +
+
+ + + + +
u32 pu::ui::render::RendererInitOptions::height
+
+ +
+
+ +

◆ init_img

+ +
+
+ + + + +
bool pu::ui::render::RendererInitOptions::init_img
+
+ +
+
+ +

◆ init_mixer

+ +
+
+ + + + +
bool pu::ui::render::RendererInitOptions::init_mixer
+
+ +
+
+ +

◆ init_pl

+ +
+
+ + + + +
bool pu::ui::render::RendererInitOptions::init_pl
+
+ +
+
+ +

◆ init_romfs

+ +
+
+ + + + +
bool pu::ui::render::RendererInitOptions::init_romfs
+
+ +
+
+ +

◆ init_ttf

+ +
+
+ + + + +
bool pu::ui::render::RendererInitOptions::init_ttf
+
+ +
+
+ +

◆ sdl_flags

+ +
+
+ + + + +
u32 pu::ui::render::RendererInitOptions::sdl_flags
+
+ +
+
+ +

◆ sdl_img_flags

+ +
+
+ + + + +
u32 pu::ui::render::RendererInitOptions::sdl_img_flags
+
+ +
+
+ +

◆ sdl_render_flags

+ +
+
+ + + + +
u32 pu::ui::render::RendererInitOptions::sdl_render_flags
+
+ +
+
+ +

◆ width

+ +
+
+ + + + +
u32 pu::ui::render::RendererInitOptions::width
+
+ +
+
+
The documentation for this struct was generated from the following file: +
+
+ + + + diff --git a/include/Plutonium/docs/df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.js b/include/Plutonium/docs/df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.js new file mode 100644 index 0000000..30b80f7 --- /dev/null +++ b/include/Plutonium/docs/df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.js @@ -0,0 +1,22 @@ +var structpu_1_1ui_1_1render_1_1_renderer_init_options = +[ + [ "RendererInitOptions", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7848ebce825fe19017add859efe618f4", null ], + [ "SetExtraDefaultFontSize", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a32d5cf94d1f6bff9d7b4b90c93cbd504", null ], + [ "UseAudio", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ac2901bc764cc2a5fc8cbeb62de0a772a", null ], + [ "UseImage", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a2eb74956016e2eea77f1b40d93dba5cb", null ], + [ "UseRomfs", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#acbe8272f338247638d1a603dc00de07f", null ], + [ "UseTTF", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a91145726cdb1f2b358baef5073942648", null ], + [ "audio_mixer_flags", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a404582159cc98e75c42bb8ad6e113c3f", null ], + [ "default_font_path", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa064b0fd59c49602b364117809a4800e", null ], + [ "extra_default_font_sizes", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a18a9ec1702ef30964391be62f777a1ad", null ], + [ "height", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a072f8793d8e3e2e670dc782554abc131", null ], + [ "init_img", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a90f6cc91a32d2d12a8d3b1c99b8cf403", null ], + [ "init_mixer", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a5795fa97895c9dfc1d2b583c75f19d7f", null ], + [ "init_pl", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7fc319d0d55ffb5f1b73d9a0f8366b3f", null ], + [ "init_romfs", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7aeb5c4f0f793bfd13590668cd43235a", null ], + [ "init_ttf", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a20c992b4a0bbafe56a304e01e688852f", null ], + [ "sdl_flags", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#afa4665c4893bdfd09b3d039c1e3a7e86", null ], + [ "sdl_img_flags", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ab713bbdc588bcf1cc55255db74701998", null ], + [ "sdl_render_flags", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a3d91fb198cc5867cdb6ae8aadd0281e8", null ], + [ "width", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa042751d8759c060e7b845832cc00ef0", null ] +]; \ No newline at end of file diff --git a/include/Plutonium/docs/df/d8b/classpu_1_1ui_1_1render_1_1_renderer-members.html b/include/Plutonium/docs/df/d8b/classpu_1_1ui_1_1render_1_1_renderer-members.html new file mode 100644 index 0000000..aa32baa --- /dev/null +++ b/include/Plutonium/docs/df/d8b/classpu_1_1ui_1_1render_1_1_renderer-members.html @@ -0,0 +1,121 @@ + + + + + + + +Plutonium framework API: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
pu::ui::render::Renderer Member List
+
+
+ +

This is the complete list of members for pu::ui::render::Renderer, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + +
Finalize()pu::ui::render::Renderer
FinalizeRender()pu::ui::render::Renderer
HasInitialized()pu::ui::render::Rendererinline
HasRomFs()pu::ui::render::Rendererinline
Initialize()pu::ui::render::Renderer
InitializeRender(const Color clr)pu::ui::render::Renderer
RenderCircle(const Color clr, const i32 x, const i32 y, const i32 radius)pu::ui::render::Renderer
RenderCircleFill(const Color clr, const i32 x, const i32 y, const i32 radius)pu::ui::render::Renderer
Renderer(const RendererInitOptions init_opts)pu::ui::render::Rendererinline
RenderRectangle(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height)pu::ui::render::Renderer
RenderRectangleFill(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height)pu::ui::render::Renderer
RenderRectangleOutline(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 border_width)pu::ui::render::Rendererinline
RenderRoundedRectangle(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 radius)pu::ui::render::Renderer
RenderRoundedRectangleFill(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 radius)pu::ui::render::Renderer
RenderShadowSimple(const i32 x, const i32 y, const i32 width, const i32 height, const i32 base_alpha, const u8 main_alpha=0xFF)pu::ui::render::Renderer
RenderTexture(sdl2::Texture texture, const i32 x, const i32 y, const TextureRenderOptions opts=TextureRenderOptions::Default)pu::ui::render::Renderer
ResetBaseRenderAlpha()pu::ui::render::Rendererinline
ResetBaseRenderPosition()pu::ui::render::Rendererinline
SetBaseRenderAlpha(const u8 alpha)pu::ui::render::Rendererinline
SetBaseRenderPosition(const i32 x, const i32 y)pu::ui::render::Rendererinline
+
+ + + + diff --git a/include/Plutonium/docs/df/dbf/classpu_1_1ui_1_1elm_1_1_image-members.html b/include/Plutonium/docs/df/dbf/classpu_1_1ui_1_1elm_1_1_image-members.html new file mode 100644 index 0000000..eec7a33 --- /dev/null +++ b/include/Plutonium/docs/df/dbf/classpu_1_1ui_1_1elm_1_1_image-members.html @@ -0,0 +1,133 @@ + + + + + + + +Plutonium framework API: Member List + + + + + + + + + + + + + +
+
+ + + + + + +
+
Plutonium framework API 0.3.0 +
+
UI framework libraries for libnx
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
pu::ui::elm::Image Member List
+
+
+ +

This is the complete list of members for pu::ui::elm::Image, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Element()pu::ui::elm::Elementinline
GetHeight() overridepu::ui::elm::Imageinlinevirtual
GetHorizontalAlign()pu::ui::elm::Elementinline
GetImagePath()pu::ui::elm::Imageinline
GetProcessedX()pu::ui::elm::Element
GetProcessedY()pu::ui::elm::Element
GetRotationAngle()pu::ui::elm::Imageinline
GetVerticalAlign()pu::ui::elm::Elementinline
GetWidth() overridepu::ui::elm::Imageinlinevirtual
GetX() overridepu::ui::elm::Imageinlinevirtual
GetY() overridepu::ui::elm::Imageinlinevirtual
h_alignpu::ui::elm::Elementprotected
Image(const i32 x, const i32 y, const std::string &image_path)pu::ui::elm::Image
IsImageValid()pu::ui::elm::Imageinline
IsVisible()pu::ui::elm::Elementinline
OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) overridepu::ui::elm::Imageinlinevirtual
OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) overridepu::ui::elm::Imagevirtual
parent_containerpu::ui::elm::Elementprotected
SetHeight(const i32 height)pu::ui::elm::Imageinline
SetHorizontalAlign(const HorizontalAlign align)pu::ui::elm::Elementinline
SetImage(const std::string &image_path)pu::ui::elm::Image
SetParentContainer(Container *parent_container)pu::ui::elm::Elementinline
SetRotationAngle(const float angle)pu::ui::elm::Imageinline
SetVerticalAlign(const VerticalAlign align)pu::ui::elm::Elementinline
SetVisible(const bool visible)pu::ui::elm::Elementinline
SetWidth(const i32 width)pu::ui::elm::Imageinline
SetX(const i32 x)pu::ui::elm::Imageinline
SetY(const i32 y)pu::ui::elm::Imageinline
v_alignpu::ui::elm::Elementprotected
visiblepu::ui::elm::Elementprotected
~Element()pu::ui::elm::Elementinlinevirtual
~Image()pu::ui::elm::Image
+
+ + + +