7 #ifndef _FCITX_UTILS_ELEMENT_H_ 8 #define _FCITX_UTILS_ELEMENT_H_ 13 #include <fcitx-utils/fcitxutils_export.h> 14 #include <fcitx-utils/macros.h> 32 bool isChild(
const Element *element)
const;
35 bool isParent(
const Element *element)
const;
41 const std::list<Element *> &parents()
const;
46 const std::list<Element *> &childs()
const;
51 void addParent(
Element *parent);
56 void removeParent(
Element *parent);
57 void removeChild(
Element *child);
59 void removeAllChild();
60 void removeAllParent();
67 std::unique_ptr<ElementPrivate> d_ptr;
72 #endif // _FCITX_UTILS_ELEMENT_H_ Base class for all object supports connection.
Utilities to enable use object with signal.
Base class that can be used for UI composition or graph.