#include <elm_Toggle.hpp>
◆ Toggle()
pu::ui::elm::Toggle::Toggle |
( |
const i32 | x, |
|
|
const i32 | y, |
|
|
const std::string & | content, |
|
|
const u64 | toggle_key, |
|
|
const Color | clr ) |
◆ ~Toggle()
pu::ui::elm::Toggle::~Toggle |
( |
| ) |
|
◆ GetContent()
std::string pu::ui::elm::Toggle::GetContent |
( |
| ) |
|
|
inline |
◆ GetHeight()
i32 pu::ui::elm::Toggle::GetHeight |
( |
| ) |
|
|
overridevirtual |
◆ GetWidth()
i32 pu::ui::elm::Toggle::GetWidth |
( |
| ) |
|
|
overridevirtual |
◆ GetX()
i32 pu::ui::elm::Toggle::GetX |
( |
| ) |
|
|
inlineoverridevirtual |
◆ GetY()
i32 pu::ui::elm::Toggle::GetY |
( |
| ) |
|
|
inlineoverridevirtual |
◆ OnInput()
void pu::ui::elm::Toggle::OnInput |
( |
const u64 | keys_down, |
|
|
const u64 | keys_up, |
|
|
const u64 | keys_held, |
|
|
const TouchPoint | touch_pos ) |
|
overridevirtual |
◆ OnRender()
void pu::ui::elm::Toggle::OnRender |
( |
render::Renderer::Ref & | drawer, |
|
|
const i32 | x, |
|
|
const i32 | y ) |
|
overridevirtual |
◆ SetColor()
void pu::ui::elm::Toggle::SetColor |
( |
const Color | clr | ) |
|
◆ SetContent()
void pu::ui::elm::Toggle::SetContent |
( |
const std::string & | content | ) |
|
◆ SetFont()
void pu::ui::elm::Toggle::SetFont |
( |
const std::string & | font_name | ) |
|
◆ SetX()
void pu::ui::elm::Toggle::SetX |
( |
const i32 | x | ) |
|
|
inline |
◆ SetY()
void pu::ui::elm::Toggle::SetY |
( |
const i32 | y | ) |
|
|
inline |
◆ DefaultBackgroundColor
Color pu::ui::elm::Toggle::DefaultBackgroundColor = { 130, 130, 130, 255 } |
|
staticconstexpr |
◆ DefaultContentFontSize
◆ DefaultContentHorizontalMargin
u32 pu::ui::elm::Toggle::DefaultContentHorizontalMargin = 30 |
|
staticconstexpr |
◆ DefaultContentVerticalMargin
u32 pu::ui::elm::Toggle::DefaultContentVerticalMargin = 20 |
|
staticconstexpr |
◆ DefaultToggleAlphaIncrement
u8 pu::ui::elm::Toggle::DefaultToggleAlphaIncrement = 48 |
|
staticconstexpr |
The documentation for this class was generated from the following file: