Falcon
|
#include <CanvasItem.h>
Public Member Functions | |
CanvasItem () | |
virtual | ~CanvasItem () |
void | AddChild (CanvasItem *child) |
void | SetBounds (glm::vec4 bounds) |
void | UpdateBounds () |
virtual void | Draw (nk_context *ctx) |
virtual void | Commands (nk_context *ctx)=0 |
void | SetColor (glm::vec4 color) |
void | SetFlags (int32_t flags) |
void | SetActive (bool active) |
void | SetStatus (ItemStatus status) |
Protected Attributes | |
struct nk_rect | m_bounds |
nk_color | m_color |
i32 | m_flags |
boost::container::vector< CanvasItem * > | m_children |
CanvasItem * | parent = nullptr |
bool | m_active = true |
ItemStatus | m_status |
std::string | m_title |
Base class for anything drawn on a canvas
UI::CanvasItem::CanvasItem | ( | ) |
Base CanvasItem constructor
|
virtual |
Canvas item destructor
void UI::CanvasItem::AddChild | ( | CanvasItem * | child | ) |
|
pure virtual |
Implemented in UI::Slider, UI::Label, UI::Button, UI::Image, and UI::Panel.
|
virtual |
Begins a nuklear context, calls the draw commands, then ends drawing
|
inline |
void UI::CanvasItem::SetBounds | ( | glm::vec4 | bounds | ) |
Sets the bounds of the canvas
|
inline |
|
inline |
|
inline |
void UI::CanvasItem::UpdateBounds | ( | ) |
Updates the bounds of a mesh
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |