Falcon
Public Member Functions | Protected Attributes | List of all members
UI::Image Class Reference

#include <Image.h>

Inheritance diagram for UI::Image:
UI::CanvasItem

Public Member Functions

 Image ()
 
virtual ~Image ()
 
void Commands (nk_context *ctx) override
 
void SetImage (Texture tex)
 
- 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)
 

Protected Attributes

struct nk_image m_img
 
- 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 label

Constructor & Destructor Documentation

◆ Image()

UI::Image::Image ( )

Constructor for an imagae

◆ ~Image()

UI::Image::~Image ( )
virtual

Image destructor

Member Function Documentation

◆ Commands()

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

The draw commands for the image

Parameters
ctx- The nuklear context to draw to

Implements UI::CanvasItem.

◆ SetImage()

void UI::Image::SetImage ( Texture  tex)
inline

Member Data Documentation

◆ m_img

struct nk_image UI::Image::m_img
protected

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