Re: Printing from gtlmm??



On Tue, 2007-01-23 at 18:28 +0000, John Spray wrote:
> On Tue, 2007-01-23 at 18:00 +0000, Moldovan Felician wrote:
> > I was wondering how can I print using gtkmm classes. For example, I
> > want to print all data from a gtk tree-list, without graphics, only
> > the text contained in the list.
> 
> I believe the latest, greatest GTK+ 2.10 API for this is:
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1PrintOperation.html
> 
> It'll involve doing your actual drawing with Pango and Cairo.  See
> http://www.gnome.org/~alexl/presentations/guadec2006-printing.pdf
> for an overview (page 17 provides a little snippet on using pango to
> output some simple text, in C).
> 
> If you really just want to dump plain text to a local printer, there
> will probably be simpler APIs available on your platform.

There's also a chapter on the printing API in the tutorial:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch18.html

Marko




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]