## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Print_Operation_Preview

- Goto spec source

# Description

    package Gtk.Print_Operation_Preview is

This package contains functionality for composing a custom print preview facility.

Binding from C File version 2.16.6

# Types

### Gtk_Print_Operation_Preview

- Goto declaration in source

    type Gtk_Print_Operation_Preview is new Glib.Types.GType_Interface;

# Subprograms & Entries

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return GType;

### End_Preview

- Goto spec in source
- Goto body in source

    procedure End_Preview (Preview: Gtk_Print_Operation_Preview);

Ends a preview. This function must be called to finish a custom print preview.

### Is_Selected

- Goto spec in source

    function Is_Selected (Preview: Gtk_Print_Operation_Preview;Page_Nr: Gint) return Boolean;

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

### Render_Page

- Goto spec in source
- Goto body in source

    procedure Render_Page (Preview: Gtk_Print_Operation_Preview;Page_Nr: Gint);

Renders a page to the preview, using the print context that was passed to the "preview" handler together with Preview. A custom iprint preview should use this function in its "expose" handler to render the currently selected page. Note that this function requires a suitable cairo context to be associated with the print context.