type Gtk_Print_Settings_Record is new GObject_Record with null record;
type Gtk_Print_Settings is access all Gtk_Print_Settings_Record'Class;
type Gtk_Page_Range_Array is array (Integer range <>) of Gtk_Page_Range_Record;
type Gtk_Print_Settings_Func is access procedure (Key : UTF8_String; Value : UTF8_String);
procedure Gtk_New
( | Self | : out Gtk_Print_Settings); |
procedure Initialize
( | Self | : not null access Gtk_Print_Settings_Record'Class); |
function Gtk_Print_Settings_New return Gtk_Print_Settings;
procedure Gtk_New_From_File
( | Self | : out Gtk_Print_Settings; |
File_Name | : UTF8_String); |
procedure Initialize_From_File
( | Self | : not null access Gtk_Print_Settings_Record'Class; |
File_Name | : UTF8_String); |
function Gtk_Print_Settings_New_From_File
( | File_Name | : UTF8_String) return Gtk_Print_Settings; |
procedure Gtk_New_From_Key_File
( | Self | : out Gtk_Print_Settings; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : UTF8_String := ""); |
procedure Initialize_From_Key_File
( | Self | : not null access Gtk_Print_Settings_Record'Class; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : UTF8_String := ""); |
function Gtk_Print_Settings_New_From_Key_File
( | Key_File | : Glib.Key_File.G_Key_File; |
Group_Name | : UTF8_String := "") return Gtk_Print_Settings; |
function Get_Type return Glib.GType;
function Copy
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk_Print_Settings; |
procedure Foreach
( | Self | : not null access Gtk_Print_Settings_Record; |
Func | : Gtk_Print_Settings_Func); |
function Get
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String) return UTF8_String; |
function Get_Bool
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String) return Boolean; |
procedure Set_Bool
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String; | |
Value | : Boolean); |
function Get_Collate
( | Self | : not null access Gtk_Print_Settings_Record) return Boolean; |
procedure Set_Collate
( | Self | : not null access Gtk_Print_Settings_Record; |
Collate | : Boolean); |
function Get_Default_Source
( | Self | : not null access Gtk_Print_Settings_Record) return UTF8_String; |
procedure Set_Default_Source
( | Self | : not null access Gtk_Print_Settings_Record; |
Default_Source | : UTF8_String); |
function Get_Dither
( | Self | : not null access Gtk_Print_Settings_Record) return UTF8_String; |
procedure Set_Dither
( | Self | : not null access Gtk_Print_Settings_Record; |
Dither | : UTF8_String); |
function Get_Double
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String) return Gdouble; |
procedure Set_Double
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String; | |
Value | : Gdouble); |
function Get_Double_With_Default
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String; | |
Def | : Gdouble) return Gdouble; |
function Get_Duplex
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Print_Duplex; |
procedure Set_Duplex
( | Self | : not null access Gtk_Print_Settings_Record; |
Duplex | : Gtk.Enums.Gtk_Print_Duplex); |
function Get_Finishings
( | Self | : not null access Gtk_Print_Settings_Record) return UTF8_String; |
procedure Set_Finishings
( | Self | : not null access Gtk_Print_Settings_Record; |
Finishings | : UTF8_String); |
function Get_Int
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String) return Gint; |
procedure Set_Int
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String; | |
Value | : Gint); |
function Get_Int_With_Default
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String; | |
Def | : Gint) return Gint; |
function Get_Length
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String; | |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
procedure Set_Length
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String; | |
Value | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
function Get_Media_Type
( | Self | : not null access Gtk_Print_Settings_Record) return UTF8_String; |
procedure Set_Media_Type
( | Self | : not null access Gtk_Print_Settings_Record; |
Media_Type | : UTF8_String); |
function Get_N_Copies
( | Self | : not null access Gtk_Print_Settings_Record) return Gint; |
procedure Set_N_Copies
( | Self | : not null access Gtk_Print_Settings_Record; |
Num_Copies | : Gint); |
function Get_Number_Up
( | Self | : not null access Gtk_Print_Settings_Record) return Gint; |
procedure Set_Number_Up
( | Self | : not null access Gtk_Print_Settings_Record; |
Number_Up | : Gint); |
function Get_Number_Up_Layout
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Number_Up_Layout; |
procedure Set_Number_Up_Layout
( | Self | : not null access Gtk_Print_Settings_Record; |
Number_Up_Layout | : Gtk.Enums.Gtk_Number_Up_Layout); |
function Get_Orientation
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Page_Orientation; |
procedure Set_Orientation
( | Self | : not null access Gtk_Print_Settings_Record; |
Orientation | : Gtk.Enums.Gtk_Page_Orientation); |
function Get_Output_Bin
( | Self | : not null access Gtk_Print_Settings_Record) return UTF8_String; |
procedure Set_Output_Bin
( | Self | : not null access Gtk_Print_Settings_Record; |
Output_Bin | : UTF8_String); |
function Get_Page_Ranges
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk_Page_Range_Array; |
procedure Set_Page_Ranges
( | Self | : not null access Gtk_Print_Settings_Record; |
Page_Ranges | : Gtk_Page_Range_Array); |
function Get_Page_Set
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Page_Set; |
procedure Set_Page_Set
( | Self | : not null access Gtk_Print_Settings_Record; |
Page_Set | : Gtk.Enums.Gtk_Page_Set); |
function Get_Paper_Height
( | Self | : not null access Gtk_Print_Settings_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
procedure Set_Paper_Height
( | Self | : not null access Gtk_Print_Settings_Record; |
Height | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
function Get_Paper_Size
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk.Paper_Size.Gtk_Paper_Size; |
procedure Set_Paper_Size
( | Self | : not null access Gtk_Print_Settings_Record; |
Paper_Size | : Gtk.Paper_Size.Gtk_Paper_Size); |
function Get_Paper_Width
( | Self | : not null access Gtk_Print_Settings_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
procedure Set_Paper_Width
( | Self | : not null access Gtk_Print_Settings_Record; |
Width | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
function Get_Print_Pages
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Print_Pages; |
procedure Set_Print_Pages
( | Self | : not null access Gtk_Print_Settings_Record; |
Pages | : Gtk.Enums.Gtk_Print_Pages); |
function Get_Printer
( | Self | : not null access Gtk_Print_Settings_Record) return UTF8_String; |
procedure Set_Printer
( | Self | : not null access Gtk_Print_Settings_Record; |
Printer | : UTF8_String); |
function Get_Printer_Lpi
( | Self | : not null access Gtk_Print_Settings_Record) return Gdouble; |
procedure Set_Printer_Lpi
( | Self | : not null access Gtk_Print_Settings_Record; |
Lpi | : Gdouble); |
function Get_Quality
( | Self | : not null access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Print_Quality; |
procedure Set_Quality
( | Self | : not null access Gtk_Print_Settings_Record; |
Quality | : Gtk.Enums.Gtk_Print_Quality); |
function Get_Resolution
( | Self | : not null access Gtk_Print_Settings_Record) return Gint; |
procedure Set_Resolution
( | Self | : not null access Gtk_Print_Settings_Record; |
Resolution | : Gint); |
function Get_Resolution_X
( | Self | : not null access Gtk_Print_Settings_Record) return Gint; |
function Get_Resolution_Y
( | Self | : not null access Gtk_Print_Settings_Record) return Gint; |
function Get_Reverse
( | Self | : not null access Gtk_Print_Settings_Record) return Boolean; |
procedure Set_Reverse
( | Self | : not null access Gtk_Print_Settings_Record; |
Gtk_Reverse | : Boolean); |
function Get_Scale
( | Self | : not null access Gtk_Print_Settings_Record) return Gdouble; |
procedure Set_Scale
( | Self | : not null access Gtk_Print_Settings_Record; |
Scale | : Gdouble); |
function Get_Use_Color
( | Self | : not null access Gtk_Print_Settings_Record) return Boolean; |
procedure Set_Use_Color
( | Self | : not null access Gtk_Print_Settings_Record; |
Use_Color | : Boolean); |
function Has_Key
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String) return Boolean; |
function Load_File
( | Self | : not null access Gtk_Print_Settings_Record; |
File_Name | : UTF8_String) return Boolean; |
function Load_Key_File
( | Self | : not null access Gtk_Print_Settings_Record; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : UTF8_String := "") return Boolean; |
procedure Set
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String; | |
Value | : UTF8_String := ""); |
procedure Set_Resolution_Xy
( | Self | : not null access Gtk_Print_Settings_Record; |
Resolution_X | : Gint; | |
Resolution_Y | : Gint); |
function To_File
( | Self | : not null access Gtk_Print_Settings_Record; |
File_Name | : UTF8_String) return Boolean; |
procedure To_Key_File
( | Self | : not null access Gtk_Print_Settings_Record; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : UTF8_String); |
procedure Unset
( | Self | : not null access Gtk_Print_Settings_Record; |
Key | : UTF8_String); |
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. <!-- TODO example of getting, storing and setting settings --> Printing support was added in GTK+ 2.10.