Fcitx
|
Status area represent a list of actions and action may have sub actions. More...
#include <fcitx/statusarea.h>
Public Member Functions | |
StatusArea (InputContext *ic) | |
Construct status area for associated input context. | |
void | addAction (StatusGroup group, Action *action) |
Add an action to given group. | |
void | removeAction (Action *action) |
Remove an action from given group. | |
void | clear () |
Clear all the actions, will be called when input context lost focus. | |
void | clearGroup (StatusGroup group) |
Clear only given status group. | |
std::vector< Action * > | actions (StatusGroup group) const |
Get the associated actions for group. | |
std::vector< Action * > | allActions () const |
Get all the associated actions. | |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
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 () |
![]() | |
static void | addEdge (Element *parent, Element *child, Element *beforeChild, Element *beforeParent) |
static void | removeEdge (Element *parent, Element *child) |
Status area represent a list of actions and action may have sub actions.
StatusArea can be shown as a floating window, embedded button in panel, or a tray menu. The actual representation is up to UI plugin.
Definition at line 44 of file statusarea.h.