CtkPageSetupUnixDialog: CTK+ 3 Reference Manual

## CtkPageSetupUnixDialog CtkPageSetupUnixDialog — A page setup dialog |

## Functions

CtkWidget * | ctk_page_setup_unix_dialog_new ()
void | ctk_page_setup_unix_dialog_set_page_setup ()
CtkPageSetup * | ctk_page_setup_unix_dialog_get_page_setup ()
void | ctk_page_setup_unix_dialog_set_print_settings ()
CtkPrintSettings * | ctk_page_setup_unix_dialog_get_print_settings ()

## Types and Values

struct | CtkPageSetupUnixDialog
struct | CtkPageSetupUnixDialogClass

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── CtkWidget
                ╰── CtkContainer
                    ╰── CtkBin
                        ╰── CtkWindow
                            ╰── CtkDialog
                                ╰── CtkPageSetupUnixDialog

## Implemented Interfaces

CtkPageSetupUnixDialog implements AtkImplementorIface and CtkBuildable.

## Includes

    #include <ctk/ctkunixprint.h>

## Description

CtkPageSetupUnixDialog implements a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix. It can be used very much like any other CTK+ dialog, at the cost of the portability offered by the high-level printing API

Printing support was added in CTK+ 2.10.

## Functions

### ctk_page_setup_unix_dialog_new ()

    CtkWidget *
    ctk_page_setup_unix_dialog_new (const gchar *title,
                                    CtkWindow *parent);

Creates a new page setup dialog.

#### Parameters

title | the title of the dialog, or `NULL`. | [allow-none]
parent | transient parent of the dialog, or `NULL`. | [allow-none]

#### Returns

the new CtkPageSetupUnixDialog

Since: 2.10

### ctk_page_setup_unix_dialog_set_page_setup ()

    void
    ctk_page_setup_unix_dialog_set_page_setup
                                   (CtkPageSetupUnixDialog *dialog,
                                    CtkPageSetup *page_setup);

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

#### Parameters

dialog | a CtkPageSetupUnixDialog |
page_setup | a CtkPageSetup |

Since: 2.10

### ctk_page_setup_unix_dialog_get_page_setup ()

    CtkPageSetup *
    ctk_page_setup_unix_dialog_get_page_setup
                                   (CtkPageSetupUnixDialog *dialog);

Gets the currently selected page setup from the dialog.

#### Parameters

dialog | a CtkPageSetupUnixDialog |

#### Returns

the current page setup.

[transfer none]

Since: 2.10

### ctk_page_setup_unix_dialog_set_print_settings ()

    void
    ctk_page_setup_unix_dialog_set_print_settings
                                   (CtkPageSetupUnixDialog *dialog,
                                    CtkPrintSettings *print_settings);

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

#### Parameters

dialog | a CtkPageSetupUnixDialog |
print_settings | a CtkPrintSettings |

Since: 2.10

### ctk_page_setup_unix_dialog_get_print_settings ()

    CtkPrintSettings *
    ctk_page_setup_unix_dialog_get_print_settings
                                   (CtkPageSetupUnixDialog *dialog);

Gets the current print settings from the dialog.

#### Parameters

dialog | a CtkPageSetupUnixDialog |

#### Returns

the current print settings.

[transfer none]

Since: 2.10

## Types and Values

### struct CtkPageSetupUnixDialog

    struct CtkPageSetupUnixDialog;

### struct CtkPageSetupUnixDialogClass

    struct CtkPageSetupUnixDialogClass {
      CtkDialogClass parent_class;
    };

#### Members