Fcitx
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
fcitx::Element Class Reference

Base class that can be used for UI composition or graph. More...

#include <fcitx-utils/element.h>

Inheritance diagram for fcitx::Element:
Inheritance graph
[legend]
Collaboration diagram for fcitx::Element:
Collaboration graph
[legend]

Public Member Functions

bool isChild (const Element *element) const
 Enable query between different elements.
 
bool isParent (const Element *element) const
 Enable query between different elements.
 
- Public Member Functions inherited from fcitx::ConnectableObject
template<typename SignalType , typename F >
Connection connect (F &&func)
 
template<typename SignalType >
void disconnectAll ()
 

Protected Member Functions

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 ()
 
- Protected Member Functions inherited from fcitx::ConnectableObject
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 ()
 

Static Protected Member Functions

static void addEdge (Element *parent, Element *child, Element *beforeChild, Element *beforeParent)
 
static void removeEdge (Element *parent, Element *child)
 

Detailed Description

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: