1 #ifndef UGDK_GRAPHIC_NODE_H_
2 #define UGDK_GRAPHIC_NODE_H_
19 Node(std::unique_ptr<Drawable>&& _drawable);
25 void set_drawable(std::unique_ptr<Drawable>&& _drawable);
26 void set_active(
const bool _active) { active_ = _active; }
37 bool active()
const {
return active_; }
39 double zindex()
const {
return zindex_; }
41 void AddChild(
const std::shared_ptr<Node>& new_child);
44 static bool CompareByZIndex(
const std::shared_ptr<Node>& a,
const std::shared_ptr<Node>& b);
50 std::unique_ptr<Drawable> drawable_;
55 std::vector<std::shared_ptr<Node>> childs_;
63 #endif // UGDK_GRAPHIC_NODE_H_
double zindex() const
Definition: node.h:39
const math::Geometry & geometry() const
Definition: node.h:32
Definition: animation.h:11
Definition: visualeffect.h:9
structure::VisualEffect & effect()
Definition: node.h:33
Drawable * drawable()
Definition: node.h:35
void RemoveChild(Node *child)
const Drawable * drawable() const
Definition: node.h:36
const structure::VisualEffect & effect() const
Definition: node.h:34
void set_active(const bool _active)
Definition: node.h:26
Definition: drawable.h:13
void Render(graphic::Canvas &) const
Pushes the modifier to the Manager, renders.
bool active() const
Definition: node.h:37
void AddChild(const std::shared_ptr< Node > &new_child)
void set_drawable(std::unique_ptr< Drawable > &&_drawable)
bool ignores_effect() const
Definition: node.h:38
void set_zindex(const double zindex)
Definition: geometry.h:15
static bool CompareByZIndex(const std::shared_ptr< Node > &a, const std::shared_ptr< Node > &b)
math::Geometry & geometry()
Definition: node.h:31
void set_ignores_effect(const bool _on)
Definition: node.h:27
Node * parent()
Definition: node.h:30