package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Password_entry/index.html

Module Wrappers.Password_entry

type t = [ `password_entry | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : unit -> t

Create a new PasswordEntry

val set_show_peek_icon : t -> bool -> unit

Sets whether the entry should have a clickable icon to reveal the contents.

Setting this to %FALSE also hides the text again.

val set_extra_menu : t -> Ocgtk_gio.Gio.Wrappers.Menu_model.t option -> unit

Sets a menu model to add when constructing the context menu for @entry.

val get_show_peek_icon : t -> bool

Returns whether the entry is showing an icon to reveal the contents.

val get_extra_menu : t -> Ocgtk_gio.Gio.Wrappers.Menu_model.t option

Gets the menu model set with gtk_password_entry_set_extra_menu().

val get_activates_default : t -> bool

Get property: activates-default

val set_activates_default : t -> bool -> unit

Set property: activates-default

val get_placeholder_text : t -> string

Get property: placeholder-text

val set_placeholder_text : t -> string -> unit

Set property: placeholder-text

val on_activate : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id