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

Module Wrappers.Application_window

type t = [ `application_window | `window | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : [ `application | `object_ ] Gobject.obj -> t

Create a new ApplicationWindow

val set_show_menubar : t -> bool -> unit

Sets whether the window will display a menubar for the app menu and menubar as needed.

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

Associates a shortcuts window with the application window.

Additionally, sets up an action with the name `win.show-help-overlay` to present it.

@window takes responsibility for destroying @help_overlay.

val get_show_menubar : t -> bool

Returns whether the window will display a menubar for the app menu and menubar as needed.

val get_id : t -> int

Returns the unique ID of the window.

If the window has not yet been added to a `GtkApplication`, returns `0`.

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

Gets the `GtkShortcutsWindow` that is associated with @window.

See method@Gtk.ApplicationWindow.set_help_overlay.