### Interface

# Gtk PrintOperationPreview

#### Description [src]

    interface Gtk.PrintOperationPreview : GObject.Object

The interface that is used to implement print preview.

A `GtkPrintOperationPreview` object is passed to the `GtkPrintOperation::preview` signal by `GtkPrintOperation`.

#### Prerequisite

In order to implement PrintOperationPreview, your type must inherit from`GObject`.

#### Implementations

- GtkPrintOperation

#### Instance methods

###### gtk_print_operation_preview_end_preview

Ends a preview.

###### gtk_print_operation_preview_is_selected

Returns whether the given page is included in the set of pages that have been selected for printing.

###### gtk_print_operation_preview_render_page

Renders a page to the preview.

#### Signals

###### Gtk.PrintOperationPreview::got-page-size

Emitted once for each page that gets rendered to the preview.

###### Gtk.PrintOperationPreview::ready

The ::ready signal gets emitted once per preview operation, before the first page is rendered.

#### Interface structure

    struct GtkPrintOperationPreviewIface {
      GTypeInterface g_iface;
      void (* ready) (
        GtkPrintOperationPreview* preview,
        GtkPrintContext* context
      );
      void (* got_page_size) (
        GtkPrintOperationPreview* preview,
        GtkPrintContext* context,
        GtkPageSetup* page_setup
      );
      void (* render_page) (
        GtkPrintOperationPreview* preview,
        int page_nr
      );
      gboolean (* is_selected) (
        GtkPrintOperationPreview* preview,
        int page_nr
      );
      void (* end_preview) (
        GtkPrintOperationPreview* preview
      );
      void (* _gtk_reserved1) (
    void
      );
      void (* _gtk_reserved2) (
    void
      );
      void (* _gtk_reserved3) (
    void
      );
      void (* _gtk_reserved4) (
    void
      );
      void (* _gtk_reserved5) (
    void
      );
      void (* _gtk_reserved6) (
    void
      );
      void (* _gtk_reserved7) (
    void
      );
      void (* _gtk_reserved8) (
    void
      );

    }

No description available.

###### Interface members

`g_iface`

    GTypeInterface

| No description available.

`ready`

    void (* ready) (
        GtkPrintOperationPreview* preview,
        GtkPrintContext* context
      )

| No description available.

`got_page_size`

    void (* got_page_size) (
        GtkPrintOperationPreview* preview,
        GtkPrintContext* context,
        GtkPageSetup* page_setup
      )

| No description available.

`render_page`

    void (* render_page) (
        GtkPrintOperationPreview* preview,
        int page_nr
      )

| No description available.

`is_selected`

    gboolean (* is_selected) (
        GtkPrintOperationPreview* preview,
        int page_nr
      )

| No description available.

`end_preview`

    void (* end_preview) (
        GtkPrintOperationPreview* preview
      )

| No description available.

`_gtk_reserved1`

    void (* _gtk_reserved1) (
    void
      )

| No description available.

`_gtk_reserved2`

    void (* _gtk_reserved2) (
    void
      )

| No description available.

`_gtk_reserved3`

    void (* _gtk_reserved3) (
    void
      )

| No description available.

`_gtk_reserved4`

    void (* _gtk_reserved4) (
    void
      )

| No description available.

`_gtk_reserved5`

    void (* _gtk_reserved5) (
    void
      )

| No description available.

`_gtk_reserved6`

    void (* _gtk_reserved6) (
    void
      )

| No description available.

`_gtk_reserved7`

    void (* _gtk_reserved7) (
    void
      )

| No description available.

`_gtk_reserved8`

    void (* _gtk_reserved8) (
    void
      )

| No description available.

#### Virtual methods

###### Gtk.PrintOperationPreview.end_preview

Ends a preview.

###### Gtk.PrintOperationPreview.got_page_size

No description available.

###### Gtk.PrintOperationPreview.is_selected

Returns whether the given page is included in the set of pages that have been selected for printing.

###### Gtk.PrintOperationPreview.ready

No description available.

###### Gtk.PrintOperationPreview.render_page

Renders a page to the preview.