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

Module Wrappers.Window_controls

type t = [ `window_controls | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : Gtk_enums.packtype -> t

Create a new WindowControls

val set_side : t -> Gtk_enums.packtype -> unit

Determines which part of decoration layout the `GtkWindowControls` uses.

See property@Gtk.WindowControls:decoration-layout.

val set_decoration_layout : t -> string option -> unit

Sets the decoration layout for the title buttons.

This overrides the property@Gtk.Settings:gtk-decoration-layout setting.

The format of the string is button names, separated by commas. A colon separates the buttons that should appear on the left from those on the right. Recognized button names are minimize, maximize, close and icon (the window icon).

For example, “icon:minimize,maximize,close” specifies a icon on the left, and minimize, maximize and close buttons on the right.

If property@Gtk.WindowControls:side value is @GTK_PACK_START, @self will display the part before the colon, otherwise after that.

val get_side : t -> Gtk_enums.packtype

Gets the side to which this `GtkWindowControls` instance belongs.

val get_empty : t -> bool

Gets whether the widget has any window buttons.

val get_decoration_layout : t -> string option

Gets the decoration layout of this `GtkWindowControls`.