PasswordEntryBuffer

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

A GtkEntryBuffer that locks the underlying memory to prevent it from being swapped to disk.

GtkPasswordEntry uses a GtkPasswordEntryBuffer.

Since

4.4

Constructors

Link copied to clipboard
constructor()

Creates a new GtkEntryBuffer using secure memory allocations.

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
val gtkPasswordEntryBufferPointer: <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.