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.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

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

Members

Functions

self
PasswordEntryBuffer self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From EntryBuffer

getGType
GType getGType()
gType
GType gType [@property getter]
self
EntryBuffer self()

Returns this, for use in with statements.

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.