package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Page_setup/index.html
Module Wrappers.Page_setup
type t = [ `page_setup | `object_ ] Gobject.objval new_ : unit -> tCreate a new PageSetup
val new_from_gvariant : Gvariant.t -> tCreate a new PageSetup
val to_gvariant : t -> Gvariant.tSerialize page setup to an asv variant.
This function saves the information from @setup to @file_name.
val set_top_margin : t -> float -> Gtk_enums.unit -> unitSets the top margin of the `GtkPageSetup`.
val set_right_margin : t -> float -> Gtk_enums.unit -> unitSets the right margin of the `GtkPageSetup`.
val set_paper_size_and_default_margins :
t ->
[ `paper_size ] Gobject.obj ->
unitSets the paper size of the `GtkPageSetup` and modifies the margins according to the new paper size.
val set_paper_size : t -> [ `paper_size ] Gobject.obj -> unitSets the paper size of the `GtkPageSetup` without changing the margins.
See method@Gtk.PageSetup.set_paper_size_and_default_margins.
val set_orientation : t -> Gtk_enums.pageorientation -> unitSets the page orientation of the `GtkPageSetup`.
val set_left_margin : t -> float -> Gtk_enums.unit -> unitSets the left margin of the `GtkPageSetup`.
val set_bottom_margin : t -> float -> Gtk_enums.unit -> unitSets the bottom margin of the `GtkPageSetup`.
Reads the page setup from the file @file_name.
See method@Gtk.PageSetup.to_file.
val get_top_margin : t -> Gtk_enums.unit -> floatGets the top margin in units of @unit.
val get_right_margin : t -> Gtk_enums.unit -> floatGets the right margin in units of @unit.
val get_paper_width : t -> Gtk_enums.unit -> floatReturns the paper width in units of @unit.
Note that this function takes orientation, but not margins into consideration. See method@Gtk.PageSetup.get_page_width.
val get_paper_size : t -> [ `paper_size ] Gobject.objGets the paper size of the `GtkPageSetup`.
val get_paper_height : t -> Gtk_enums.unit -> floatReturns the paper height in units of @unit.
Note that this function takes orientation, but not margins into consideration. See method@Gtk.PageSetup.get_page_height.
val get_page_width : t -> Gtk_enums.unit -> floatReturns the page width in units of @unit.
Note that this function takes orientation and margins into consideration. See method@Gtk.PageSetup.get_paper_width.
val get_page_height : t -> Gtk_enums.unit -> floatReturns the page height in units of @unit.
Note that this function takes orientation and margins into consideration. See method@Gtk.PageSetup.get_paper_height.
val get_orientation : t -> Gtk_enums.pageorientationGets the page orientation of the `GtkPageSetup`.
val get_left_margin : t -> Gtk_enums.unit -> floatGets the left margin in units of @unit.
val get_bottom_margin : t -> Gtk_enums.unit -> floatGets the bottom margin in units of @unit.