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.

length
uint length [@property getter]

Get length property.

maxLength
int maxLength [@property getter]

Get maxLength property.

maxLength
int maxLength [@property setter]

Set maxLength property.

text
string text [@property getter]

Get text property.

text
string text [@property setter]

Set text property.

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.