Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Atk::EditableText Class Reference

A AtkEditableText C++ wrapper class. More...

#include <inti/atk/editabletext.h>

Inheritance diagram for Inti::Atk::EditableText:

Inti::G::TypeInterface Inti::G::TypeInstance Inti::ReferencedBase List of all members.

Public Member Functions

Accessors
Methods

Protected Member Functions

Constructors

Detailed Description

A AtkEditableText C++ wrapper class.

The EditableText interface should be implemented by UI components which contain text which the user can edit, via the Atk::Object corresponding to that component (see Atk::Object).

EditableText is a subclass of Text, and as such, an object which implements EditableText is by definition a Text implementor as well.


Member Function Documentation

void Inti::Atk::EditableText::copy_text int  start_pos,
int  end_pos
 

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

Parameters:
start_pos The start position.
end_pos The end position.

void Inti::Atk::EditableText::cut_text int  start_pos,
int  end_pos
 

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

Parameters:
start_pos The start position.
end_pos The end position.

void Inti::Atk::EditableText::delete_text int  start_pos,
int  end_pos
 

Delete text from start_pos up to, but not including end_pos.

Parameters:
start_pos The start position.
end_pos The end position.

void Inti::Atk::EditableText::insert_text const String str,
int *  position
 

Insert text at the given position.

Parameters:
str The text to insert.
position The caller initializes this to the position at which to insert the text.

When the method returns position points to the position after the newly inserted text.

void Inti::Atk::EditableText::paste_text int  position  ) 
 

Paste text from the clipboard to the specified position.

Parameters:
position The position to paste the text to.

bool Inti::Atk::EditableText::set_run_attributes const std::vector< Attribute > &  attribs,
int  start_offset,
int  end_offset
 

Sets the attributes for a specified range.

Parameters:
attribs A reference to a vector of Attribute that holds the list of attributes to set.
start_offset The start of the range in which to set the attributes.
end_offset The end of the range in which to set the attributes.
Returns:
true if the attributes were successfully set for the specified range, otherwise false.

See the Atk::TextAttribute enum for examples of attributes that can be set, such as TEXT_ATTR_LEFT_MARGIN. Note that other attributes that do not have a corresponding TextAttribute may also be set for certain text widgets.

void Inti::Atk::EditableText::set_text_contents const String str  ) 
 

Set str as the text contents of the EditableText.

Parameters:
str The string to set as the text contents of the EditableText.


The documentation for this class was generated from the following file: Main Page - Footer


Generated on Sun Sep 14 20:08:07 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002