PaperSize.newCustom

gtk.paper_size.PaperSize newCustom(string name, string displayName, double width, double height, gtk.types.Unit unit)

Creates a new [gtk.paper_size.PaperSize] object with the given parameters.

Parameters

namethe paper name
displayNamethe human-readable name
widththe paper width, in units of unit
heightthe paper height, in units of unit
unitthe unit for width and height. not [gtk.types.Unit.None].

Returns

a new [gtk.paper_size.PaperSize] object, use [gtk.paper_size.PaperSize.free]

to free it