Re: [gtk-list] Re: Gnome/GtkCanvas (was Re: gtk_args_collect & gnome--)



On Fri, Sep 11, 1998 at 11:16:36AM -0700, KC5TJA wrote:
> > > desktop productivity right now -- it can't print!  What's presented on the
> > > screen is one thing -- that has already been mastered.  Now let's start to
> > > tackle the paper output side of things.
> > But it's already solved. :)
> 
> OK, then I propose the creation of a gtk_printarea object.  It takes all
> the same functions (as much as possible, that is) as gtk_drawingarea,
> except that it dumps its output to a file stream, perhaps a pipe to a
> Postscript interpretter like Ghostscript.  However, it should still be
> modular -- I'd like the opportunity to write my own printer driver for
> that widget.

that would get complicated, much easier would be to write a poscript backend
to gdk. then one would somehow create a widget that would be drawn on the
poscript instead of X say:

w = gtk_drawingarea_new();
gtk_widget_set_backend(w,GDK_POSTCRIPT);

the w->window would then be realized as a postcript drawable on which all
the gdk_draw stuff would work

another way would be like this. create a poscript drawable, (a copy of
the widget's window), set the widget's ->window to it, generate an expose
event, and set ->window back

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



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