Re: [gtk-list] Re: Pixmaps in gtk
- From: Joel Dillon <jo dillon new oxford ac uk>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Pixmaps in gtk
- Date: Tue, 30 Sep 1997 15:56:32 +0100 (BST)
On Mon, 29 Sep 1997, Otto Hammersmith wrote:
> On Mon, Sep 29, 1997 at 05:23:41PM -0400, Michael K. Johnson wrote:
> >
> > >Again, I don't know if this is already possible.
> >
> > It is already possible except for drawing borders by editing a gtkrc file.
>
I realise this now. Apologies for not RTFM'ing enough before posting.
But I did have in mind the ability to customise borders as well - how
easy would this be to do? And does the ability to draw background pixmaps
also cover the window itself, text areas and so on?~
Is anyone working on a graphical resoucrce file configuration tool at
the moment? If not I might have a go.
> > Otto tells me that it is also possible to create alternative style objects
> > that provide functions that could implement this kind of behavior, and
> > that it should be possible to even put them in a separate library.
> >
> > michaelkjohnson
>
> Let me clarify...
>
> each widget has a GtkStyle object associated with it, and each of
> those has function pointers to various drawing methods... (i.e.,
> draw_hline, draw_vline, draw_shadow, and so on)
>
> The idea is to give gtk+ the ability to look differently without
> having to rewrite tons of code. At least, this is the impression I
> get from reading the source and one of the comments in the TODO
> file. :)
>
> I ought to be possible to code the functions into a shared object,
> load it using dl*(), and then create a GtkStyle with the function
> pointers pointing to your functions... then apply that style to
> whatever widget you please. (I'm not sure if the gtkrc stuff has
> enough support for this kind of effort... I'd have to look at it
> again, it's been a while.)
>
> In any case, it isn't entirely unreasonable (though questionaly
> desireable :) to think you could write a set of drawing routines that
> drew pixmaps rather than using gdk (or X) primitives.
>
> Of course, none of the GtkStyle concepts has actually been put to the
> test and I'm sure (with no disrespect to the authors :) that there are
> kinks to be worked out... probably requiring changes to gtk.
> --
> -Otto.
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>
Joel Dillon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]