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.gio/Ocgtk_gio/Gio/Wrappers/Simple_action_group/index.html

Module Wrappers.Simple_action_group

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

Create a new SimpleActionGroup

val remove : t -> string -> unit

Removes the named action from the action group.

If no action of this name is in the group then nothing happens.

val lookup : t -> string -> [ `action ] Gobject.obj

Looks up the action with the name @action_name in the group.

If no such action exists, returns %NULL.

val insert : t -> [ `action ] Gobject.obj -> unit

Adds an action to the action group.

If the action group already contains an action with the same name as @action then the old action is dropped from the group.

The action group takes its own reference on @action.