Index

Package: Print_Operation_Preview

Description

package Gtk.Print_Operation_Preview is
---------------------------------------------------------------------------- -- Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet -- Copyright (C) 2000-2014, AdaCore -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) any later -- version. This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- -- As a special exception under Section 7 of GPL version 3, you are granted -- additional permissions described in the GCC Runtime Library Exception, -- version 3.1, as published by the Free Software Foundation. -- -- You should have received a copy of the GNU General Public License and -- a copy of the GCC Runtime Library Exception along with this program; -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- <http://www.gnu.org/licenses/>. -- -- ----------------------------------------------------------------------------

Types

Gtk_Print_Operation_Preview

type Gtk_Print_Operation_Preview is new Glib.Types.GType_Interface;

Cb_Gtk_Print_Operation_Preview_Gtk_Print_Context_Gtk_Page_Setup_Void

type Cb_Gtk_Print_Operation_Preview_Gtk_Print_Context_Gtk_Page_Setup_Void is not null access procedure
     (Self       : Gtk_Print_Operation_Preview;
      Context    : not null access Gtk.Print_Context.Gtk_Print_Context_Record'Class;
      Page_Setup : not null access Gtk.Page_Setup.Gtk_Page_Setup_Record'Class);

Cb_GObject_Gtk_Print_Context_Gtk_Page_Setup_Void

type Cb_GObject_Gtk_Print_Context_Gtk_Page_Setup_Void is not null access procedure
     (Self       : access Glib.Object.GObject_Record'Class;
      Context    : not null access Gtk.Print_Context.Gtk_Print_Context_Record'Class;
      Page_Setup : not null access Gtk.Page_Setup.Gtk_Page_Setup_Record'Class);

Cb_Gtk_Print_Operation_Preview_Gtk_Print_Context_Void

type Cb_Gtk_Print_Operation_Preview_Gtk_Print_Context_Void is not null access procedure
     (Self    : Gtk_Print_Operation_Preview;
      Context : not null access Gtk.Print_Context.Gtk_Print_Context_Record'Class);

Cb_GObject_Gtk_Print_Context_Void

type Cb_GObject_Gtk_Print_Context_Void is not null access procedure
     (Self    : access Glib.Object.GObject_Record'Class;
      Context : not null access Gtk.Print_Context.Gtk_Print_Context_Record'Class);

Constants & Global variables

Null_Gtk_Print_Operation_Preview (Gtk_Print_Operation_Preview)

Null_Gtk_Print_Operation_Preview : constant Gtk_Print_Operation_Preview;

Signal_Got_Page_Size (Glib.Signal_Name)

Signal_Got_Page_Size : constant Glib.Signal_Name := "got-page-size";

Signal_Ready (Glib.Signal_Name)

Signal_Ready : constant Glib.Signal_Name := "ready";

Subprograms & Entries

Get_Type

function Get_Type return Glib.GType;

End_Preview

procedure End_Preview 
(Preview: Gtk_Print_Operation_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. Since: gtk+ 2.10 "page_nr": a page number

Render_Page

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

On_Got_Page_Size

procedure On_Got_Page_Size 
(Self: Gtk_Print_Operation_Preview;
Call: Cb_Gtk_Print_Operation_Preview_Gtk_Print_Context_Gtk_Page_Setup_Void;
After: Boolean := False);

On_Got_Page_Size

procedure On_Got_Page_Size 
(Self: Gtk_Print_Operation_Preview;
Call: Cb_GObject_Gtk_Print_Context_Gtk_Page_Setup_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
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. Callback parameters: -- "context": the current Gtk.Print_Context.Gtk_Print_Context -- "page_setup": the Gtk.Page_Setup.Gtk_Page_Setup for the current page

On_Ready

procedure On_Ready 
(Self: Gtk_Print_Operation_Preview;
Call: Cb_Gtk_Print_Operation_Preview_Gtk_Print_Context_Void;
After: Boolean := False);

On_Ready

procedure On_Ready 
(Self: Gtk_Print_Operation_Preview;
Call: Cb_GObject_Gtk_Print_Context_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
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.