Plutonium framework API  0.3
Simple UI framework for libnx and SDL2
pu::ui::elm::MenuItem Class Reference

#include <elm_Menu.hpp>

Public Member Functions

 MenuItem (String Name)
 
String GetName ()
 
void SetName (String Name)
 
Color GetColor ()
 
void SetColor (Color Color)
 
void AddOnClick (std::function< void()> Callback, u64 Key=KEY_A)
 
i32 GetCallbackCount ()
 
std::function< void()> GetCallback (i32 Index)
 
u64 GetCallbackKey (i32 Index)
 
std::string GetIcon ()
 
void SetIcon (std::string Icon)
 
bool HasIcon ()
 

Constructor & Destructor Documentation

pu::ui::elm::MenuItem::MenuItem ( String  Name)

Member Function Documentation

void pu::ui::elm::MenuItem::AddOnClick ( std::function< void()>  Callback,
u64  Key = KEY_A 
)
std::function<void()> pu::ui::elm::MenuItem::GetCallback ( i32  Index)
i32 pu::ui::elm::MenuItem::GetCallbackCount ( )
u64 pu::ui::elm::MenuItem::GetCallbackKey ( i32  Index)
Color pu::ui::elm::MenuItem::GetColor ( )
std::string pu::ui::elm::MenuItem::GetIcon ( )
String pu::ui::elm::MenuItem::GetName ( )
bool pu::ui::elm::MenuItem::HasIcon ( )
void pu::ui::elm::MenuItem::SetColor ( Color  Color)
void pu::ui::elm::MenuItem::SetIcon ( std::string  Icon)
void pu::ui::elm::MenuItem::SetName ( String  Name)

The documentation for this class was generated from the following file: