[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: drawing with no realized/visible widget at hand.
- From: Jamie <jdl28 student canterbury ac nz>
- To: gtk-app-devel-list redhat com
- Subject: Re: drawing with no realized/visible widget at hand.
- Date: Mon, 01 Nov 1999 09:30:16 +1300
Manuel Estrada wrote:
>
> I am trying to create a pixmap and draw into it to dump it
> into a "drawing area" when requested, but I have to set things up and
> even draw before the "drawing area" is realized.
>
> Fact 1: I need to have a gdkwindow or know some color depth.
> Problem 1: A non realized widget has no gdkwindow.
>
If i remember rightly, gtk_realise_widget( widget) will realise a widget
(and give you a window)
without showing the window at all
> Fact 2: I need some GdkGC to have colors to draw with.
> Problem 2.1: A non realized widget doesn't seam to have them.
> Problem 2.2: I need a gdkwindow to create a GdkGC (see Problem 1)
What sort of things are you trying to draw? a direct drawing area with a
pixmap may not be the way to go with this.
oh, if the gtk_realise_widget(widget) doesn't work, try
gtk_realize_widget( widget) (different spellings).
--
Jamie Love
jlove@clear.net.nz
jdl28@student.canterbury.ac.nz
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]