PageSetupUnixDialog

GtkPageSetupUnixDialog implements a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix.

An example GtkPageSetupUnixDialog

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 [class@Gtk.PrintOperation].

Constructors

this
this(GtkPageSetupUnixDialog* gtkPageSetupUnixDialog, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string title, Window parent)

Creates a new page setup dialog.

Members

Functions

getPageSetup
PageSetup getPageSetup()

Gets the currently selected page setup from the dialog.

getPageSetupUnixDialogStruct
GtkPageSetupUnixDialog* getPageSetupUnixDialogStruct(bool transferOwnership)

Get the main Gtk struct

getPrintSettings
PrintSettings getPrintSettings()

Gets the current print settings from the dialog.

getStruct
void* getStruct()

the main Gtk struct as a void*

setPageSetup
void setPageSetup(PageSetup pageSetup)

Sets the GtkPageSetup from which the page setup dialog takes its values.

setPrintSettings
void setPrintSettings(PrintSettings printSettings)

Sets the GtkPrintSettings from which the page setup dialog takes its values.

Static functions

getType
GType getType()

Variables

gtkPageSetupUnixDialog
GtkPageSetupUnixDialog* gtkPageSetupUnixDialog;

the main Gtk struct

Inherited Members

From Dialog

gtkDialog
GtkDialog* gtkDialog;

the main Gtk struct

getDialogStruct
GtkDialog* getDialogStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

addButtons
void addButtons(string[] buttonsText, ResponseType[] responses)
getType
GType getType()
addActionWidget
void addActionWidget(Widget child, int responseId)

Adds an activatable widget to the action area of a GtkDialog.

addButton
Widget addButton(string buttonText, int responseId)

Adds a button with the given text.

getContentArea
Box getContentArea()

Returns the content area of @dialog.

getHeaderBar
HeaderBar getHeaderBar()

Returns the header bar of @dialog.

getResponseForWidget
int getResponseForWidget(Widget widget)

Gets the response id of a widget in the action area of a dialog.

getWidgetForResponse
Widget getWidgetForResponse(int responseId)

Gets the widget button that uses the given response ID in the action area of a dialog.

response
void response(int responseId)

Emits the ::response signal with the given response ID.

setDefaultResponse
void setDefaultResponse(int responseId)

Sets the default widget for the dialog based on the response ID.

setResponseSensitive
void setResponseSensitive(int responseId, bool setting)

A convenient way to sensitize/desensitize dialog buttons.

addOnClose
gulong addOnClose(void delegate(Dialog) dlg, ConnectFlags connectFlags)

Emitted when the user uses a keybinding to close the dialog.

addOnResponse
gulong addOnResponse(void delegate(int, Dialog) dlg, ConnectFlags connectFlags)

Emitted when an action widget is clicked.

Meta