package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Aspect_frame/index.html
Module Wrappers.Aspect_frame
type t =
[ `aspect_frame | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : float -> float -> float -> bool -> tCreate a new AspectFrame
val set_yalign : t -> float -> unitSets the vertical alignment of the child within the allocation of the `GtkAspectFrame`.
val set_xalign : t -> float -> unitSets the horizontal alignment of the child within the allocation of the `GtkAspectFrame`.
val set_ratio : t -> float -> unitSets the desired aspect ratio of the child.
val set_obey_child : t -> bool -> unitSets whether the aspect ratio of the child's size request should override the set aspect ratio of the `GtkAspectFrame`.
val set_child :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj option ->
unitSets the child widget of @self.
val get_yalign : t -> floatReturns the vertical alignment of the child within the allocation of the `GtkAspectFrame`.
val get_xalign : t -> floatReturns the horizontal alignment of the child within the allocation of the `GtkAspectFrame`.
val get_ratio : t -> floatReturns the desired aspect ratio of the child.
val get_obey_child : t -> boolReturns whether the child's size request should override the set aspect ratio of the `GtkAspectFrame`.
val get_child :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj optionGets the child widget of @self.