Re: GTK_WINDOW to GDK_WINDOW
- From: Havoc Pennington <hp redhat com>
- To: Cole Tuininga <egon egon mv com>
- Cc: GTK App Devel List <gtk-app-devel-list gnome org>
- Subject: Re: GTK_WINDOW to GDK_WINDOW
- Date: 20 Mar 2001 21:34:21 -0500
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]