Copies a #GtkPrintSettings object.
Calls func for each key-value pair of settings.
Looks up the string value associated with key.
Returns the boolean represented by the value that is associated with key.
Gets the value of gtk.types.PRINT_SETTINGS_COLLATE.
Gets the value of gtk.types.PRINT_SETTINGS_DEFAULT_SOURCE.
Gets the value of gtk.types.PRINT_SETTINGS_DITHER.
Returns the double value associated with key, or 0.
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.types.PRINT_SETTINGS_DUPLEX.
Gets the value of gtk.types.PRINT_SETTINGS_FINISHINGS.
Returns the integer value of key, or 0.
Returns the value of key, interpreted as an integer, or the default value.
Returns the value associated with key, interpreted as a length. The returned value is converted to units.
Gets the value of gtk.types.PRINT_SETTINGS_MEDIA_TYPE.
Gets the value of gtk.types.PRINT_SETTINGS_N_COPIES.
Gets the value of gtk.types.PRINT_SETTINGS_NUMBER_UP.
Gets the value of gtk.types.PRINT_SETTINGS_NUMBER_UP_LAYOUT.
Get the value of gtk.types.PRINT_SETTINGS_ORIENTATION, converted to a #GtkPageOrientation.
Gets the value of gtk.types.PRINT_SETTINGS_OUTPUT_BIN.
Gets the value of gtk.types.PRINT_SETTINGS_PAGE_RANGES.
Gets the value of gtk.types.PRINT_SETTINGS_PAGE_SET.
Gets the value of gtk.types.PRINT_SETTINGS_PAPER_HEIGHT, converted to unit.
Gets the value of gtk.types.PRINT_SETTINGS_PAPER_FORMAT, converted to a #GtkPaperSize.
Gets the value of gtk.types.PRINT_SETTINGS_PAPER_WIDTH, converted to unit.
Gets the value of gtk.types.PRINT_SETTINGS_PRINT_PAGES.
Convenience function to obtain the value of gtk.types.PRINT_SETTINGS_PRINTER.
Gets the value of gtk.types.PRINT_SETTINGS_PRINTER_LPI.
Gets the value of gtk.types.PRINT_SETTINGS_QUALITY.
Gets the value of gtk.types.PRINT_SETTINGS_RESOLUTION.
Gets the value of gtk.types.PRINT_SETTINGS_RESOLUTION_X.
Gets the value of gtk.types.PRINT_SETTINGS_RESOLUTION_Y.
Gets the value of gtk.types.PRINT_SETTINGS_REVERSE.
Gets the value of gtk.types.PRINT_SETTINGS_SCALE.
Gets the value of gtk.types.PRINT_SETTINGS_USE_COLOR.
Returns true, if a value is associated with key.
Reads the print settings from file_name. If the file could not be loaded then error is set to either a #GFileError or #GKeyFileError. See gtk.print_settings.PrintSettings.toFile.
Reads the print settings from the group group_name in key_file. If the file could not be loaded then error is set to either a #GFileError or #GKeyFileError.
Returns this, for use in with statements.
Associates value with key.
Sets key to a boolean value.
Sets the value of gtk.types.PRINT_SETTINGS_COLLATE.
Sets the value of gtk.types.PRINT_SETTINGS_DEFAULT_SOURCE.
Sets the value of gtk.types.PRINT_SETTINGS_DITHER.
Sets key to a double value.
Sets the value of gtk.types.PRINT_SETTINGS_DUPLEX.
Sets the value of gtk.types.PRINT_SETTINGS_FINISHINGS.
Sets key to an integer value.
Associates a length in units of unit with key.
Sets the value of gtk.types.PRINT_SETTINGS_MEDIA_TYPE.
Sets the value of gtk.types.PRINT_SETTINGS_N_COPIES.
Sets the value of gtk.types.PRINT_SETTINGS_NUMBER_UP.
Sets the value of gtk.types.PRINT_SETTINGS_NUMBER_UP_LAYOUT.
Sets the value of gtk.types.PRINT_SETTINGS_ORIENTATION.
Sets the value of gtk.types.PRINT_SETTINGS_OUTPUT_BIN.
Sets the value of gtk.types.PRINT_SETTINGS_PAGE_RANGES.
Sets the value of gtk.types.PRINT_SETTINGS_PAGE_SET.
Sets the value of gtk.types.PRINT_SETTINGS_PAPER_HEIGHT.
Sets the value of gtk.types.PRINT_SETTINGS_PAPER_WIDTH.
Sets the value of gtk.types.PRINT_SETTINGS_PRINT_PAGES.
Convenience function to set gtk.types.PRINT_SETTINGS_PRINTER to printer.
Sets the value of gtk.types.PRINT_SETTINGS_PRINTER_LPI.
Sets the value of gtk.types.PRINT_SETTINGS_QUALITY.
Sets the value of gtk.types.PRINT_SETTINGS_REVERSE.
Sets the value of gtk.types.PRINT_SETTINGS_SCALE.
Sets the value of gtk.types.PRINT_SETTINGS_USE_COLOR.
This function saves the print settings from settings to file_name. If the file could not be loaded then error is set to either a #GFileError or #GKeyFileError.
Serialize print settings to an a{sv} variant.
This function adds the print settings from settings to key_file.
Removes any value associated with key. This has the same effect as setting the value to null.
Get builder for gtk.print_settings.PrintSettings
Reads the print settings from file_name. Returns a new #GtkPrintSettings object with the restored settings, or null if an error occurred. If the file could not be loaded then error is set to either a #GFileError or #GKeyFileError. See gtk.print_settings.PrintSettings.toFile.
Deserialize print settings from an a{sv} variant in the format produced by gtk.print_settings.PrintSettings.toGvariant.
Reads the print settings from the group group_name in key_file. Returns a new #GtkPrintSettings object with the restored settings, or null if an error occurred. If the file could not be loaded then error is set to either a #GFileError or #GKeyFileError.
Set the GObject of a D ObjectWrap wrapper.
Get a pointer to the underlying C object.
Calls g_object_ref() on a GObject.
Calls g_object_unref() on a GObject.
Get the GType of an object.
GObject GType property.
Convenience method to return this cast to a type. For use in D with statements.
Template to get the D object from a C GObject and cast it to the given D object type.
Connect a D closure to an object signal.
Template for setting a GObject property.
Template for getting a GObject property.
Creates a binding between source_property on source and target_property on target.
Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.
This function is intended for #GObject implementations to re-enforce a floating[floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling gobject.object.ObjectWrap.refSink.
Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.
Gets a named field from the objects table of associations (see gobject.object.ObjectWrap.setData).
Gets a property of an object.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata.
Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.
Checks whether object has a floating[floating-ref] reference.
Emits a "notify" signal for the property property_name on object.
Emits a "notify" signal for the property specified by pspec on object.
Increase the reference count of object, and possibly remove the floating[floating-ref] reference, if object has a floating reference.
Releases all references to other objects. This can be used to break reference cycles.
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
Sets a property on an object.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:
Reverts the effect of a previous call to gobject.object.ObjectWrap.freezeNotify. The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.
This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling gobject.closure.Closure.invalidate on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, gobject.object.ObjectWrap.ref_ and gobject.object.ObjectWrap.unref are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.
Connect to Notify signal.
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.
Printing support was added in GTK+ 2.10.