Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PasswordEntryActivateCallback

[302:7] extends: object

Generated low-level callback wrapper for GIR callback activate.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • 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.

    • @p Fn is the Aussom callback implementation.
    • @p 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.

class: PasswordEntryMeta

[372:14] static extends: object

Generated metadata helpers for PasswordEntry class surfaces.

Methods

  • properties ()

    Returns property metadata for PasswordEntry.

    • @r A list.
  • signals ()

    Returns signal metadata for PasswordEntry.

    • @r A list.

class: PasswordEntry

[27:7] extends: object

A single-line text entry widget for entering passwords and other secrets. An example GtkPasswordEntry It does not show its contents in clear text, does not allow to copy it to the clipboard, and it shows a warning when Caps Lock is engaged. If the underlying platform allows it, 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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asWidget ()

    Wraps this handle as Widget.

    • @r A Widget object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r A ConstraintTarget object.
  • asEditable ()

    Wraps this handle as Editable.

    • @r A Editable object.
  • connectSignal (string Name, CallbackObj)

    Connects one generated callback wrapper to a named signal.

    • @p Name is the signal name.
    • @p CallbackObj is the generated callback wrapper to connect.
    • @r The connected handler id.
  • disconnectSignalHandler (int HandlerId)

    Disconnects one retained signal handler id.

    • @p HandlerId is the signal handler id to disconnect.
    • @r None.
  • setOnActivate (callback Fn, UserData = null)

    Emitted when the entry is activated. The keybindings for this signal are all forms of the Enter key.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (PasswordEntry Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r 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.

    • @p Value is the new property value.
    • @r None.
  • setExtramenu (object Value)

    A menu model whose contents will be appended to the context menu.

    • @p Value is the new property value.
    • @r None.
  • setPlaceholdertext (string Value)

    The text that will be displayed in the GtkPasswordEntry when it is empty and unfocused.

    • @p Value is the new property value.
    • @r None.
  • setShowpeekicon (bool Value)

    Whether to show an icon for revealing the content.

    • @p Value is the new property value.
    • @r 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.

    • @p model is a GMenuModel.
    • @r 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.

    • @p show_peek_icon is whether to show the peek icon.
    • @r None.