| Import line: | Gtk = imports.gi.Gtk; |
| GIR File: | Gtk-3.0.gir |
| C documentation: | GtkPrintOperationPreview |
| Interface : | PrintOperationPreview |
| Implementations: | Gtk.PrintOperation |
| None |
| Method / Constructor | Defined By | |
|---|---|---|
|
end_preview
()
:
none
Ends a preview.
Ends a preview.
This function must be called to finish a custom print preview.
|
Gtk.PrintOperationPreview | |
|
Returns whether the given page is included in the set of pages that
have been selected for printing. |
Gtk.PrintOperationPreview | |
|
render_page
(gint32 page_nr)
:
none
Renders a page to the preview, using the print context that
was passed to the GtkPrintOperation::preview handler together with preview.
Renders a page to the preview, using the print context that
was passed to the GtkPrintOperation::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.
|
Gtk.PrintOperationPreview | |
| Event | Defined By | |
|---|---|---|
|
The ::got-page-size signal is emitted once for each page
that gets rendered to the preview.
The ::got-page-size signal is emitted once for each page
that gets rendered to the preview. A handler for this signal should update the context according to page_setup and set up a suitable cairo context, using gtk_print_context_set_cairo_context().
|
Gtk.PrintOperationPreview | |
|
ready (PrintOperationPreview self, PrintContext context)
:
none
The ::ready signal gets emitted once per preview operation,
before the first page is rendered.
The ::ready signal gets emitted once per preview operation,
before the first page is rendered. A handler for this signal can be used for setup tasks.
|
Gtk.PrintOperationPreview | |
| Class / Namespace | Method / Signal / Properties |
|---|---|
|
Gtk.PrintOperation
Signal |
preview
(PrintOperation self, PrintOperationPreview preview, PrintContext context, Window parent)
:
gboolean
Gets emitted when a preview is requested from the native dialog.
|