type Gtk_Page_Setup_Record is new Glib.Object.GObject_Record with private;
type Gtk_Page_Setup is access all Gtk_Page_Setup_Record'Class;
function Get_Type return GType;
procedure Gtk_New
( | Widget | : out Gtk_Page_Setup); |
procedure Initialize
( | Widget | : access Gtk_Page_Setup_Record'Class); |
procedure Gtk_New_From_File
( | Widget | : out Gtk_Page_Setup; |
File_Name | : String; | |
Error | : Glib.Error.GError := null); |
procedure Initialize_From_File
( | Widget | : access Gtk_Page_Setup_Record'Class; |
File_Name | : String; | |
Error | : Glib.Error.GError := null); |
procedure Gtk_New_From_Key_File
( | Widget | : out Gtk_Page_Setup; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""; | |
Error | : Glib.Error.GError := null); |
procedure Initialize_From_Key_File
( | Widget | : access Gtk_Page_Setup_Record'Class; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""; | |
Error | : Glib.Error.GError := null); |
function Load_File
( | Setup | : access Gtk_Page_Setup_Record; |
File_Name | : String; | |
Error | : Glib.Error.GError := null) return Boolean; |
function Load_Key_File
( | Setup | : access Gtk_Page_Setup_Record; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""; | |
Error | : Glib.Error.GError := null) return Boolean; |
function To_File
( | Setup | : access Gtk_Page_Setup_Record; |
File_Name | : String; | |
Error | : Glib.Error.GError := null) return Boolean; |
procedure To_Key_File
( | Setup | : access Gtk_Page_Setup_Record; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""); |
function Copy
( | Other | : access Gtk_Page_Setup_Record) return Gtk_Page_Setup; |
function Get_Bottom_Margin
( | Setup | : access Gtk_Page_Setup_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Left_Margin
( | Setup | : access Gtk_Page_Setup_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Right_Margin
( | Setup | : access Gtk_Page_Setup_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Top_Margin
( | Setup | : access Gtk_Page_Setup_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
procedure Set_Bottom_Margin
( | Setup | : access Gtk_Page_Setup_Record; |
Margin | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
procedure Set_Left_Margin
( | Setup | : access Gtk_Page_Setup_Record; |
Margin | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
procedure Set_Right_Margin
( | Setup | : access Gtk_Page_Setup_Record; |
Margin | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
procedure Set_Top_Margin
( | Setup | : access Gtk_Page_Setup_Record; |
Margin | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
function Get_Page_Height
( | Setup | : access Gtk_Page_Setup_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Page_Width
( | Setup | : access Gtk_Page_Setup_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Paper_Size
( | Setup | : access Gtk_Page_Setup_Record) return Gtk.Paper_Size.Gtk_Paper_Size; |
procedure Set_Paper_Size
( | Setup | : access Gtk_Page_Setup_Record; |
Size | : Gtk.Paper_Size.Gtk_Paper_Size); |
procedure Set_Paper_Size_And_Default_Margins
( | Setup | : access Gtk_Page_Setup_Record; |
Size | : Gtk.Paper_Size.Gtk_Paper_Size); |
function Get_Paper_Height
( | Setup | : access Gtk_Page_Setup_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Paper_Width
( | Setup | : access Gtk_Page_Setup_Record; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Orientation
( | Setup | : access Gtk_Page_Setup_Record) return Gtk.Enums.Gtk_Page_Orientation; |
procedure Set_Orientation
( | Setup | : access Gtk_Page_Setup_Record; |
Orientation | : Gtk.Enums.Gtk_Page_Orientation); |
A Gtk_Page_Setup object stores the page size, orientation and margins. The idea is that you can get one of these from the page setup dialog and then pass it to the Gtk_Print_Operation when printing. The benefit of splitting this out of the Gtk_Print_Settings is that these affect the actual layout of the page, and thus need to be set long before user prints.
The margins specified in this object are the "print margins", i.e. the parts of the page that the printer cannot print on. These are different from the layout margins that a word processor uses; they are typically used to determine the minimal size for the layout margins.
To obtain a Gtk_Page_Setup use Gtk_New to get the defaults, or use Gtk_Print_Run_Page_Setup_Dialog to show the page setup dialog and receive the resulting page setup.
Binding from C File version 2.16.6