Qyoto.QWidget.Move C# (CSharp) Method

Move() public method

public Move ( int x, int y ) : void
x int
y int
return void
        public void Move(int x, int y)
        {
            interceptor.Invoke("move$$", "move(int, int)", typeof(void), typeof(int), x, typeof(int), y);
        }

Usage Example

Beispiel #1
0
 public static void CenterWidgetOnScreen(QWidget widget)
 {
     QRect rect = QApplication.Desktop().AvailableGeometry(widget);
     widget.Move((rect.Width() / 2) - (widget.Rect.Width() / 2), (rect.Height() / 2) - (widget.Rect.Height() / 2));
 }
QWidget