[gnomemm] how to use isA() and get_type method



I want to find the type of a canvas item. I have see CanvasItem is two method
Gnome::CanvasItem::get_type();
Gnome::CanvasItem::isA(Gtk::Object * checkcast);
Anybody can tell me how to use the two mathods? for examples, to check the item is of CanvasPolygon type or not. Please give me a piece of code :-) Urgent

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.microsoft.com/cn/




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