![]() |
![]() |
![]() |
Maliit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#include <maliit/maliitattributeextension.h> struct MaliitAttributeExtension; struct MaliitAttributeExtensionClass; void maliit_attribute_extension_attach_to_object (MaliitAttributeExtension *extension
,GObject *object
); GHashTable * maliit_attribute_extension_get_attributes (MaliitAttributeExtension *extension
); const gchar * maliit_attribute_extension_get_filename (MaliitAttributeExtension *extension
); int maliit_attribute_extension_get_id (MaliitAttributeExtension *extension
); MaliitAttributeExtension * maliit_attribute_extension_new (void
); MaliitAttributeExtension * maliit_attribute_extension_new_with_filename (const gchar *filename
); void maliit_attribute_extension_set_attribute (MaliitAttributeExtension *extension
,const gchar *key
,GVariant *value
); void maliit_attribute_extension_update_attribute (MaliitAttributeExtension *extension
,const gchar *key
,GVariant *value
);
"attributes" GHashTable* : Read "filename" gchar* : Read / Write / Construct Only "id" gint : Read / Write / Construct Only
MaliitAttributeExtension class can be used by application to override some aspect of IM plugin currently used, like the looks of action key.
struct MaliitAttributeExtensionClass { GObjectClass parent_class; };
void maliit_attribute_extension_attach_to_object (MaliitAttributeExtension *extension
,GObject *object
);
Attaches extension
to object
, so input context can retrieve it
from object
. Note that attaching extensions to non-input
GObject<!-- -->s does not have much sense.
|
The MaliitAttributeExtension which you want to be attached. [transfer none] |
|
The GObject to which extension will be attached. [transfer none]
|
GHashTable * maliit_attribute_extension_get_attributes
(MaliitAttributeExtension *extension
);
Gets all attributes of this extension that were set previously with
maliit_attribute_extension_set_attribute()
.
|
The MaliitAttributeExtension which attributes you want to get. [transfer none] |
Returns : |
The GHashTable containing strings as keys and GVariant<!-- -->s as values. Should not be freed nor modified. [transfer none][element-type utf8 GLib.Variant] |
const gchar * maliit_attribute_extension_get_filename
(MaliitAttributeExtension *extension
);
Gets filename of this extension that were set previously with
maliit_attribute_extension_new_with_filename()
.
|
The MaliitAttributeExtension which filename you want to get. [transfer none] |
Returns : |
The string being a
filename of this extension or NULL . Returned string should not be
freed nor modified. [transfer none][type filename]
|
int maliit_attribute_extension_get_id (MaliitAttributeExtension *extension
);
Gets ID of this extension.
|
The MaliitAttributeExtension which ID you want to get. [transfer none] |
Returns : |
The ID of this extension. |
MaliitAttributeExtension * maliit_attribute_extension_new
(void
);
Creates new attribute extension, which is not associated with any file.
Returns : |
The newly created MaliitAttributeExtension. [transfer full] |
MaliitAttributeExtension * maliit_attribute_extension_new_with_filename
(const gchar *filename
);
Creates new attribute extension, which is associated with file
given as filename
.
|
Filename where overrides are stored. [transfer none][type filename] |
Returns : |
The newly created MaliitAttributeExtension. [transfer full] |
void maliit_attribute_extension_set_attribute (MaliitAttributeExtension *extension
,const gchar *key
,GVariant *value
);
Sets an attribute in extension
described by key
to value in value
.
|
The MaliitAttributeExtension which attribute you want to set. [transfer none] |
|
Attribute name to update. [transfer none] |
|
Attribute value to update. [transfer none] |
void maliit_attribute_extension_update_attribute (MaliitAttributeExtension *extension
,const gchar *key
,GVariant *value
);
Updates the extension
's attribute described by key
with
value
. This function always emits a
"extended-attribute-changed" signal.
|
The MaliitAttributeExtension which attribute you want to update. [transfer none] |
|
Attribute name to update. [transfer none] |
|
Attribute value to update. [transfer none] |
"filename"
property "filename" gchar* : Read / Write / Construct Only
Filename of the extension.
Default value: NULL
"extended-attribute-changed"
signalvoid user_function (MaliitAttributeExtension *extension,
gchar *key,
GVariant *value,
gpointer user_data) : Run First
Informs application that input method server has changed the extended attribute.
|
The MaliitAttributeExtension emitting the signal. |
|
A string specifying the target for the attribute. |
|
A new value. |
|
user data set when the signal handler was connected. |