Index

Package: Print_Operation_Preview

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

type Gtk_Print_Operation_Preview is new Glib.Types.GType_Interface;

Subprograms & Entries

Get_Type

function Get_Type return GType;

End_Preview

procedure End_Preview 
(Preview: Gtk_Print_Operation_Preview);
Ends a preview. This function must be called to finish a custom print preview.

Is_Selected

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

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.