Re: getting the origin of a window
Jacques Garrigue <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
From: "Jacques Le Normand" <[email protected]> > 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