UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::ui::Node Class Reference

#include <ugdk/ui/node.h>

Public Member Functions

 Node ()
 
 Node (std::unique_ptr< Drawable > &&_drawable)
 
 ~Node ()
 
void Render (graphic::Canvas &) const
 Pushes the modifier to the Manager, renders. More...
 
void set_drawable (std::unique_ptr< Drawable > &&_drawable)
 
void set_active (const bool _active)
 
void set_ignores_effect (const bool _on)
 
void set_zindex (const double zindex)
 
Nodeparent ()
 
math::Geometrygeometry ()
 
const math::Geometrygeometry () const
 
structure::VisualEffecteffect ()
 
const structure::VisualEffecteffect () const
 
Drawabledrawable ()
 
const Drawabledrawable () const
 
bool active () const
 
bool ignores_effect () const
 
double zindex () const
 
void AddChild (const std::shared_ptr< Node > &new_child)
 
void RemoveChild (Node *child)
 
void SortChildren ()
 

Static Public Member Functions

static bool CompareByZIndex (const std::shared_ptr< Node > &a, const std::shared_ptr< Node > &b)
 

Constructor & Destructor Documentation

ugdk::ui::Node::Node ( )
explicit
ugdk::ui::Node::Node ( std::unique_ptr< Drawable > &&  _drawable)
ugdk::ui::Node::~Node ( )

Member Function Documentation

bool ugdk::ui::Node::active ( ) const
inline
void ugdk::ui::Node::AddChild ( const std::shared_ptr< Node > &  new_child)
static bool ugdk::ui::Node::CompareByZIndex ( const std::shared_ptr< Node > &  a,
const std::shared_ptr< Node > &  b 
)
static
Drawable* ugdk::ui::Node::drawable ( )
inline
const Drawable* ugdk::ui::Node::drawable ( ) const
inline
structure::VisualEffect& ugdk::ui::Node::effect ( )
inline
const structure::VisualEffect& ugdk::ui::Node::effect ( ) const
inline
math::Geometry& ugdk::ui::Node::geometry ( )
inline
const math::Geometry& ugdk::ui::Node::geometry ( ) const
inline
bool ugdk::ui::Node::ignores_effect ( ) const
inline
Node* ugdk::ui::Node::parent ( )
inline
void ugdk::ui::Node::RemoveChild ( Node child)
void ugdk::ui::Node::Render ( graphic::Canvas ) const

Pushes the modifier to the Manager, renders.

void ugdk::ui::Node::set_active ( const bool  _active)
inline
void ugdk::ui::Node::set_drawable ( std::unique_ptr< Drawable > &&  _drawable)
void ugdk::ui::Node::set_ignores_effect ( const bool  _on)
inline
void ugdk::ui::Node::set_zindex ( const double  zindex)
void ugdk::ui::Node::SortChildren ( )
double ugdk::ui::Node::zindex ( ) const
inline

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