protected virtual void ResizeCallback(int width, int height) { if (_viewHandle != IntPtr.Zero && _isInitialized) { HostSizeChanged?.Invoke(this, new SizeChangedEventArgs(width, height)); } }
protected virtual void OnSizeAllocate(IntPtr window, IntPtr allocation, int baseline) { if (_handle != IntPtr.Zero && _isInitialized) { var size = GetWindowSize(); HostSizeChanged?.Invoke(this, new SizeChangedEventArgs(size.Width, size.Height)); } }
protected virtual void HandleSizeChanged(int width, int height) { HostSizeChanged?.Invoke(this, new SizeChangedEventArgs(width, height)); }
protected virtual void HandleSizeChanged(int innerWidth, int innerHeight, int outerWidth, int outerHeight) { HostSizeChanged?.Invoke(this, new SizeChangedEventArgs(innerWidth, innerHeight, outerWidth, outerHeight)); }