PasswordEntryBuffer

A gtk.entry_buffer.EntryBuffer that locks the underlying memory to prevent it from being swapped to disk.

gtk.password_entry.PasswordEntry uses a gtk.password_entry_buffer.PasswordEntryBuffer.

class PasswordEntryBuffer : EntryBuffer {}

Constructors

this
this()

Creates a new gtk.entry_buffer.EntryBuffer using secure memory allocations.

Inherited Members

From EntryBuffer

deleteText
uint deleteText(uint position, int nChars)

Deletes a sequence of characters from the buffer.

emitDeletedText
void emitDeletedText(uint position, uint nChars)

Used when subclassing gtk.entry_buffer.EntryBuffer.

emitInsertedText
void emitInsertedText(uint position, string chars, uint nChars)

Used when subclassing gtk.entry_buffer.EntryBuffer.

getBytes
size_t getBytes()

Retrieves the length in bytes of the buffer.

getLength
uint getLength()

Retrieves the length in characters of the buffer.

getMaxLength
int getMaxLength()

Retrieves the maximum allowed length of the text in buffer.

getText
string getText()

Retrieves the contents of the buffer.

insertText
uint insertText(uint position, string chars, int nChars)

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

setMaxLength
void setMaxLength(int maxLength)

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

setText
void setText(string chars, int nChars)

Sets the text in the buffer.

connectDeletedText
ulong connectDeletedText(T callback, Flag!"After" after)

Connect to DeletedText signal.

connectInsertedText
ulong connectInsertedText(T callback, Flag!"After" after)

Connect to InsertedText signal.