Re: [gnomemm] Gnome Item Coordinates



Deepak Chandran <DeepakC dpsl net> writes:

[...]

> We want the "table" (rect and lines) to be resized on certain event. Hence,
> in the signal handler,
> We create the GnomeCanvasGroup pointer and traverse the
> GnomeCanvasGroup::item_list.
> To access the individual items in the group we type cast them to their
> repective Item class using Glib::wrap() method.

If I were you, I think I'd store pointers to the items myself (or
pointers to classes wrapping them). Then you could implement resizing
with a little polymorphic magic in a type-safe manner.

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]