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.

Implementations

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_delete_text

Delete text start_pos up to, but not including end_pos.

atk_editable_text_insert_text

Insert text at a given position.

atk_editable_text_paste_text

Paste text from clipboard to specified position.

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.

atk_editable_text_set_text_contents

Set text contents of text.

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
GTypeInterface
 

No description available.

set_run_attributes
gboolean (* set_run_attributes) (
    AtkEditableText* text,
    AtkAttributeSet* attrib_set,
    gint start_offset,
    gint end_offset
  )
 

No description available.

set_text_contents
void (* set_text_contents) (
    AtkEditableText* text,
    const gchar* string
  )
 

No description available.

insert_text
void (* insert_text) (
    AtkEditableText* text,
    const gchar* string,
    gint length,
    gint* position
  )
 

No description available.

copy_text
void (* copy_text) (
    AtkEditableText* text,
    gint start_pos,
    gint end_pos
  )
 

No description available.

cut_text
void (* cut_text) (
    AtkEditableText* text,
    gint start_pos,
    gint end_pos
  )
 

No description available.

delete_text
void (* delete_text) (
    AtkEditableText* text,
    gint start_pos,
    gint end_pos
  )
 

No description available.

paste_text
void (* paste_text) (
    AtkEditableText* text,
    gint position
  )
 

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.delete_text

Delete text start_pos up to, but not including end_pos.

Atk.EditableText.insert_text

Insert text at a given position.

Atk.EditableText.paste_text

Paste text from clipboard to specified position.

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.

Atk.EditableText.set_text_contents

Set text contents of text.