Presents a page setup dialog for platforms which don't provide a native page setup dialog, like Unix.
<picture> <source srcset="pagesetupdialog-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkPageSetupUnixDialog" src="pagesetupdialog.png"> </picture> It can be used very much like any other GTK dialog, at the cost of the portability offered by the high-level printing API in [classGtk.PrintOperation].
## CSS nodes
GtkPageSetupUnixDialog has a single CSS node with the name window and style class .pagesetup.
<group>Printing</group> <gtkada_demo>create_print.adb</gtkada_demo>
function "+"
(Widget : access Gtk_Page_Setup_Unix_Dialog_Record'Class)
return Gtk.Accessible.Gtk_Accessible
function "+"
(Widget : access Gtk_Page_Setup_Unix_Dialog_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "+"
(Widget : access Gtk_Page_Setup_Unix_Dialog_Record'Class)
return Gtk.Constraint_Target.Gtk_Constraint_Target
function "+"
(Widget : access Gtk_Page_Setup_Unix_Dialog_Record'Class)
return Gtk.Native.Gtk_Native
function "+"
(Widget : access Gtk_Page_Setup_Unix_Dialog_Record'Class)
return Gtk.Root.Gtk_Root
function "+"
(Widget : access Gtk_Page_Setup_Unix_Dialog_Record'Class)
return Gtk.Shortcut_Manager.Gtk_Shortcut_Manager
function "-"
(Interf : Gtk.Accessible.Gtk_Accessible)
return Gtk_Page_Setup_Unix_Dialog
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Page_Setup_Unix_Dialog
function "-"
(Interf : Gtk.Constraint_Target.Gtk_Constraint_Target)
return Gtk_Page_Setup_Unix_Dialog
function "-"
(Interf : Gtk.Native.Gtk_Native)
return Gtk_Page_Setup_Unix_Dialog
function "-"
(Interf : Gtk.Root.Gtk_Root)
return Gtk_Page_Setup_Unix_Dialog
function "-"
(Interf : Gtk.Shortcut_Manager.Gtk_Shortcut_Manager)
return Gtk_Page_Setup_Unix_Dialog
procedure Announce
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
Message : UTF8_String;
Priority : Gtk.Accessible.Gtk_Accessible_Announcement_Priority)
function Get_Accessible_Id
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return UTF8_String
function Get_Accessible_Parent
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Accessible_Role
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gtk.Accessible.Gtk_Accessible_Role
function Get_At_Context
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gtk.Atcontext.Gtk_Atcontext
function Get_Bounds
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
X : out Glib.Gint;
Y : out Glib.Gint;
Width : out Glib.Gint;
Height : out Glib.Gint) return Boolean
function Get_Display
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gdk.Gdk_Display
function Get_First_Accessible_Child
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Focus
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gtk.Widget.Gtk_Widget
function Get_Next_Accessible_Sibling
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gtk.Accessible.Gtk_Accessible
function Get_Page_Setup
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gtk.Page_Setup.Gtk_Page_Setup
Gets the currently selected page setup from the dialog.
the current page setup. Has transfer-ownership='full'.
function Get_Platform_State
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State) return Boolean
function Get_Print_Settings
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gtk.Print_Settings.Gtk_Print_Settings
Gets the current print settings from the dialog.
the current print settings. Has transfer-ownership='none'.
function Get_Surface
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
return Gdk.Gdk_Surface
procedure Get_Surface_Transform
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
X : out Gdouble;
Y : out Gdouble)
function Get_Type return Glib.GType
procedure Gtk_New
(Self : out Gtk_Page_Setup_Unix_Dialog;
Title : UTF8_String := "";
Parent : Gtk.Window.Gtk_Window := null)
Creates a new page setup dialog. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the title of the dialog
transient parent of the dialog
type Gtk_Page_Setup_Unix_Dialog is access all Gtk_Page_Setup_Unix_Dialog_Record'Class;
function Gtk_Page_Setup_Unix_Dialog_New
(Title : UTF8_String := "";
Parent : Gtk.Window.Gtk_Window := null)
return Gtk_Page_Setup_Unix_Dialog
Creates a new page setup dialog.
the title of the dialog
transient parent of the dialog
type Gtk_Page_Setup_Unix_Dialog_Record is new Gtk_Dialog_Record with null record;
package Implements_Gtk_Accessible is new Glib.Types.Implements
(Gtk.Accessible.Gtk_Accessible, Gtk_Page_Setup_Unix_Dialog_Record, Gtk_Page_Setup_Unix_Dialog);
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Page_Setup_Unix_Dialog_Record, Gtk_Page_Setup_Unix_Dialog);
package Implements_Gtk_Constraint_Target is new Glib.Types.Implements
(Gtk.Constraint_Target.Gtk_Constraint_Target, Gtk_Page_Setup_Unix_Dialog_Record, Gtk_Page_Setup_Unix_Dialog);
package Implements_Gtk_Native is new Glib.Types.Implements
(Gtk.Native.Gtk_Native, Gtk_Page_Setup_Unix_Dialog_Record, Gtk_Page_Setup_Unix_Dialog);
package Implements_Gtk_Root is new Glib.Types.Implements
(Gtk.Root.Gtk_Root, Gtk_Page_Setup_Unix_Dialog_Record, Gtk_Page_Setup_Unix_Dialog);
package Implements_Gtk_Shortcut_Manager is new Glib.Types.Implements
(Gtk.Shortcut_Manager.Gtk_Shortcut_Manager, Gtk_Page_Setup_Unix_Dialog_Record, Gtk_Page_Setup_Unix_Dialog);
procedure Initialize
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record'Class;
Title : UTF8_String := "";
Parent : Gtk.Window.Gtk_Window := null)
Creates a new page setup dialog. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the title of the dialog
transient parent of the dialog
procedure Realize
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
procedure Reset_Property
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
Property : Gtk.Accessible.Gtk_Accessible_Property)
procedure Reset_Relation
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
Relation : Gtk.Accessible.Gtk_Accessible_Relation)
procedure Reset_State
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
State : Gtk.Accessible.Gtk_Accessible_State)
procedure Set_Accessible_Parent
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
Parent : Gtk.Accessible.Gtk_Accessible;
Next_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Set_Focus
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
Focus : access Gtk.Widget.Gtk_Widget_Record'Class)
procedure Set_Page_Setup
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
Page_Setup : not null access Gtk.Page_Setup.Gtk_Page_Setup_Record'Class)
Sets the GtkPageSetup from which the page setup dialog takes its values.
a GtkPageSetup
procedure Set_Print_Settings
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
Print_Settings : access Gtk.Print_Settings.Gtk_Print_Settings_Record'Class)
Sets the GtkPrintSettings from which the page setup dialog takes its values.
a GtkPrintSettings
procedure Unrealize
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record)
procedure Update_Next_Accessible_Sibling
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
New_Sibling : Gtk.Accessible.Gtk_Accessible)
procedure Update_Platform_State
(Self : not null access Gtk_Page_Setup_Unix_Dialog_Record;
State : Gtk.Accessible.Gtk_Accessible_Platform_State)