Example #1
0
 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));
     }
 }
Example #3
0
 protected virtual void HandleSizeChanged(int width, int height)
 {
     HostSizeChanged?.Invoke(this, new SizeChangedEventArgs(width, height));
 }
Example #4
0
 protected virtual void HandleSizeChanged(int innerWidth, int innerHeight, int outerWidth, int outerHeight)
 {
     HostSizeChanged?.Invoke(this, new SizeChangedEventArgs(innerWidth, innerHeight, outerWidth, outerHeight));
 }