class Bus : Object {
public:
- Bus (void) : Object (ibus_bus_new ()) {
- }
+ Bus (void) : Object (ibus_bus_new ()) { }
- bool isConnected (void) {
+ bool isConnected (void)
+ {
return ibus_bus_is_connected (*this);
}
- operator IBusBus * (void) const {
+ operator IBusBus * (void) const
+ {
return get<IBusBus> ();
}
};
IBusPropList *props = NULL)
: Object (ibus_property_new (key, type, label, icon, tooltip, sensitive, visible, state, props)) { }
- void setLabel (IBusText *text) {
+ void setLabel (IBusText *text)
+ {
ibus_property_set_label (get<IBusProperty> (), text);
}
- void setLabel (const gchar *text) {
+ void setLabel (const gchar *text)
+ {
setLabel (Text (text));
}
- void setIcon (const gchar *icon) {
+ void setIcon (const gchar *icon)
+ {
ibus_property_set_icon (get<IBusProperty> (), icon);
}
- void setSensitive (gboolean sensitive) {
+ void setSensitive (gboolean sensitive)
+ {
ibus_property_set_sensitive (get<IBusProperty> (), sensitive);
}
- operator IBusProperty * (void) const {
+ operator IBusProperty * (void) const
+ {
return get<IBusProperty> ();
}
};
public:
PropList (void) : Object (ibus_prop_list_new ()) { }
- void append (Property &prop) {
+ void append (Property &prop)
+ {
ibus_prop_list_append (get<IBusPropList> (), prop);
}
- operator IBusPropList * (void) const {
+ operator IBusPropList * (void) const
+ {
return get<IBusPropList> ();
}
};