コード例 #1
0
ファイル: WindowFrameBackend.cs プロジェクト: b-theile/xwt
        public void Move(double x, double y)
        {
            var value = ToNonClientRect(new Rectangle(x, y, 1, 1));

            window.Top  = value.Top;
            window.Left = value.Left;
            Context.InvokeUserCode(delegate
            {
                eventSink.OnBoundsChanged(Bounds);
            });
        }
コード例 #2
0
 public void Move(double x, double y)
 {
     Window.Move((int)x, (int)y);
     ApplicationContext.InvokeUserCode(delegate {
         EventSink.OnBoundsChanged(Bounds);
     });
 }
コード例 #3
0
 protected virtual void OnBoundsChanged()
 {
     LayoutWindow();
     ApplicationContext.InvokeUserCode(delegate {
         eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds);
     });
 }
コード例 #4
0
 public void Move(double x, double y)
 {
     Window.Move((int)x, (int)y);
     Toolkit.Invoke(delegate {
         EventSink.OnBoundsChanged(Bounds);
     });
 }
コード例 #5
0
 protected virtual void OnBoundsChanged()
 {
     LayoutWindow();
     if (eventsEnabled.HasFlag(WindowFrameEvent.BoundsChanged))
     {
         ApplicationContext.InvokeUserCode(delegate
         {
             eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds);
         });
     }
 }
コード例 #6
0
ファイル: WindowFrameBackend.cs プロジェクト: ivan95603/xwt
 public void Move(double x, double y)
 {
                 #if !XWT_GTK3
     // HACK: some WMs will show the window at a default location and move it
     //       to its final location after the window has already been shown,
     //       causing the window to flicker in some cases.
     //       Setting an initial Allocation often helps to show the window
     //       at the desired location initially (but not always).
     if (!Window.Visible)
     {
         Window.Allocation = new Gdk.Rectangle((int)x, (int)y, Window.Allocation.Width, Window.Allocation.Height);
     }
                 #endif
     Window.Move((int)x, (int)y);
     ApplicationContext.InvokeUserCode(delegate {
         EventSink.OnBoundsChanged(Bounds);
     });
 }
コード例 #7
0
ファイル: WindowBackend.cs プロジェクト: joncham/xwt
 void HandleDidResize(object sender, EventArgs e)
 {
     Toolkit.Invoke(delegate {
         eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds);
     });
 }
コード例 #8
0
 void BoundsChangedHandler(object o, EventArgs args)
 {
     eventSink.OnBoundsChanged(Bounds);
 }
コード例 #9
0
 void HandleDidResize(object sender, EventArgs e)
 {
     eventSink.OnBoundsChanged(((IWindowBackend)this).Bounds);
 }
コード例 #10
0
 void BoundsChangedHandler(object o, EventArgs args)
 {
     Toolkit.CurrentEngine.Invoke(delegate() {
         eventSink.OnBoundsChanged(Bounds);
     });
 }