|
|
|
@ -25,6 +25,9 @@ namespace Avalonia.Windowing.Bindings |
|
|
|
[DllImport("winit_wrapper")] |
|
|
|
private static extern LogicalSize winit_gl_window_get_size(IntPtr handle); |
|
|
|
|
|
|
|
[DllImport("winit_wrapper")] |
|
|
|
private static extern double winit_gl_window_get_dpi_scale_factor(IntPtr handle); |
|
|
|
|
|
|
|
[DllImport("winit_wrapper")] |
|
|
|
private static extern LogicalPosition winit_gl_window_get_position(IntPtr handle); |
|
|
|
|
|
|
|
@ -89,6 +92,11 @@ namespace Avalonia.Windowing.Bindings |
|
|
|
return (size.Width, size.Height); |
|
|
|
} |
|
|
|
|
|
|
|
public double GetScaleFactor () |
|
|
|
{ |
|
|
|
return winit_gl_window_get_dpi_scale_factor(_handle); |
|
|
|
} |
|
|
|
|
|
|
|
public (double, double) GetFramebufferSize() |
|
|
|
{ |
|
|
|
return GetSize(); |
|
|
|
|