Plutonium framework API  0.3
Simple UI framework for libnx and SDL2
ui_Overlay.hpp
Go to the documentation of this file.
1 
2 /*
3 
4  Plutonium library
5 
6  @file ui_Overlay.hpp
7  @brief An overlay is some kind of "pop-up", like notification messages or similar items
8  @author XorTroll
9 
10  @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
11 
12 */
13 
14 #pragma once
15 #include <pu/ui/ui_Container.hpp>
16 
17 namespace pu::ui
18 {
19  class Overlay : public Container
20  {
21  public:
22  Overlay(i32 X, i32 Y, i32 Width, i32 Height, Color Background, bool Rounded = true);
24 
25  void SetRadius(i32 Radius);
26  i32 GetRadius();
27  virtual void OnPreRender(render::Renderer::Ref &Drawer);
28  virtual void OnPostRender(render::Renderer::Ref &Drawer);
29  bool Render(render::Renderer::Ref &Drawer);
30  void NotifyEnding(bool End);
31  private:
32  i32 fadea;
33  Color bg;
34  i32 rad;
35  bool end;
36  bool round;
37  };
38 }
Definition: ui_Types.hpp:24
void SetRadius(i32 Radius)
virtual void OnPreRender(render::Renderer::Ref &Drawer)
virtual void OnPostRender(render::Renderer::Ref &Drawer)
bool Render(render::Renderer::Ref &Drawer)
s32 i32
Definition: pu_Macros.hpp:17
#define PU_SMART_CTOR(type)
Definition: pu_Macros.hpp:8
void NotifyEnding(bool End)
Definition: ui_Container.hpp:20
Overlay(i32 X, i32 Y, i32 Width, i32 Height, Color Background, bool Rounded=true)
Definition: ui_Overlay.hpp:19