#include <elm_Menu.hpp>
◆ OnKeyCallback
◆ MenuItem()
pu::ui::elm::MenuItem::MenuItem |
( |
const std::string & | name | ) |
|
|
inline |
◆ AddOnKey()
void pu::ui::elm::MenuItem::AddOnKey |
( |
OnKeyCallback | on_key_cb, |
|
|
const u64 | key = HidNpadButton_A ) |
◆ GetIconTexture()
sdl2::TextureHandle::Ref pu::ui::elm::MenuItem::GetIconTexture |
( |
| ) |
|
|
inline |
◆ GetName()
std::string pu::ui::elm::MenuItem::GetName |
( |
| ) |
|
|
inline |
◆ GetOnKeyCallback()
OnKeyCallback pu::ui::elm::MenuItem::GetOnKeyCallback |
( |
const u32 | idx | ) |
|
|
inline |
◆ GetOnKeyCallbackCount()
u32 pu::ui::elm::MenuItem::GetOnKeyCallbackCount |
( |
| ) |
|
|
inline |
◆ GetOnKeyCallbackKey()
u64 pu::ui::elm::MenuItem::GetOnKeyCallbackKey |
( |
const u32 | idx | ) |
|
|
inline |
◆ HasIcon()
bool pu::ui::elm::MenuItem::HasIcon |
( |
| ) |
|
|
inline |
◆ SetIcon()
void pu::ui::elm::MenuItem::SetIcon |
( |
sdl2::TextureHandle::Ref | icon | ) |
|
◆ SetName()
void pu::ui::elm::MenuItem::SetName |
( |
const std::string & | name | ) |
|
|
inline |
◆ DefaultColor
Color pu::ui::elm::MenuItem::DefaultColor = { 10, 10, 10, 0xFF } |
|
staticconstexpr |
The documentation for this class was generated from the following file: