package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Drawing_area/index.html
Module Wrappers.Drawing_area
type t =
[ `drawing_area | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : unit -> tCreate a new DrawingArea
val set_content_width : t -> int -> unitSets the desired width of the contents of the drawing area.
Note that because widgets may be allocated larger sizes than they requested, it is possible that the actual width passed to your draw function is larger than the width set here. You can use method@Gtk.Widget.set_halign to avoid that.
If the width is set to 0 (the default), the drawing area may disappear.
val set_content_height : t -> int -> unitSets the desired height of the contents of the drawing area.
Note that because widgets may be allocated larger sizes than they requested, it is possible that the actual height passed to your draw function is larger than the height set here. You can use method@Gtk.Widget.set_valign to avoid that.
If the height is set to 0 (the default), the drawing area may disappear.
val get_content_width : t -> intRetrieves the content width of the `GtkDrawingArea`.
val get_content_height : t -> intRetrieves the content height of the `GtkDrawingArea`.
val on_resize :
?after:bool ->
t ->
callback:(width:int -> height:int -> unit) ->
Gobject.Signal.handler_id