DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
Object.h File Reference

Classes

class  Deki::Object

Namespaces

namespace  Deki
namespace  Deki::Internal

Functions

void Deki::Internal::AttachComponent (Object &object, Component *component)
Component * Deki::Internal::AddComponentByName (Object &object, const std::string &typeName)
int Deki::Internal::DetachComponent (Object &object, Component *component)
void Deki::Internal::ReattachComponent (Object &object, Component *component, size_t index)
void Deki::Internal::ForgetComponentData (const Component *component)
template<typename Fn>
void Deki::VisitSubtree (Object *root, Fn &&fn)
 Pre-order visit of root and every descendant. fn(Object*).
template<typename Fn>
void Deki::VisitActiveSubtree (Object *root, Fn &&fn)
 Like VisitSubtree, but does not enter inactive objects (nor visit them).
template<typename Pred>
Object * Deki::FindInSubtree (Object *root, Pred &&pred)
 First object in pre-order for which pred(Object*) is true, or null.