Re: window dimensions
- From: Havoc Pennington <hp redhat com>
- To: rsteinke w-link net
- Cc: andrei ispi net, gtk-list gnome org
- Subject: Re: window dimensions
- Date: 21 Apr 2002 00:58:29 -0400
rsteinke w-link net writes:
> Sure. If your top level window widget is "GtkWidget* window", then
>
> gint width, height;
> gdk_drawable_get_size(window->window, &width, &height);
>
> If you're using 1.2, use gdk_window_get_size() instead, with the
> same syntax.
>
In 2.0 it's better to use gtk_window_get_size(), since it's
independent of realization state and saves some typing.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]