EntryBuffer

open class EntryBuffer(pointer: <Error class: unknown class><<Error class: unknown class>>)

A GtkEntryBuffer hold the text displayed in a GtkText widget.

A single GtkEntryBuffer object can be shared by multiple widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc.

GtkEntryBuffer may be derived from. Such a derived class might allow text to be stored in an alternate location, such as non-pageable memory, useful in the case of important passwords. Or a derived class could integrate with an application’s concept of undo/redo.

Inheritors

Constructors

Link copied to clipboard
constructor(initialChars: String? = null, nInitialChars: Int)

Create a new GtkEntryBuffer object.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkEntryBufferPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val length: <Error class: unknown class>

The length (in characters) of the text in buffer.

Link copied to clipboard
open var maxLength: Int

The maximum length (in characters) of the text in the buffer.

Link copied to clipboard
open val text: String

The contents of the buffer.

Functions

Link copied to clipboard
fun connectDeletedText(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>, <Error class: unknown class>) -> Unit): <Error class: unknown class>

The text is altered in the default handler for this signal.

Link copied to clipboard
fun connectInsertedText(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>, chars: String, <Error class: unknown class>) -> Unit): <Error class: unknown class>

This signal is emitted after text is inserted into the buffer.

Link copied to clipboard
open fun deleteText(position: <Error class: unknown class>, nChars: Int): <Error class: unknown class>

Deletes a sequence of characters from the buffer.

Link copied to clipboard
open fun emitDeletedText(position: <Error class: unknown class>, nChars: <Error class: unknown class>)

Used when subclassing GtkEntryBuffer.

Link copied to clipboard
open fun emitInsertedText(position: <Error class: unknown class>, chars: String, nChars: <Error class: unknown class>)

Used when subclassing GtkEntryBuffer.

Link copied to clipboard
open fun getBytes(): <Error class: unknown class>

Retrieves the length in bytes of the buffer.

Link copied to clipboard
open fun getLength(): <Error class: unknown class>

Retrieves the length in characters of the buffer.

Link copied to clipboard
open fun getMaxLength(): Int

Retrieves the maximum allowed length of the text in @buffer.

Link copied to clipboard
open fun getText(): String

Retrieves the contents of the buffer.

Link copied to clipboard
open fun insertText(position: <Error class: unknown class>, chars: String, nChars: Int): <Error class: unknown class>

Inserts @n_chars characters of @chars into the contents of the buffer, at position @position.

Link copied to clipboard
open fun setMaxLength(maxLength: Int)

Sets the maximum allowed length of the contents of the buffer.

Link copied to clipboard
open fun setText(chars: String, nChars: Int)

Sets the text in the buffer.