Method

Gtk.Printer.get_hard_margins

Declaration [src]

gboolean
gtk_printer_get_hard_margins (
  GtkPrinter* printer,
  double* top,
  double* bottom,
  double* left,
  double* right
)

Description [src]

Retrieve the hard margins of printer.

These are the margins that define the area at the borders of the paper that the printer cannot print to.

Note: This will not succeed unless the printer’s details are available, see gtk_printer_has_details() and gtk_printer_request_details().

Parameters

top double*
 

a location to store the top margin in

 Direction: out
 Ownership of the data is transferred to the callee
bottom double*
 

a location to store the bottom margin in

 Direction: out
 Ownership of the data is transferred to the callee
left double*
 

a location to store the left margin in

 Direction: out
 Ownership of the data is transferred to the callee
right double*
 

a location to store the right margin in

 Direction: out
 Ownership of the data is transferred to the callee

Return value

Returns: gboolean

TRUE iff the hard margins were retrieved