Function

GtkPaperSizenew_custom

since: 2.10

Declaration [src]

GtkPaperSize*
gtk_paper_size_new_custom (
  const gchar* name,
  const gchar* display_name,
  gdouble width,
  gdouble height,
  GtkUnit unit
)

Description [src]

Creates a new GtkPaperSize object with the given parameters.

Available since: 2.10

Parameters

name

Type: const gchar*

The paper name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
display_name

Type: const gchar*

The human-readable name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
width

Type: gdouble

The paper width, in units of unit.

height

Type: gdouble

The paper height, in units of unit.

unit

Type: GtkUnit

The unit for width and height. not GTK_UNIT_NONE.

Return value

Type: GtkPaperSize

A new GtkPaperSize object, use gtk_paper_size_free() to free it.

The caller of the function takes ownership of the data, and is responsible for freeing it.