Basics
Guides
API Reference
Basics
Guides
API Reference
[302:7] extends: object
Generated low-level callback wrapper for GIR callback activate.
PasswordEntryActivateCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[372:14] static extends: object
Generated metadata helpers for PasswordEntry class surfaces.
properties ()
Returns property metadata for
PasswordEntry.
A list.signals ()
Returns signal metadata for
PasswordEntry.
A list.[27:7] extends: object
A single-line text entry widget for entering passwords and other secrets.
GtkPasswordEntry will also place the text in a non-pageable memory area, to
avoid it being written out to disk by the operating system. Optionally, it
can offer a way to reveal the contents in clear text. GtkPasswordEntry
provides only minimal API and should be used with the [iface@Gtk.Editable]
API. # CSS Nodes entry.password ╰── text ├── image.caps-lock-indicator ┊ GtkPasswordEntry has a single CSS node with name entry that carries a
.passwordstyle class. The text Css node below it has a child with name image
and style class .caps-lock-indicator for the Caps Lock icon, and possibly
other children. # Accessibility GtkPasswordEntry uses the
[enum@Gtk.AccessibleRole.text_box] role.
PasswordEntry ()
Creates a
GtkPasswordEntry.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.asEditable ()
Wraps this handle as
Editable.
A Editable object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnActivate (callback Fn, UserData = null)
Emitted when the entry is activated. The keybindings for this signal are all forms of the Enter key.
Fn is the Aussom callback.Fn is called with (PasswordEntry Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setActivatesdefault (bool Value)
Whether to activate the default widget when Enter is pressed.
Value is the new property value.None.setExtramenu (object Value)
A menu model whose contents will be appended to the context menu.
Value is the new property value.None.setPlaceholdertext (string Value)
The text that will be displayed in the
GtkPasswordEntrywhen it is empty and unfocused.
Value is the new property value.None.setShowpeekicon (bool Value)
Whether to show an icon for revealing the content.
Value is the new property value.None.get_extra_menu ()
Gets the menu model set with gtk_password_entry_set_extra_menu().
get_show_peek_icon ()
Returns whether the entry is showing an icon to reveal the contents.
set_extra_menu (object model)
Sets a menu model to add when constructing the context menu for @entry.
model is a GMenuModel.None.set_show_peek_icon (bool show_peek_icon)
Sets whether the entry should have a clickable icon to reveal the contents. Setting this to %FALSE also hides the text again.
show_peek_icon is whether to show the peek icon.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.