### Class

# Gtk PasswordEntryBuffer

since: 4.4

#### Description [src]

    final class Gtk.PasswordEntryBuffer : Gtk.EntryBuffer
    {
      /* No available fields */
    }

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

`GtkPasswordEntry` uses a `GtkPasswordEntryBuffer`.

Available since: 4.4

#### Ancestors

- GtkEntryBuffer
- GObject

#### Constructors

###### gtk_password_entry_buffer_new

Creates a new `GtkEntryBuffer` using secure memory allocations.

since: 4.0

#### Instance methods

##### Methods inherited from GtkEntryBuffer (10)

###### gtk_entry_buffer_delete_text

Deletes a sequence of characters from the buffer.

since: 4.0

###### gtk_entry_buffer_emit_deleted_text

Used when subclassing `GtkEntryBuffer`.

since: 4.0

###### gtk_entry_buffer_emit_inserted_text

Used when subclassing `GtkEntryBuffer`.

since: 4.0

###### gtk_entry_buffer_get_bytes

Retrieves the length in bytes of the buffer.

since: 4.0

###### gtk_entry_buffer_get_length

Retrieves the length in characters of the buffer.

since: 4.0

###### gtk_entry_buffer_get_max_length

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

since: 4.0

###### gtk_entry_buffer_get_text

Retrieves the contents of the buffer.

since: 4.0

###### gtk_entry_buffer_insert_text

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

since: 4.0

###### gtk_entry_buffer_set_max_length

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

since: 4.0

###### gtk_entry_buffer_set_text

Sets the text in the buffer.

since: 4.0

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

##### Properties inherited from GtkEntryBuffer (3)

###### Gtk.EntryBuffer:length

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

since: 4.0

###### Gtk.EntryBuffer:max-length

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

since: 4.0

###### Gtk.EntryBuffer:text

The contents of the buffer.

since: 4.0

#### Signals

##### Signals inherited from GtkEntryBuffer (2)

###### GtkEntryBuffer::deleted-text

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

since: 4.0

###### GtkEntryBuffer::inserted-text

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

since: 4.0

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

#### Class structure

    struct GtkPasswordEntryBufferClass {
      GtkEntryBufferClass parent_class;

    }

No description available.

###### Class members

`parent_class: GtkEntryBufferClass`
  No description available.