package Gtk_Paper_Size_Glist is new Glib.Glist.Generic_List (Gtk_Paper_Size);
type Gtk_Paper_Size is new Glib.C_Proxy;
Gtk_Paper_Name_A3 : constant String := "iso_a3";
function Convert is new Ada.Unchecked_Conversion
( | Gtk_Paper_Size, System.Address); |
function Convert is new Ada.Unchecked_Conversion
( | System.Address, Gtk_Paper_Size); |
function Get_Type return GType;
procedure Gtk_New
( | Widget | : out Gtk_Paper_Size; |
Name | : String); |
procedure Gtk_New_Custom
( | Widget | : out Gtk_Paper_Size; |
Name | : String; | |
Display_Name | : String; | |
Width | : Gdouble; | |
Height | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
procedure Gtk_New_From_Key_File
( | Widget | : out Gtk_Paper_Size; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""); |
procedure Gtk_New_From_Ppd
( | Widget | : out Gtk_Paper_Size; |
Ppd_Name | : String; | |
Ppd_Display_Name | : String := ""; | |
Width | : Gdouble; | |
Height | : Gdouble); |
procedure To_Key_File
( | Size | : Gtk_Paper_Size; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : String := ""); |
function Copy
( | Other | : Gtk_Paper_Size) return Gtk_Paper_Size; |
function Get_Default return String;
function Get_Name
( | Size | : Gtk_Paper_Size) return String; |
function Get_Display_Name
( | Size | : Gtk_Paper_Size) return String; |
function Get_Ppd_Name
( | Size | : Gtk_Paper_Size) return String; |
function Is_Custom
( | Size | : Gtk_Paper_Size) return Boolean; |
function Get_Width
( | Size | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Height
( | Size | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
procedure Set_Size
( | Size | : Gtk_Paper_Size; |
Width | : Gdouble; | |
Height | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
function Get_Paper_Sizes
( | Include_Custom | : Boolean) return Gtk_Paper_Size_Glist.Glist; |
function Get_Default_Bottom_Margin
( | Size | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Default_Left_Margin
( | Size | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Default_Right_Margin
( | Size | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Default_Top_Margin
( | Size | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
Gtk_Paper_Size handles paper sizes. It uses the standard called "PWG 5101.1-2002 PWG: Standard for Media Standardized Names" to name the paper sizes (and to get the data for the page sizes). In addition to standard paper sizes, Gtk_Paper_Size allows to construct custom paper sizes with arbitrary dimensions.
The Gtk_Paper_Size object stores not only the dimensions (width and height) of a paper size and its name, it also provides default print margins.
Binding from C File version 2.16.6