Falcon
Public Member Functions | List of all members
UI::Panel Class Reference

#include <Panel.h>

Inheritance diagram for UI::Panel:
UI::CanvasItem

Public Member Functions

 Panel ()
 
virtual ~Panel ()
 
void Commands (nk_context *ctx) override
 
- Public Member Functions inherited from UI::CanvasItem
 CanvasItem ()
 
virtual ~CanvasItem ()
 
void AddChild (CanvasItem *child)
 
void SetBounds (glm::vec4 bounds)
 
void UpdateBounds ()
 
virtual void Draw (nk_context *ctx)
 
void SetColor (glm::vec4 color)
 
void SetFlags (int32_t flags)
 
void SetActive (bool active)
 
void SetStatus (ItemStatus status)
 

Additional Inherited Members

- Protected Attributes inherited from UI::CanvasItem
struct nk_rect m_bounds
 
nk_color m_color
 
i32 m_flags
 
boost::container::vector< CanvasItem * > m_children
 
CanvasItemparent = nullptr
 
bool m_active = true
 
ItemStatus m_status
 
std::string m_title
 

Detailed Description

A basic Panel

Constructor & Destructor Documentation

◆ Panel()

UI::Panel::Panel ( )

Constructor for a panel

◆ ~Panel()

UI::Panel::~Panel ( )
virtual

Panel destructor

Member Function Documentation

◆ Commands()

void UI::Panel::Commands ( nk_context *  ctx)
overridevirtual

The draw commands for the panel

Parameters
ctx- The nuklear context to draw to

Implements UI::CanvasItem.


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