Re: GTK_WINDOW to GDK_WINDOW
- From: Cole Tuininga <egon egon mv com>
- To: Havoc Pennington <hp redhat com>
- Cc: GTK App Devel List <gtk-app-devel-list gnome org>
- Subject: Re: GTK_WINDOW to GDK_WINDOW
- Date: Tue, 20 Mar 2001 22:56:02 -0500
Havoc Pennington wrote:
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.
Gotcha.
Just use GTK_WINDOW (window)->allocation.width,
GTK_WINDOW (window)->allocation.height, for the window size.
Thanks for the help. Perchance, is this documented somewhere so that I
don't have to bother you folks for such simple things?
--
Pretend there's a witty saying here.
Cole Tuininga
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]