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

#include <ui_Layout.hpp>

Inheritance diagram for pu::ui::Layout:
pu::ui::Container

Public Member Functions

 Layout ()
 
 ~Layout ()
 
bool HasChilds ()
 
void SetOnInput (std::function< void(u64 Down, u64 Up, u64 Held, Touch Pos)> Callback)
 
std::function< void(u64 Down, u64 Up, u64 Held, Touch Pos)> GetOnInput ()
 
void AddThread (std::function< void()> Callback)
 
std::vector< std::function< void()> > GetAllThreads ()
 
void SetBackgroundImage (std::string Path)
 
void SetBackgroundColor (Color Color)
 
void SimulateTouch (Touch Custom)
 
Touch GetSimulatedTouch ()
 
sdl2::Texture GetBackgroundImageTexture ()
 
Color GetBackgroundColor ()
 
bool HasBackgroundImage ()
 
- Public Member Functions inherited from pu::ui::Container
 Container (i32 X, i32 Y, i32 Width, i32 Height)
 
template<typename Elem >
void Add (std::shared_ptr< Elem > Elm)
 
elm::Element::Ref & At (i32 Index)
 
bool Has (elm::Element::Ref &Elm)
 
void Clear ()
 
i32 GetCount ()
 
void SetX (i32 X)
 
i32 GetX ()
 
void SetY (i32 Y)
 
i32 GetY ()
 
void SetWidth (i32 Width)
 
i32 GetWidth ()
 
void SetHeight (i32 Height)
 
i32 GetHeight ()
 
void PreRender ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

pu::ui::Layout::Layout ( )
pu::ui::Layout::~Layout ( )

Member Function Documentation

void pu::ui::Layout::AddThread ( std::function< void()>  Callback)
std::vector<std::function<void()> > pu::ui::Layout::GetAllThreads ( )
Color pu::ui::Layout::GetBackgroundColor ( )
sdl2::Texture pu::ui::Layout::GetBackgroundImageTexture ( )
std::function<void(u64 Down, u64 Up, u64 Held, Touch Pos)> pu::ui::Layout::GetOnInput ( )
Touch pu::ui::Layout::GetSimulatedTouch ( )
bool pu::ui::Layout::HasBackgroundImage ( )
bool pu::ui::Layout::HasChilds ( )
void pu::ui::Layout::SetBackgroundColor ( Color  Color)
void pu::ui::Layout::SetBackgroundImage ( std::string  Path)
void pu::ui::Layout::SetOnInput ( std::function< void(u64 Down, u64 Up, u64 Held, Touch Pos)>  Callback)
void pu::ui::Layout::SimulateTouch ( Touch  Custom)

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