package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Paper_size/index.html
Module Wrappers.Paper_size
type t = [ `paper_size ] Gobject.obj`GtkPaperSize` handles paper sizes.
It uses the standard called PWG 5101.1-2002 PWG: Standard for Media Standardized Names(http://www.pwg.org/standards.html) to name the paper sizes (and to get the data for the page sizes). In addition to standard paper sizes, `GtkPaperSize` allows to construct custom paper sizes with arbitrary dimensions.
The `GtkPaperSize` object stores not only the dimensions (width and height) of a paper size and its name, it also provides default print margins.
val new_ : string option -> tCreate a new PaperSize
val new_custom : string -> string -> float -> float -> Gtk_enums.unit -> tCreate a new PaperSize
val new_from_gvariant : Gvariant.t -> tCreate a new PaperSize
val new_from_ipp : string -> float -> float -> tCreate a new PaperSize
val new_from_ppd : string -> string -> float -> float -> tCreate a new PaperSize
val to_gvariant : t -> Gvariant.tSerialize a paper size to an `asv` variant.
val set_size : t -> float -> float -> Gtk_enums.unit -> unitChanges the dimensions of a @size to @width x @height.
val is_ipp : t -> boolReturns %TRUE if @size is an IPP standard paper size.
val is_custom : t -> boolReturns %TRUE if @size is not a standard paper size.
val get_width : t -> Gtk_enums.unit -> floatGets the paper width of the `GtkPaperSize`, in units of @unit.
val get_ppd_name : t -> stringGets the PPD name of the `GtkPaperSize`, which may be %NULL.
val get_name : t -> stringGets the name of the `GtkPaperSize`.
val get_height : t -> Gtk_enums.unit -> floatGets the paper height of the `GtkPaperSize`, in units of @unit.
val get_display_name : t -> stringGets the human-readable name of the `GtkPaperSize`.
val get_default_top_margin : t -> Gtk_enums.unit -> floatGets the default top margin for the `GtkPaperSize`.
val get_default_right_margin : t -> Gtk_enums.unit -> floatGets the default right margin for the `GtkPaperSize`.
val get_default_left_margin : t -> Gtk_enums.unit -> floatGets the default left margin for the `GtkPaperSize`.
val get_default_bottom_margin : t -> Gtk_enums.unit -> floatGets the default bottom margin for the `GtkPaperSize`.
val get_type : unit -> Gobject.Type.t