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

Module Wrappers.Action_bar

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

Create a new ActionBar

val set_revealed : t -> bool -> unit

Reveals or conceals the content of the action bar.

Note: this does not show or hide @action_bar in the property@Gtk.Widget:visible sense, so revealing has no effect if the action bar is hidden.

val set_center_widget : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj option -> unit

Sets the center widget for the `GtkActionBar`.

val remove : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> unit

Removes a child from @action_bar.

val pack_start : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> unit

Adds @child to @action_bar, packed with reference to the start of the @action_bar.

val pack_end : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> unit

Adds @child to @action_bar, packed with reference to the end of the @action_bar.

val get_revealed : t -> bool

Gets whether the contents of the action bar are revealed.

val get_center_widget : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj option

Retrieves the center bar widget of the bar.