PrintSettings
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.
Skipped during bindings generation
parameter
num_ranges
: num_ranges: Out parameter is not supportedparameter
page_ranges
: PageRange
Constructors
Creates a new GtkPrintSettings
object.
Reads the print settings from @file_name.
Deserialize print settings from an a{sv} variant.
Reads the print settings from the group @group_name in @key_file.
Functions
Copies a GtkPrintSettings
object.
Calls @func for each key-value pair of @settings.
Gets the value of %GTK_PRINT_SETTINGS_COLLATE.
Gets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE.
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.
Gets the value of %GTK_PRINT_SETTINGS_DUPLEX.
Gets the value of %GTK_PRINT_SETTINGS_FINISHINGS.
Returns the value of @key, interpreted as an integer, or the default value.
Gets the value of %GTK_PRINT_SETTINGS_MEDIA_TYPE.
Gets the value of %GTK_PRINT_SETTINGS_N_COPIES.
Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP.
Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT.
Get the value of %GTK_PRINT_SETTINGS_ORIENTATION, converted to a GtkPageOrientation
.
Gets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN.
Gets the value of %GTK_PRINT_SETTINGS_PAGE_SET.
Gets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT, converted to @unit.
Gets the value of %GTK_PRINT_SETTINGS_PAPER_FORMAT, converted to a GtkPaperSize
.
Gets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH, converted to @unit.
Convenience function to obtain the value of %GTK_PRINT_SETTINGS_PRINTER.
Gets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI.
Gets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES.
Gets the value of %GTK_PRINT_SETTINGS_QUALITY.
Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION.
Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_X.
Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_Y.
Gets the value of %GTK_PRINT_SETTINGS_REVERSE.
Gets the value of %GTK_PRINT_SETTINGS_USE_COLOR.
Reads the print settings from the group @group_name in @key_file.
Sets the value of %GTK_PRINT_SETTINGS_COLLATE.
Sets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE.
Sets the value of %GTK_PRINT_SETTINGS_DUPLEX.
Sets the value of %GTK_PRINT_SETTINGS_FINISHINGS.
Sets the value of %GTK_PRINT_SETTINGS_MEDIA_TYPE.
Sets the value of %GTK_PRINT_SETTINGS_N_COPIES.
Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP.
Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT.
Sets the value of %GTK_PRINT_SETTINGS_ORIENTATION.
Sets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN.
Sets the value of %GTK_PRINT_SETTINGS_PAGE_SET.
Sets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT.
Sets the value of %GTK_PRINT_SETTINGS_PAPER_FORMAT, %GTK_PRINT_SETTINGS_PAPER_WIDTH and %GTK_PRINT_SETTINGS_PAPER_HEIGHT.
Sets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH.
Convenience function to set %GTK_PRINT_SETTINGS_PRINTER to @printer.
Sets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI.
Sets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES.
Sets the value of %GTK_PRINT_SETTINGS_QUALITY.
Sets the values of %GTK_PRINT_SETTINGS_RESOLUTION, %GTK_PRINT_SETTINGS_RESOLUTION_X and %GTK_PRINT_SETTINGS_RESOLUTION_Y.
Sets the values of %GTK_PRINT_SETTINGS_RESOLUTION, %GTK_PRINT_SETTINGS_RESOLUTION_X and %GTK_PRINT_SETTINGS_RESOLUTION_Y.
Sets the value of %GTK_PRINT_SETTINGS_REVERSE.
Sets the value of %GTK_PRINT_SETTINGS_USE_COLOR.
Serialize print settings to an a{sv} variant.