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

Module Wrappers.Fixed

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

Create a new Fixed

val set_child_transform : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> Ocgtk_gsk.Gsk.Wrappers.Transform.t option -> unit

Sets the transformation for @widget.

This is a convenience function that retrieves the class@Gtk.FixedLayoutChild instance associated to @widget and calls method@Gtk.FixedLayoutChild.set_transform.

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

Removes a child from @fixed.

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

Adds a widget to a `GtkFixed` at the given position.

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

Sets a translation transformation to the given @x and @y coordinates to the child @widget of the `GtkFixed`.

val get_child_transform : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> Ocgtk_gsk.Gsk.Wrappers.Transform.t option

Retrieves the transformation for @widget set using gtk_fixed_set_child_transform().

val get_child_position : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> float * float

Retrieves the translation transformation of the given child `GtkWidget` in the `GtkFixed`.

See also: method@Gtk.Fixed.get_child_transform.