type Gtk_Print_Settings_Record is new Glib.Object.GObject_Record with private;
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;
function Get_Type return GType;
procedure Gtk_New
( | Widget | : out Gtk_Print_Settings); |
procedure Initialize
( | Widget | : access Gtk_Print_Settings_Record'Class); |
procedure Gtk_New_From_File
( | Widget | : out Gtk_Print_Settings; |
File_Name | : String; | |
Error | : Glib.Error.GError := null); |
procedure Initialize_From_File
( | Widget | : access Gtk_Print_Settings_Record'Class; |
File_Name | : String; | |
Error | : Glib.Error.GError := null); |
procedure Gtk_New_From_Key_File
( | Widget | : out Gtk_Print_Settings; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""; | |
Error | : Glib.Error.GError := null); |
procedure Initialize_From_Key_File
( | Widget | : access Gtk_Print_Settings_Record'Class; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""; | |
Error | : Glib.Error.GError := null); |
function Copy
( | Other | : access Gtk_Print_Settings_Record) return Gtk_Print_Settings; |
function Has_Key
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String) return Boolean; |
function Get
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String) return String; |
procedure Set
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String; | |
Value | : String := ""); |
procedure Unset
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String); |
function Get_Bool
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String) return Boolean; |
procedure Set_Bool
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String; | |
Value | : Boolean); |
function Get_Double
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String; | |
Def | : Gdouble := 0.0) return Gdouble; |
procedure Set_Double
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String; | |
Value | : Gdouble); |
function Get_Int
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String; | |
Def | : Gint := 0) return Gint; |
procedure Set_Int
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String; | |
Value | : Gint); |
function Get_Length
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String; | |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
procedure Set_Length
( | Settings | : access Gtk_Print_Settings_Record; |
Key | : String; | |
Value | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
function Get_Collate
( | Settings | : access Gtk_Print_Settings_Record) return Boolean; |
procedure Set_Collate
( | Settings | : access Gtk_Print_Settings_Record; |
Collate | : Boolean); |
function Get_Default_Source
( | Settings | : access Gtk_Print_Settings_Record) return String; |
procedure Set_Default_Source
( | Settings | : access Gtk_Print_Settings_Record; |
Default_Source | : String); |
function Get_Dither
( | Settings | : access Gtk_Print_Settings_Record) return String; |
procedure Set_Dither
( | Settings | : access Gtk_Print_Settings_Record; |
Dither | : String); |
function Get_Duplex
( | Settings | : access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Print_Duplex; |
procedure Set_Duplex
( | Settings | : access Gtk_Print_Settings_Record; |
Duplex | : Gtk.Enums.Gtk_Print_Duplex); |
function Get_Finishings
( | Settings | : access Gtk_Print_Settings_Record) return String; |
procedure Set_Finishings
( | Settings | : access Gtk_Print_Settings_Record; |
Finishings | : String); |
function Get_Media_Type
( | Settings | : access Gtk_Print_Settings_Record) return String; |
procedure Set_Media_Type
( | Settings | : access Gtk_Print_Settings_Record; |
Media_Type | : String); |
function Get_N_Copies
( | Settings | : access Gtk_Print_Settings_Record) return Gint; |
procedure Set_N_Copies
( | Settings | : access Gtk_Print_Settings_Record; |
Num_Copies | : Gint); |
function Get_Number_Up
( | Settings | : access Gtk_Print_Settings_Record) return Gint; |
procedure Set_Number_Up
( | Settings | : access Gtk_Print_Settings_Record; |
Number_Up | : Gint); |
function Get_Number_Up_Layout
( | Settings | : access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Number_Up_Layout; |
procedure Set_Number_Up_Layout
( | Settings | : access Gtk_Print_Settings_Record; |
Number_Up_Layout | : Gtk.Enums.Gtk_Number_Up_Layout); |
function Get_Orientation
( | Settings | : access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Page_Orientation; |
procedure Set_Orientation
( | Settings | : access Gtk_Print_Settings_Record; |
Orientation | : Gtk.Enums.Gtk_Page_Orientation); |
function Get_Output_Bin
( | Settings | : access Gtk_Print_Settings_Record) return String; |
procedure Set_Output_Bin
( | Settings | : access Gtk_Print_Settings_Record; |
Output_Bin | : String); |
function Get_Page_Ranges
( | Settings | : access Gtk_Print_Settings_Record) return Gtk_Page_Range_Array; |
procedure Set_Page_Ranges
( | Settings | : access Gtk_Print_Settings_Record; |
Page_Ranges | : access Gtk_Page_Range_Array); |
function Get_Page_Set
( | Settings | : access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Page_Set; |
procedure Set_Page_Set
( | Settings | : access Gtk_Print_Settings_Record; |
Page_Set | : Gtk.Enums.Gtk_Page_Set); |
function Get_Paper_Height
( | Settings | : access Gtk_Print_Settings_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Paper_Width
( | Settings | : access Gtk_Print_Settings_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
procedure Set_Paper_Height
( | Settings | : access Gtk_Print_Settings_Record; |
Height | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
procedure Set_Paper_Width
( | Settings | : access Gtk_Print_Settings_Record; |
Width | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
function Get_Paper_Size
( | Settings | : access Gtk_Print_Settings_Record) return Gtk.Paper_Size.Gtk_Paper_Size; |
procedure Set_Paper_Size
( | Settings | : access Gtk_Print_Settings_Record; |
Paper_Size | : Gtk.Paper_Size.Gtk_Paper_Size); |
function Get_Print_Pages
( | Settings | : access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Print_Pages; |
procedure Set_Print_Pages
( | Settings | : access Gtk_Print_Settings_Record; |
Pages | : Gtk.Enums.Gtk_Print_Pages); |
function Get_Printer
( | Settings | : access Gtk_Print_Settings_Record) return String; |
procedure Set_Printer
( | Settings | : access Gtk_Print_Settings_Record; |
Printer | : String); |
function Get_Printer_Lpi
( | Settings | : access Gtk_Print_Settings_Record) return Gdouble; |
procedure Set_Printer_Lpi
( | Settings | : access Gtk_Print_Settings_Record; |
Lpi | : Gdouble); |
function Get_Quality
( | Settings | : access Gtk_Print_Settings_Record) return Gtk.Enums.Gtk_Print_Quality; |
procedure Set_Quality
( | Settings | : access Gtk_Print_Settings_Record; |
Quality | : Gtk.Enums.Gtk_Print_Quality); |
function Get_Resolution
( | Settings | : access Gtk_Print_Settings_Record) return Gint; |
procedure Set_Resolution
( | Settings | : access Gtk_Print_Settings_Record; |
Resolution | : Gint); |
function Get_Resolution_X
( | Settings | : access Gtk_Print_Settings_Record) return Gint; |
function Get_Resolution_Y
( | Settings | : access Gtk_Print_Settings_Record) return Gint; |
procedure Set_Resolution_XY
( | Settings | : access Gtk_Print_Settings_Record; |
Resolution_X | : Gint; | |
Resolution_Y | : Gint); |
function Get_Reverse
( | Settings | : access Gtk_Print_Settings_Record) return Boolean; |
procedure Set_Reverse
( | Settings | : access Gtk_Print_Settings_Record; |
Rev | : Boolean); |
function Get_Scale
( | Settings | : access Gtk_Print_Settings_Record) return Gdouble; |
procedure Set_Scale
( | Settings | : access Gtk_Print_Settings_Record; |
Scale | : Gdouble); |
function Get_Use_Color
( | Settings | : access Gtk_Print_Settings_Record) return Boolean; |
procedure Set_Use_Color
( | Settings | : access Gtk_Print_Settings_Record; |
Use_Color | : Boolean); |
function Load_File
( | Settings | : access Gtk_Print_Settings_Record; |
File_Name | : String; | |
Error | : Glib.Error.GError := null) return Boolean; |
function Load_Key_File
( | Settings | : access Gtk_Print_Settings_Record; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""; | |
Error | : Glib.Error.GError := null) return Boolean; |
function To_File
( | Settings | : access Gtk_Print_Settings_Record; |
File_Name | : String; | |
Error | : Glib.Error.GError := null) return Boolean; |
procedure To_Key_File
( | Settings | : access Gtk_Print_Settings_Record; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""); |
A Gtk_Print_Settings 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.
It's 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.
Binding from C File version 2.16.6