public GetWidgetPosition ( Gtk.Widget widget, int &x, int &y ) : void | ||
widget | Gtk.Widget | |
x | int | |
y | int | |
리턴 | void |
public void GetWidgetPosition (Widget widget, out int x, out int y)
{
main_window.GdkWindow.GetOrigin (out x, out y);
x += widget.Allocation.X;
y += widget.Allocation.Y;
}