atk.Text.Text Class Reference

List of all members.

Detailed Description

Description AtkText should be implemented by AtkObjects on behalf of widgets that have text content which is either attributed or otherwise non-trivial.

AtkObjects whose text content is simple, unattributed, and very brief may expose that content via atk_object_get_name instead; however if the text is editable, multi-line, typically longer than three or four words, attributed, selectable, or if the object already uses the 'name' ATK property for other information, the AtkText interface should be used to expose the text content. In the case of editable text content, AtkEditableText (a subtype of the AtkText interface) should be implemented instead. AtkText provides not only traversal facilities and change notification for text content, but also caret tracking and glyph bounding box calculations. Note that the text strings are exposed as UTF-8, and are therefore potentially multi-byte, and caret-to-byte offset mapping makes no assumptions about the character length; also bounding box glyph-to-offset mapping may be complex for languages which use ligatures.

Public Member Functions

AtkTextgetTextStruct ()
 this (AtkText *atkText)
 Sets our main struct and passes it to the parent class.
void delegate (Text)[] onTextAttributesChangedListeners
void addOnTextAttributesChanged (void delegate(Text) dlg)
 extern (C) static void callBackTextAttributesChanged(AtkText *atktextStruct
void addOnTextCaretMoved (void delegate(gint, Text) dlg)
 extern (C) static void callBackTextCaretMoved(AtkText *atktextStruct
void addOnTextChanged (void delegate(gint, gint, Text) dlg)
 extern (C) static void callBackTextChanged(AtkText *atktextStruct
void addOnTextSelectionChanged (void delegate(Text) dlg)
 extern (C) static void callBackTextSelectionChanged(AtkText *atktextStruct

Public Attributes

int[char[]] connectedSignals
gint arg1
gint gint arg2

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

 the main Gtk struct

Constructor & Destructor Documentation

atk.Text.Text.this ( AtkText atkText  ) 

Sets our main struct and passes it to the parent class.

Member Function Documentation

void atk.Text.Text.addOnTextAttributesChanged ( void delegate(Text dlg  ) 

void atk.Text.Text.addOnTextCaretMoved ( void delegate(gint, Text dlg  ) 

void atk.Text.Text.addOnTextChanged ( void delegate(gint, gint, Text dlg  ) 

void atk.Text.Text.addOnTextSelectionChanged ( void delegate(Text dlg  ) 

void atk.Text.Text.delegate ( Text   ) 

atk.Text.Text.extern (  ) 

atk.Text.Text.extern (  ) 

atk.Text.Text.extern (  ) 

atk.Text.Text.extern (  ) 

void* atk.Text.Text.getStruct (  )  [protected]

the main Gtk struct as a void*

AtkText* atk.Text.Text.getTextStruct (  ) 

Member Data Documentation

gint atk::Text.Text::arg1

gint gint atk.Text.Text.arg2

AtkText* atk.Text.Text.atkText [protected]

the main Gtk struct

int [char[]] atk.Text.Text.connectedSignals Logo Logo Logo