Interface
AtkEditableText
Description [src]
interface Atk.EditableText : GObject.Object
The ATK interface implemented by components containing user-editable text content.
AtkEditableText should be implemented by UI components which
contain text which the user can edit, via the AtkObject
corresponding to that component (see AtkObject).
AtkEditableText is a subclass of AtkText, and as such, an object
which implements AtkEditableText is by definition an AtkText
implementor as well.
See AtkText.
Prerequisite
In order to implement EditableText, your type must inherit fromGObject.
Instance methods
atk_editable_text_copy_text
Copy text from start_pos up to, but not including end_pos
to the clipboard.
atk_editable_text_cut_text
Copy text from start_pos up to, but not including end_pos
to the clipboard and then delete from the widget.
atk_editable_text_set_run_attributes
Sets the attributes for a specified range. See the ATK_ATTRIBUTE macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes that can be set. Note that other attributes that do not have corresponding ATK_ATTRIBUTE macros may also be set for certain text widgets.
Interface structure
struct AtkEditableTextIface {
GTypeInterface parent_interface;
gboolean (* set_run_attributes) (
AtkEditableText* text,
AtkAttributeSet* attrib_set,
gint start_offset,
gint end_offset
);
void (* set_text_contents) (
AtkEditableText* text,
const gchar* string
);
void (* insert_text) (
AtkEditableText* text,
const gchar* string,
gint length,
gint* position
);
void (* copy_text) (
AtkEditableText* text,
gint start_pos,
gint end_pos
);
void (* cut_text) (
AtkEditableText* text,
gint start_pos,
gint end_pos
);
void (* delete_text) (
AtkEditableText* text,
gint start_pos,
gint end_pos
);
void (* paste_text) (
AtkEditableText* text,
gint position
);
}
No description available.
Interface members
parent_interface |
|
No description available. |
|
set_run_attributes |
|
No description available. |
|
set_text_contents |
|
No description available. |
|
insert_text |
|
No description available. |
|
copy_text |
|
No description available. |
|
cut_text |
|
No description available. |
|
delete_text |
|
No description available. |
|
paste_text |
|
No description available. |
Virtual methods
Atk.EditableText.copy_text
Copy text from start_pos up to, but not including end_pos
to the clipboard.
Atk.EditableText.cut_text
Copy text from start_pos up to, but not including end_pos
to the clipboard and then delete from the widget.
Atk.EditableText.set_run_attributes
Sets the attributes for a specified range. See the ATK_ATTRIBUTE macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes that can be set. Note that other attributes that do not have corresponding ATK_ATTRIBUTE macros may also be set for certain text widgets.