Callbacks

  FreeFunc (object)
  ObjectDestroyFunc (object)
  SerializableCopyFunc (dest, src)
  SerializableDeserializeFunc (serializable, variant)
  SerializableSerializeFunc (serializable, builder)
  UnicodeDataLoadAsyncFinish (data_list, *user_data)

Details

IBus.FreeFunc(object)
Parameters:object (object or None) – object to be freed.

Free function prototype.

IBus.ObjectDestroyFunc(object)
Parameters:object (IBus.Object) –
IBus.SerializableCopyFunc(dest, src)
Parameters:
Returns:

True if succeed; False otherwise.

Return type:

bool

Prototype of copy function. Copy function copy from source IBus.Serializable to the destination one. Returns a bool value which indicates whether the copying is success.

IBus.SerializableDeserializeFunc(serializable, variant)
Parameters:
Returns:

The number of values in the variant(tuple) are consumed.

Return type:

int

Prototype of deserialize function. Deserialize function convert a GLib.Variant to IBus.Serializable. Returns an integer value which indicates how many values in the variant(tuple) are consumed.

IBus.SerializableSerializeFunc(serializable, builder)
Parameters:
Returns:

True if succeed; False otherwise.

Return type:

bool

Prototype of serialize function. Serialize function convert an IBus.Serializable to GLib.VariantBuilder. Returns a bool value which indicates whether the conversion is success. Return True if succeed.

IBus.UnicodeDataLoadAsyncFinish(data_list, *user_data)
Parameters:

This callback can receive the list of IBus.UnicodeData.