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/Shortcut_label/index.html

Module Wrappers.Shortcut_label

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

Create a new ShortcutLabel

val set_disabled_text : t -> string -> unit

Sets the text to be displayed by @self when no accelerator is set.

val set_accelerator : t -> string -> unit

Sets the accelerator to be displayed by @self.

val get_disabled_text : t -> string option

Retrieves the text that is displayed when no accelerator is set.

val get_accelerator : t -> string option

Retrieves the current accelerator of @self.