EditableTextProtocol
public protocol EditableTextProtocol
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 also: AtkText
The EditableTextProtocol protocol exposes the methods and properties of an underlying AtkEditableText instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see EditableText.
Alternatively, use EditableTextRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
AtkEditableTextinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
editable_text_ptrDefault implementationTyped pointer to the underlying
AtkEditableTextinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkEditableTextinstance.Declaration
Swift
var editable_text_ptr: UnsafeMutablePointer<AtkEditableText>! { get } -
Required Initialiser for types conforming to
EditableTextProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copyText(startPos:Extension methodendPos: ) Copy text from
start_posup to, but not includingend_posto the clipboard.Declaration
Swift
@inlinable func copyText(startPos: Int, endPos: Int) -
cutText(startPos:Extension methodendPos: ) Copy text from
start_posup to, but not includingend_posto the clipboard and then delete from the widget.Declaration
Swift
@inlinable func cutText(startPos: Int, endPos: Int) -
deleteText(startPos:Extension methodendPos: ) Delete text
start_posup to, but not includingend_pos.Declaration
Swift
@inlinable func deleteText(startPos: Int, endPos: Int) -
insertText(string:Extension methodlength: position: ) Insert text at a given position.
Declaration
Swift
@inlinable func insertText(string: UnsafePointer<gchar>!, length: Int, position: UnsafeMutablePointer<gint>!) -
pasteText(position:Extension method) Paste text from clipboard to specified
position.Declaration
Swift
@inlinable func pasteText(position: Int) -
setRunAttributes(attribSet:Extension methodstartOffset: 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.Declaration
Swift
@inlinable func setRunAttributes(attribSet: UnsafeMutablePointer<AtkAttributeSet>!, startOffset: Int, endOffset: Int) -> Bool -
setTextContents(string:Extension method) Set text contents of
text.Declaration
Swift
@inlinable func setTextContents(string: UnsafePointer<gchar>!)
View on GitHub
Install in Dash
EditableTextProtocol Protocol Reference