Re: [gtk-list] How to get X,Y position
- From: Stefan Wille <wille netlife de>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] How to get X,Y position
- Date: Mon, 09 Mar 1998 08:25:08 +0000
]ke Gustavsson IB wrote:
>
> Hallo
>
> How can one get the X,Y position for the upper left
> corner of a window?
>
> I have tried to read the allocation struct but nothing
> seams to be stored there.
You can use gdk_window_get_origin.
But beware, a GtkWindow may get reparented by the window
manager to provide decorations, and may have a slightly different
x/y position than you would expect.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]