Delivered-To: lablgtk at yquem.inria.fr Date: Wed, 26 Mar 2008 14:15:18 +0900 (JST) Message-Id: <20080326.141518.71085990.garrigue at math.nagoya-u.ac.jp> To: rathereasy at gmail.com Subject: Re: [Lablgtk] getting the origin of a window From: Jacques Garrigue In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: lablgtk at yquem.inria.fr Content-Type: Text/Plain; charset=us-ascii Content-Length: 754 From: "Jacques Le Normand" > is there a way to get the position of a window in lablgtk? > in gtk you would use > > gtk_window_get_position(window,&x,&y) > > in haskell you would do > > do > dw <- widgetGetDrawWindow window > drawWindowGetOrigin dw Lablgtk is close to Haskell: Gdk.Window.get_position w#misc#window Note however that this is not the same thing as gtk_window_get_position, which takes decorations and gravity into account. (Look at the gtk documentation.) This last function is not interfaced currently. If you really need it, please tell us. Jacques _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk