#include <extras_Toast.hpp>
|
| Toast (const std::string &text, const std::string &font_name, const Color text_clr, const Color bg_clr) |
|
void | SetText (const std::string &text) |
|
void | OnPreRender (render::Renderer::Ref &drawer) override |
|
void | OnPostRender (render::Renderer::Ref &drawer) override |
|
| Overlay (const i32 x, const i32 y, const i32 width, const i32 height, const Color bg_clr, const bool round=true, const i32 radius=DefaultRadius) |
|
void | SetRadius (const i32 radius) |
|
i32 | GetRadius () |
|
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) |
|
| Container (const i32 x, const i32 y, const i32 width, const i32 height) |
|
void | Add (elm::Element::Ref elem) |
|
elm::Element::Ref & | At (const i32 idx) |
|
bool | Has (elm::Element::Ref &elem) |
|
void | Clear () |
|
size_t | GetCount () |
|
void | SetX (const i32 x) |
|
i32 | GetX () |
|
void | SetY (const i32 y) |
|
i32 | GetY () |
|
void | SetWidth (const i32 width) |
|
i32 | GetWidth () |
|
void | SetHeight (const i32 height) |
|
i32 | GetHeight () |
|
void | PreRender () |
|
◆ Toast()
pu::ui::extras::Toast::Toast |
( |
const std::string & |
text, |
|
|
const std::string & |
font_name, |
|
|
const Color |
text_clr, |
|
|
const Color |
bg_clr |
|
) |
| |
◆ OnPostRender()
void pu::ui::extras::Toast::OnPostRender |
( |
render::Renderer::Ref & |
drawer | ) |
|
|
overridevirtual |
◆ OnPreRender()
void pu::ui::extras::Toast::OnPreRender |
( |
render::Renderer::Ref & |
drawer | ) |
|
|
overridevirtual |
◆ SetText()
void pu::ui::extras::Toast::SetText |
( |
const std::string & |
text | ) |
|
◆ BaseAlpha
constexpr u8 pu::ui::extras::Toast::BaseAlpha = 200 |
|
staticconstexpr |
◆ DefaultY
constexpr i32 pu::ui::extras::Toast::DefaultY = 550 |
|
staticconstexpr |
◆ HeightAndTextHeightFactor
constexpr i32 pu::ui::extras::Toast::HeightAndTextHeightFactor = 3 |
|
staticconstexpr |
◆ HorizontalMargin
constexpr i32 pu::ui::extras::Toast::HorizontalMargin = 50 |
|
staticconstexpr |
The documentation for this class was generated from the following file: