W Wrapl, The Programming Language

Libraries:Gtk:Atk:EditableText

Types

T

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

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



ParentT

Constants

InterfaceInfo : Std.Object.T

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



Methods

:CopyText(self @ T, start_pos @ Std.Integer.SmallT, end_pos @ Std.Integer.SmallT) : Std.Object.T

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

text an T
start_pos start position
end_pos end position


:CopyText(_ @ ParentT, _ @ Std.Integer.SmallT, _ @ Std.Integer.SmallT)

:CutText(self @ T, start_pos @ Std.Integer.SmallT, end_pos @ Std.Integer.SmallT) : Std.Object.T

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

text an T
start_pos start position
end_pos end position


:CutText(_ @ ParentT, _ @ Std.Integer.SmallT, _ @ Std.Integer.SmallT)

:DeleteText(self @ T, start_pos @ Std.Integer.SmallT, end_pos @ Std.Integer.SmallT) : Std.Object.T

Delete text start_pos up to, but not including end_pos.

text an T
start_pos start position
end_pos end position


:DeleteText(_ @ ParentT, _ @ Std.Integer.SmallT, _ @ Std.Integer.SmallT)

:InsertText(self @ T, string @ Std.String.T, length @ Std.Integer.SmallT, position @ Std.Object.T) : Std.Object.T

Insert text at a given position.

text an T
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.


:InsertText(_ @ ParentT, _ @ Std.String.T, _ @ Std.Integer.SmallT, _ @ Std.Object.T)

:PasteText(self @ T, position @ Std.Integer.SmallT) : Std.Object.T

Paste text from clipboard to specified position.

text an T
position position to paste


:PasteText(_ @ ParentT, _ @ Std.Integer.SmallT)

:SetRunAttributes(self @ T, attrib_set @ Std.Object.T, start_offset @ Std.Integer.SmallT, end_offset @ Std.Integer.SmallT) : Std.Symbol.T

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 T
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


:SetRunAttributes(_ @ ParentT, _ @ Std.Object.T, _ @ Std.Integer.SmallT, _ @ Std.Integer.SmallT)

:SetTextContents(self @ T, string @ Std.String.T) : Std.Object.T

Set text contents of text.

text an T
string string to set for text contents of text


:SetTextContents(_ @ ParentT, _ @ Std.String.T)