Ejemplo n.º 1
0
        protected virtual void OnUpdating(IntPtr handle)
        {
            switch (_state)
            {
            case State.Moving:
                System.Diagnostics.Debug.WriteLine($"Moving");
                Moving?.Invoke(this, handle);
                break;

            case State.Resizing:
                System.Diagnostics.Debug.WriteLine($"Resizing");
                Resizing?.Invoke(this, handle);
                break;

            default: break;
            }
        }
Ejemplo n.º 2
0
        public void OnResize(int width, int height)
        {
            if (_cairoSurface is not null)
            {
                var oldHeight = _cairoSurface.Height;
                var oldWidth  = _cairoSurface.Width;

                if (oldWidth == width &&
                    oldHeight == height)
                {
                    Services.Logger.LogWindowingSystemEvent("Having resize request, but size didn't change. Ignoring.");
                    return;
                }

                _cairoSurface.SetSize(width, height);
            }

            Resizing?.Invoke(width, height);
        }
Ejemplo n.º 3
0
 private void OnResizing()
 {
     Resizing?.Invoke(this, new EventArgs());
 }
Ejemplo n.º 4
0
 protected virtual void OnResizing(ResizeEventArgs e)
 {
     Resizing?.Invoke(this, e);
 }
Ejemplo n.º 5
0
 private void OnResizing(string filename)
 {
     Resizing?.Invoke(this, new ResizeEventArgs(filename));
 }