PaperSize.this

Creates a new #GtkPaperSize object with the given parameters.

  1. this(GtkPaperSize* gtkPaperSize)
  2. this(string name)
  3. this(string name, string displayName, double width, double height, GtkUnit unit)
    class PaperSize
    this
    (
    string name
    ,,
    double width
    ,
    double height
    ,)
  4. this(KeyFile keyFile, string groupName)
  5. this(string ppdName, string ppdDisplayName, double width, double height)

Parameters

name string

the paper name

displayName string

the human-readable name

width double

the paper width, in units of @unit

height double

the paper height, in units of @unit

unit GtkUnit

the unit for @width and @height. not %GTK_UNIT_NONE.

Return: a new #GtkPaperSize object, use gtk_paper_size_free() to free it

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.10