package Gtk_Paper_Size_Glist is new Generic_List (Gtk.Paper_Size.Gtk_Paper_Size);
type Gtk_Paper_Size is new Glib.C_Boxed with null record;
Null_Gtk_Paper_Size : constant Gtk_Paper_Size;
Gtk_Paper_Name_A3 : constant String := "iso_a3";
function From_Object
( | Object | : System.Address) return Gtk_Paper_Size; |
function From_Object_Free
( | B | : access Gtk_Paper_Size'Class) return Gtk_Paper_Size; |
procedure Gtk_New
( | Widget | : out Gtk_Paper_Size; |
Name | : UTF8_String := ""); |
function Gtk_Paper_Size_New
( | Name | : UTF8_String := "") return Gtk_Paper_Size; |
procedure Gtk_New_Custom
( | Widget | : out Gtk_Paper_Size; |
Name | : UTF8_String; | |
Display_Name | : UTF8_String; | |
Width | : Gdouble; | |
Height | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
function Gtk_Paper_Size_New_Custom
( | Name | : UTF8_String; |
Display_Name | : UTF8_String; | |
Width | : Gdouble; | |
Height | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit) return Gtk_Paper_Size; |
procedure Gtk_New_From_Key_File
( | Widget | : out Gtk_Paper_Size; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : UTF8_String); |
function Gtk_Paper_Size_New_From_Key_File
( | Key_File | : Glib.Key_File.G_Key_File; |
Group_Name | : UTF8_String) return Gtk_Paper_Size; |
procedure Gtk_New_From_Ppd
( | Widget | : out Gtk_Paper_Size; |
Ppd_Name | : UTF8_String; | |
Ppd_Display_Name | : UTF8_String; | |
Width | : Gdouble; | |
Height | : Gdouble); |
function Gtk_Paper_Size_New_From_Ppd
( | Ppd_Name | : UTF8_String; |
Ppd_Display_Name | : UTF8_String; | |
Width | : Gdouble; | |
Height | : Gdouble) return Gtk_Paper_Size; |
function Get_Type return Glib.GType;
function Copy
( | Widget | : Gtk_Paper_Size) return Gtk_Paper_Size; |
procedure Free
( | Widget | : Gtk_Paper_Size); |
function Get_Default_Bottom_Margin
( | Widget | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Default_Left_Margin
( | Widget | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Default_Right_Margin
( | Widget | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Default_Top_Margin
( | Widget | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Display_Name
( | Widget | : Gtk_Paper_Size) return UTF8_String; |
function Get_Height
( | Widget | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Get_Name
( | Widget | : Gtk_Paper_Size) return UTF8_String; |
function Get_Ppd_Name
( | Widget | : Gtk_Paper_Size) return UTF8_String; |
function Get_Width
( | Widget | : Gtk_Paper_Size; |
Unit | : Gtk.Enums.Gtk_Unit) return Gdouble; |
function Is_Custom
( | Widget | : Gtk_Paper_Size) return Boolean; |
function Is_Equal
( | Widget | : Gtk_Paper_Size; |
Size2 | : Gtk_Paper_Size) return Boolean; |
procedure Set_Size
( | Widget | : Gtk_Paper_Size; |
Width | : Gdouble; | |
Height | : Gdouble; | |
Unit | : Gtk.Enums.Gtk_Unit); |
procedure To_Key_File
( | Widget | : Gtk_Paper_Size; |
Key_File | : Glib.Key_File.G_Key_File; | |
Group_Name | : UTF8_String); |
function Convert
( | R | : Gtk.Paper_Size.Gtk_Paper_Size) return System.Address; |
function Convert
( | R | : System.Address) return Gtk.Paper_Size.Gtk_Paper_Size; |
function Get_Default return UTF8_String;
function Get_Paper_Sizes
( | Include_Custom | : Boolean) return Gtk_Paper_Size_Glist.Glist; |
GtkPaperSize handles paper sizes. It uses the standard called <ulink url="http://www.pwg.org/standards.html">"PWG 5101.1-2002 PWG: Standard for Media Standardized Names"</ulink> to name the paper sizes (and to get the data for the page sizes). In addition to standard paper sizes, GtkPaperSize allows to construct custom paper sizes with arbitrary dimensions.
The Gtk.Paper_Size.Gtk_Paper_Size object stores not only the dimensions (width and height) of a paper size and its name, it also provides default <link linkend="print-margins">print margins</link>.
Printing support has been added in GTK+ 2.10.