[gtkmm] Gtk::Widget types
- From: Liza Klerck <liza trdlnk com>
- To: gtkmm-list gnome org
- Subject: [gtkmm] Gtk::Widget types
- Date: Thu, 27 Feb 2003 12:47:26 -0600
Hi,
If I have a Gtk::Widget *, is there a way for me to check what type of
widget it is ? I am using Gtk2.
For example:
void do_someting (Gtk::Widget *widget)
{
if widget is a Gtk::Label then do this ...
if widget is a Gtk::Button then do this ...
}
Thanks !
Liza
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]