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

Module Wrappers.Shortcut_action

type t = [ `shortcut_action | `object_ ] Gobject.obj
val parse_string : string -> t

Create a new ShortcutAction

val to_string : t -> string

Prints the given action into a human-readable string.

This is a small wrapper around method@Gtk.ShortcutAction.print to help when debugging.

val activate : t -> Gtk_enums.shortcutactionflags -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> Gvariant.t option -> bool

Activates the action on the @widget with the given @args.

Note that some actions ignore the passed in @flags, @widget or @args.

Activation of an action can fail for various reasons. If the action is not supported by the @widget, if the @args don't match the action or if the activation otherwise had no effect, %FALSE will be returned.