Class
GtkPrintSettings
Description [src]
final class Gtk.PrintSettings : GObject.Object
{
/* No available fields */
}
A GtkPrintSettings
object represents the settings of a print dialog in
a system-independent way.
The main use for this object is that once you’ve printed you can get a settings object that represents the settings the user chose, and the next time you print you can pass that object in so that the user doesn’t have to re-set all his settings.
Its also possible to enumerate the settings so that you can easily save the settings for the next time your app runs, or even store them in a document. The predefined keys try to use shared values as much as possible so that moving such a document between systems still works.
Constructors
gtk_print_settings_new_from_key_file
Reads the print settings from the group group_name
in key_file
.
Instance methods
gtk_print_settings_get_bool
Returns the boolean represented by the value
that is associated with key
.
gtk_print_settings_get_double_with_default
Returns the floating point number represented by
the value that is associated with key
, or default_val
if the value does not represent a floating point number.
gtk_print_settings_get_int_with_default
Returns the value of key
, interpreted as
an integer, or the default value.
gtk_print_settings_get_orientation
Get the value of GTK_PRINT_SETTINGS_ORIENTATION
,
converted to a GtkPageOrientation
.
gtk_print_settings_get_paper_height
Gets the value of GTK_PRINT_SETTINGS_PAPER_HEIGHT
,
converted to unit
.
gtk_print_settings_get_paper_size
Gets the value of GTK_PRINT_SETTINGS_PAPER_FORMAT
,
converted to a GtkPaperSize
.
gtk_print_settings_get_paper_width
Gets the value of GTK_PRINT_SETTINGS_PAPER_WIDTH
,
converted to unit
.
gtk_print_settings_get_printer
Convenience function to obtain the value of
GTK_PRINT_SETTINGS_PRINTER
.
gtk_print_settings_set_paper_size
Sets the value of GTK_PRINT_SETTINGS_PAPER_FORMAT
,
GTK_PRINT_SETTINGS_PAPER_WIDTH
and
GTK_PRINT_SETTINGS_PAPER_HEIGHT
.
gtk_print_settings_set_resolution
Sets the values of GTK_PRINT_SETTINGS_RESOLUTION
,
GTK_PRINT_SETTINGS_RESOLUTION_X
and
GTK_PRINT_SETTINGS_RESOLUTION_Y
.
gtk_print_settings_set_resolution_xy
Sets the values of GTK_PRINT_SETTINGS_RESOLUTION
,
GTK_PRINT_SETTINGS_RESOLUTION_X
and
GTK_PRINT_SETTINGS_RESOLUTION_Y
.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.