[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: drawing with no realized/visible widget at hand.
- From: "Donna S. Martin" <donna omartin com>
- To: <gtk-app-devel-list redhat com>
- Subject: Re: drawing with no realized/visible widget at hand.
- Date: Sun, 31 Oct 1999 14:41:30 -0700
For Fact 1: You can retrieve your depth information from the default visual
(gdk_visual_get_system(), and then access the depth field, ->depth).
For Fact 2 , actually you need a drawable to create a GC,
and since a pixmap is a drawable you can use the result of your
gdk_pixmap_new() to create your own GC. (really!)
Hope that helps.
Donna
----- Original Message -----
From: Manuel Estrada <ranty@atdot.org>
To: gtk-app-devel <gtk-app-devel-list@redhat.com>
Sent: Sunday, October 31, 1999 10:37 AM
Subject: drawing with no realized/visible widget at hand.
>
> 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.
>
> 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)
>
>
> Thanks in advance
>
> Ranty
>
> -------------------------------------------------
> Manuel Estrada
>
> Ranty@atdot.org
> -------------------------------------------------
>
>
> --
> To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
> Mailing list concerns should be mailed to <listmaster@redhat.com>
>
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]