* Printer handling from Gtk
@ 2018-11-21 14:45 ldries46
0 siblings, 0 replies; only message in thread
From: ldries46 @ 2018-11-21 14:45 UTC (permalink / raw)
I am in need for working example of printing from a Gtk environment in Ada.
I know then I need to use function "Connect_and_Run(Print_Op ,Action_Print,
Main_Window)
and earlier the procedure On_Draw_Page(Print_Op, Call to Draw_Page)
The problem is the " Callto Draw_Page" according to the
gtk.print_operations that call must be
procedure On_Draw_Page
(Self : not null access Gtk_Print_Operation_Record;
Call : Cb_Gtk_Print_Operation_Gtk_Print_Context_Gint_Void;
After : Boolean := False);
where the procedure to call must b of the type
Cb_Gtk_Print_Operation_Gtk_Print_Context_Gint_Void of which the type
definition is:
type Cb_Gtk_Print_Operation_Gtk_Print_Context_Gint_Void is not null access
procedure
(Self : access Gtk_Print_Operation_Record'Class;
Context : not null access
Gtk.Print_Context.Gtk_Print_Context_Record'Class;
Page_Nr : Glib.Gint);
The Draw_Page procedure has the following declaration:
procedure Draw_Page
(Op : access Gtkada_Print_Operation_Record'Class;
Context : not null access Gtk_Print_Context_Record'Class;
Page_Number : Gint)
Where use clauses are used for most packages.
My question is now: how must I convert the Namme Draw_Page to the type used
in On_Draw_Page
L. Dries
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-11-21 14:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-21 14:45 Printer handling from Gtk ldries46
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox