Re: gtkmm equivalent of ->get_window()



I realized yesterday that I was writing GTK code and not gtkmm code.
So now I'm converting all my GtkDrawingArea to Gtk::DrawingArea and
GdkPixmap to Gdk::Pixmap.

I need a way to get a Gdk::Drawable out of an on-screen object
(specifically a Gtk::DrawingArea). Before I was using get_window() and
calling the resulting GdkWindow a GdkDrawable. I no longer have that
get_window() function, but I assume there must be some other way to
get the underlying drawable window for a gtk widget?

Thanks!


Gtk::DrawingArea has a get_window() function (inherited from Gtk::Widget)

see:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Widget.html#a177




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