Overlapping GtkWidgets - any advice?
- From: "Jeff Smith" <jeff smithicus com>
- To: gtk-list gnome org
- Subject: Overlapping GtkWidgets - any advice?
- Date: Thu, 16 Aug 2007 15:27:03 -0600
I've looked all over the place, but I can't find a concise answer to this question.
I have a custom widget, call it Foo, that draws a circle. I want to be
able to overlap two Foo widgets in a GtkFixed window, and have them
draw two, overlapping circles. (I've implemented Foo's expose-event
handler with Cairo.)
My current implementation works fine, except that the entire window of
each Foo gets cleared with the background color before my expose
handler gets called, and this clear obliterates part of the underlying
circle from the first Foo. Is there a simple way to suppress this
background clearing behavior? Will that do what I want, or do I have to
start looking at more complex solutions like RGBA window compositing?
Any pointers to help me over this confusion will be greatly appreciated.
Jefficus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]