Base class that can be used for UI composition or graph.
More...
#include <fcitx-utils/element.h>
|
bool | isChild (const Element *element) const |
| Enable query between different elements.
|
|
bool | isParent (const Element *element) const |
| Enable query between different elements.
|
|
template<typename SignalType , typename F > |
Connection | connect (F &&func) |
|
template<typename SignalType > |
void | disconnectAll () |
|
|
const std::list< Element * > & | parents () const |
| List all parents. More...
|
|
const std::list< Element * > & | childs () const |
| List all childs. More...
|
|
void | addChild (Element *child) |
|
void | addParent (Element *parent) |
|
void | insertChild (Element *before, Element *child) |
|
void | insertParent (Element *before, Element *parent) |
|
void | removeParent (Element *parent) |
|
void | removeChild (Element *child) |
|
void | removeAllChild () |
|
void | removeAllParent () |
|
void | destroy () |
| Allow user to notify the destroy event earlier. More...
|
|
template<typename SignalType , typename... Args> |
auto | emit (Args &&...args) |
|
template<typename SignalType , typename... Args> |
auto | emit (Args &&...args) const |
|
template<typename SignalType , typename Combiner = LastValue<typename std::function< typename SignalType::signalType>::result_type>> |
void | registerSignal () |
|
template<typename SignalType > |
void | unregisterSignal () |
|
Base class that can be used for UI composition or graph.
Definition at line 23 of file element.h.
The documentation for this class was generated from the following files: