Plutonium framework API  0.3
Simple UI framework for libnx and SDL2
pu::ui::elm::Element Class Referenceabstract

#include <elm_Element.hpp>

Inheritance diagram for pu::ui::elm::Element:
pu::ui::elm::Button pu::ui::elm::Image pu::ui::elm::Menu pu::ui::elm::ProgressBar pu::ui::elm::Rectangle pu::ui::elm::TextBlock pu::ui::elm::Toggle

Public Member Functions

 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, i32 X, i32 Y)=0
 
virtual void OnInput (u64 Down, u64 Up, u64 Held, Touch Pos)=0
 
bool IsVisible ()
 
void SetVisible (bool Visible)
 
void SetParent (void *Base)
 
void * GetParent ()
 
void SetHorizontalAlign (HorizontalAlign Align)
 
HorizontalAlign GetHorizontalAlign ()
 
void SetVerticalAlign (VerticalAlign Align)
 
VerticalAlign GetVerticalAlign ()
 
bool HasParent ()
 
i32 GetProcessedX ()
 
i32 GetProcessedY ()
 

Protected Attributes

bool visible
 
HorizontalAlign halign
 
VerticalAlign valign
 
void * parent
 

Constructor & Destructor Documentation

pu::ui::elm::Element::Element ( )
virtual pu::ui::elm::Element::~Element ( )
virtual

Member Function Documentation

HorizontalAlign pu::ui::elm::Element::GetHorizontalAlign ( )
void* pu::ui::elm::Element::GetParent ( )
i32 pu::ui::elm::Element::GetProcessedX ( )
i32 pu::ui::elm::Element::GetProcessedY ( )
VerticalAlign pu::ui::elm::Element::GetVerticalAlign ( )
bool pu::ui::elm::Element::HasParent ( )
bool pu::ui::elm::Element::IsVisible ( )
virtual void pu::ui::elm::Element::OnInput ( u64  Down,
u64  Up,
u64  Held,
Touch  Pos 
)
pure virtual
virtual void pu::ui::elm::Element::OnRender ( render::Renderer::Ref &  Drawer,
i32  X,
i32  Y 
)
pure virtual
void pu::ui::elm::Element::SetHorizontalAlign ( HorizontalAlign  Align)
void pu::ui::elm::Element::SetParent ( void *  Base)
void pu::ui::elm::Element::SetVerticalAlign ( VerticalAlign  Align)
void pu::ui::elm::Element::SetVisible ( bool  Visible)

Member Data Documentation

HorizontalAlign pu::ui::elm::Element::halign
protected
void* pu::ui::elm::Element::parent
protected
VerticalAlign pu::ui::elm::Element::valign
protected
bool pu::ui::elm::Element::visible
protected

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