Gtk.PaperSize.new
function new(name:String):Gtk.PaperSize {
// Gjs wrapper for gtk_paper_size_new()
}Creates a new Gtk.PaperSize object by parsing a <ulink url="ftp://ftp.pwg.org/pub/pwg/candidates/cs-pwgmsn10-20020226-5101.1.pdf">PWG 5101.1-2002</ulink> paper name.
If name is null, the default paper size is returned, see Gtk.paper_size_get_default.
Since 2.10
- name
a paper size name, or null
- Returns
a new Gtk.PaperSize, use Gtk.free to free it