|
|
|
@ -50,6 +50,10 @@ namespace Avalonia.Gtk3.Interop |
|
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)] |
|
|
|
public delegate IntPtr gtk_widget_get_window(GtkWidget gtkWidget); |
|
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk, optional: true)] |
|
|
|
public delegate uint gtk_widget_get_scale_factor(GtkWidget gtkWidget); |
|
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)] |
|
|
|
public delegate IntPtr gtk_widget_get_screen(GtkWidget gtkWidget); |
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)] |
|
|
|
@ -130,6 +134,9 @@ namespace Avalonia.Gtk3.Interop |
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Cairo)] |
|
|
|
public delegate void cairo_set_source_surface(IntPtr cr, CairoSurface surface, double x, double y); |
|
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Cairo)] |
|
|
|
public delegate void cairo_scale(IntPtr context, double sx, double sy); |
|
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Cairo)] |
|
|
|
public delegate void cairo_paint(IntPtr context); |
|
|
|
|
|
|
|
@ -275,6 +282,7 @@ namespace Avalonia.Gtk3.Interop |
|
|
|
public static D.gtk_widget_hide GtkWidgetHide; |
|
|
|
public static D.gdk_get_native_handle GetNativeGdkWindowHandle; |
|
|
|
public static D.gtk_widget_get_window GtkWidgetGetWindow; |
|
|
|
public static D.gtk_widget_get_scale_factor GtkWidgetGetScaleFactor; |
|
|
|
public static D.gtk_widget_get_screen GtkWidgetGetScreen; |
|
|
|
public static D.gtk_widget_realize GtkWidgetRealize; |
|
|
|
public static D.gtk_window_get_size GtkWindowGetSize; |
|
|
|
@ -343,6 +351,7 @@ namespace Avalonia.Gtk3.Interop |
|
|
|
public static D.cairo_surface_flush CairoSurfaceFlush; |
|
|
|
public static D.cairo_surface_destroy CairoSurfaceDestroy; |
|
|
|
public static D.cairo_set_source_surface CairoSetSourceSurface; |
|
|
|
public static D.cairo_scale CairoScale; |
|
|
|
public static D.cairo_paint CairoPaint; |
|
|
|
} |
|
|
|
|
|
|
|
|