Plutonium framework API 0.3.0
UI framework libraries for libnx
Loading...
Searching...
No Matches
pu::ui::Overlay Class Reference

#include <ui_Overlay.hpp>

Inheritance diagram for pu::ui::Overlay:
pu::ui::Container pu::ui::extras::Toast

Public Member Functions

 Overlay (const i32 x, const i32 y, const i32 width, const i32 height, const Color bg_clr)
 
bool HasRadius ()
 
virtual void OnPreRender (render::Renderer::Ref &drawer)
 
virtual void OnPostRender (render::Renderer::Ref &drawer)
 
bool Render (render::Renderer::Ref &drawer)
 
void NotifyEnding (const bool ending)
 
- Public Member Functions inherited from pu::ui::Container
 Container (const i32 x, const i32 y, const i32 width, const i32 height)
 
void Add (elm::Element::Ref elem)
 
std::vector< elm::Element::Ref > & GetElements ()
 
bool Has (elm::Element::Ref &elem)
 
void Clear ()
 
void PreRender ()
 

Static Public Attributes

static constexpr i32 DefaultRadius = 37
 
static constexpr u8 DefaultMaxFadeAlpha = 200
 
static constexpr u8 DefaultFadeAlphaVariation = 25
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Overlay()

pu::ui::Overlay::Overlay ( const i32 x,
const i32 y,
const i32 width,
const i32 height,
const Color bg_clr )
inline

Member Function Documentation

◆ HasRadius()

bool pu::ui::Overlay::HasRadius ( )
inline

◆ NotifyEnding()

void pu::ui::Overlay::NotifyEnding ( const bool ending)
inline

◆ OnPostRender()

virtual void pu::ui::Overlay::OnPostRender ( render::Renderer::Ref & drawer)
inlinevirtual

Reimplemented in pu::ui::extras::Toast.

◆ OnPreRender()

virtual void pu::ui::Overlay::OnPreRender ( render::Renderer::Ref & drawer)
inlinevirtual

Reimplemented in pu::ui::extras::Toast.

◆ Render()

bool pu::ui::Overlay::Render ( render::Renderer::Ref & drawer)

Member Data Documentation

◆ DefaultFadeAlphaVariation

u8 pu::ui::Overlay::DefaultFadeAlphaVariation = 25
staticconstexpr

◆ DefaultMaxFadeAlpha

u8 pu::ui::Overlay::DefaultMaxFadeAlpha = 200
staticconstexpr

◆ DefaultRadius

i32 pu::ui::Overlay::DefaultRadius = 37
staticconstexpr

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