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; } }
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); }
private void OnResizing() { Resizing?.Invoke(this, new EventArgs()); }
protected virtual void OnResizing(ResizeEventArgs e) { Resizing?.Invoke(this, e); }
private void OnResizing(string filename) { Resizing?.Invoke(this, new ResizeEventArgs(filename)); }