atk.EditableText.EditableText Class Reference

List of all members.

Detailed Description

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


Public Member Functions

AtkEditableTextgetEditableTextStruct ()
 this (AtkEditableText *atkEditableText)
 Sets our main struct and passes it to the parent class.
int _SetRunAttributes (AtkAttributeSet *attribSet, int startOffset, int endOffset)
 Sets the attributes for a specified range.
void _SetTextContents (char[] string)
 Set text contents of text.
void _InsertText (char[] string, int length, int *position)
 Insert text at a given position.
void _CopyText (int startPos, int endPos)
 Copy text from start_pos up to, but not including end_pos to the clipboard.
void _CutText (int startPos, int endPos)
 Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.
void _DeleteText (int startPos, int endPos)
 Delete text start_pos up to, but not including end_pos.
void _PasteText (int position)
 Paste text from clipboard to specified position.

Protected Member Functions

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

Protected Attributes

AtkEditableTextatkEditableText
 the main Gtk struct


Constructor & Destructor Documentation

atk.EditableText.EditableText.this ( AtkEditableText atkEditableText  ) 

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


Member Function Documentation

void atk.EditableText.EditableText._CopyText ( int  startPos,
int  endPos 
)

Copy text from start_pos up to, but not including end_pos to the clipboard.

text: an AtkEditableText start_pos: start position end_pos: end position

void atk.EditableText.EditableText._CutText ( int  startPos,
int  endPos 
)

Copy text from start_pos up to, but not including end_pos to the clipboard and then delete from the widget.

text: an AtkEditableText start_pos: start position end_pos: end position

void atk.EditableText.EditableText._DeleteText ( int  startPos,
int  endPos 
)

Delete text start_pos up to, but not including end_pos.

text: an AtkEditableText start_pos: start position end_pos: end position

void atk.EditableText.EditableText._InsertText ( char[]  string,
int  length,
int position 
)

Insert text at a given position.

text: an AtkEditableText string: the text to insert length: the length of text to insert, in bytes position: The caller initializes this to the position at which to insert the text. After the call it points at the position after the newly inserted text.

void atk.EditableText.EditableText._PasteText ( int  position  ) 

Paste text from clipboard to specified position.

text: an AtkEditableText position: position to paste See Also AtkText

int atk.EditableText.EditableText._SetRunAttributes ( AtkAttributeSet attribSet,
int  startOffset,
int  endOffset 
)

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. text: an AtkEditableText attrib_set: an AtkAttributeSet start_offset: start of range in which to set attributes end_offset: end of range in which to set attributes Returns: TRUE if attributes successfully set for the specified range, otherwise FALSE

void atk.EditableText.EditableText._SetTextContents ( char[]  string  ) 

Set text contents of text.

text: an AtkEditableText string: string to set for text contents of text

AtkEditableText* atk.EditableText.EditableText.getEditableTextStruct (  ) 

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

the main Gtk struct as a void*


Member Data Documentation

AtkEditableText* atk.EditableText.EditableText.atkEditableText [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo