Shader Tool
Small shader visualiser.
st::CNode Class Reference

#include <CNode.hpp>

Inheritance diagram for st::CNode:
st::CButton st::CCanvas st::CLabel st::CScreen st::CTextBox

Public Member Functions

 CNode ()=default
 
Widget * get ()
 
void addChild (string name, shared_ptr< CNode > child)
 
void addCallback (string name, void(*function)())
 
void setGroupLayout ()
 
void setBoxLayout (string str_orientation, string str_alignment, int margin, int spacing)
 

Protected Attributes

Widget * widget
 
shared_ptr< CNodeparent
 
map< string, void(*)() > callbacks
 

Private Attributes

map< string, shared_ptr< CNode > > children
 

Constructor & Destructor Documentation

◆ CNode()

st::CNode::CNode ( )
default

Member Function Documentation

◆ addCallback()

void st::CNode::addCallback ( string  name,
void(*)()  function 
)
inline

◆ addChild()

void st::CNode::addChild ( string  name,
shared_ptr< CNode child 
)
inline

◆ get()

Widget* st::CNode::get ( )
inline

◆ setBoxLayout()

void st::CNode::setBoxLayout ( string  str_orientation,
string  str_alignment,
int  margin,
int  spacing 
)
inline

◆ setGroupLayout()

void st::CNode::setGroupLayout ( )
inline

Member Data Documentation

◆ callbacks

map< string, void(*)() > st::CNode::callbacks
protected

◆ children

map< string, shared_ptr < CNode > > st::CNode::children
private

◆ parent

shared_ptr< CNode > st::CNode::parent
protected

◆ widget

Widget* st::CNode::widget
protected

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