cycling through items on a canvas?

2006-11-02 Thread Johan Kohler
Hi, I add items to the root group of a canvas using repeated calls like: polygon_ = manage(new CRenderPolygon(*root(), points_)); where CRenderPolygon is derived from Canvas::Polygon. I always reuse the same pointer polygon_. Now I want to test whether a point is in any of the polygons. How can

GtkLayout and Pango

2006-11-02 Thread Sham Gardner
Hi I'm writing an application that uses a GtkLayout as a large horizontally scrollable area and uses Pango to plot short pieces of text at regular intervals within that area. Other drawing primitives are also used at similar intervals. I have observed that while the drawing primitives I use wo