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

#include <elm_Rectangle.hpp>

Inheritance diagram for pu::ui::elm::Rectangle:
pu::ui::elm::Element

Public Member Functions

 Rectangle (i32 X, i32 Y, i32 Width, i32 Height, Color RecColor, i32 BorderRadius=0)
 
i32 GetX ()
 
void SetX (i32 X)
 
i32 GetY ()
 
void SetY (i32 Y)
 
i32 GetWidth ()
 
void SetWidth (i32 Width)
 
i32 GetHeight ()
 
void SetHeight (i32 Height)
 
i32 GetBorderRadius ()
 
void SetBorderRadius (i32 Radius)
 
Color GetColor ()
 
void SetColor (Color RecColor)
 
void OnRender (render::Renderer::Ref &Drawer, i32 X, i32 Y)
 
void OnInput (u64 Down, u64 Up, u64 Held, Touch Pos)
 
- Public Member Functions inherited from pu::ui::elm::Element
 Element ()
 
virtual ~Element ()
 
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 ()
 

Additional Inherited Members

- Protected Attributes inherited from pu::ui::elm::Element
bool visible
 
HorizontalAlign halign
 
VerticalAlign valign
 
void * parent
 

Constructor & Destructor Documentation

pu::ui::elm::Rectangle::Rectangle ( i32  X,
i32  Y,
i32  Width,
i32  Height,
Color  RecColor,
i32  BorderRadius = 0 
)

Member Function Documentation

i32 pu::ui::elm::Rectangle::GetBorderRadius ( )
Color pu::ui::elm::Rectangle::GetColor ( )
i32 pu::ui::elm::Rectangle::GetHeight ( )
virtual

Implements pu::ui::elm::Element.

i32 pu::ui::elm::Rectangle::GetWidth ( )
virtual

Implements pu::ui::elm::Element.

i32 pu::ui::elm::Rectangle::GetX ( )
virtual

Implements pu::ui::elm::Element.

i32 pu::ui::elm::Rectangle::GetY ( )
virtual

Implements pu::ui::elm::Element.

void pu::ui::elm::Rectangle::OnInput ( u64  Down,
u64  Up,
u64  Held,
Touch  Pos 
)
virtual

Implements pu::ui::elm::Element.

void pu::ui::elm::Rectangle::OnRender ( render::Renderer::Ref &  Drawer,
i32  X,
i32  Y 
)
virtual

Implements pu::ui::elm::Element.

void pu::ui::elm::Rectangle::SetBorderRadius ( i32  Radius)
void pu::ui::elm::Rectangle::SetColor ( Color  RecColor)
void pu::ui::elm::Rectangle::SetHeight ( i32  Height)
void pu::ui::elm::Rectangle::SetWidth ( i32  Width)
void pu::ui::elm::Rectangle::SetX ( i32  X)
void pu::ui::elm::Rectangle::SetY ( i32  Y)

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