Re: window dimensions
- From: rsteinke w-link net
- To: andrei ispi net, gtk-list gnome org
- Subject: Re: window dimensions
- Date: Sat, 20 Apr 2002 20:13:30 -0700
From: Andrei Zmievski <andrei ispi net>
>
> Is there a way to find out toplevel window dimensions if the user has
> resized it? I realize it depends on the window manager, but still..
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.
Ron Steinke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]