Re: GTK_WINDOW to GDK_WINDOW



Cole Tuininga <egon egon mv com> writes:
Quick question - how do I view a GTK_WINDOW as a GDK_WINDOW?

Essentially, I want to get the size of a window (via
gdk_window_get_size) but I don't know how to cast it?


Casts are for where the types are the same and the compiler thinks
they are different - in case they really are different.

Just use GTK_WINDOW (window)->allocation.width, 
GTK_WINDOW (window)->allocation.height, for the window size.

Havoc





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