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 0000000..61c3641 Binary files /dev/null and b/include/Plutonium/docs/df/d21/classpu_1_1ui_1_1elm_1_1_text_block.png differ diff --git a/include/Plutonium/docs/df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html b/include/Plutonium/docs/df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html new file mode 100644 index 0000000..d3bef6c --- /dev/null +++ b/include/Plutonium/docs/df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html @@ -0,0 +1,515 @@ + + + + + + + +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
+
+ + + +