position of widget / widget at position





  Hello,

  I learned from the "Window size" thread how to determin the size of
a widget. 

  I looked into the doc, and found no way of doing the following :


- What is the x,y position (absolute screen coordinates, or relative
  to the "toplevel" gtk window) of a widget?

  I know of the functions, 

  void gdk_window_get_position (GdkWindow *window,
			        gint *x,
				gint *y);
  void gdk_window_get_size (GdkWindow *window,
			    gint *width,
			    gint *height);

  but I can't find how to use them with gtk objects.



- What is the widget at position x,y?

  
  Thanks,

  Etienne



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]