|
|
@@ -38,6 +38,9 @@ namespace Avalonia.Gtk3.Interop
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_widget_hide(GtkWidget gtkWidget);
|
|
|
|
|
|
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
+ public delegate void gtk_widget_show(GtkWidget gtkWidget);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_window_set_icon(GtkWindow window, Pixbuf pixbuf);
|
|
|
|
|
|
@@ -56,14 +59,17 @@ namespace Avalonia.Gtk3.Interop
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate IntPtr gtk_widget_get_screen(GtkWidget gtkWidget);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate IntPtr gtk_widget_set_double_buffered(GtkWidget gtkWidget, bool value);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate IntPtr gtk_widget_set_events(GtkWidget gtkWidget, uint flags);
|
|
|
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gdk)]
|
|
|
public delegate int gdk_screen_get_height(IntPtr screen);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gdk)]
|
|
|
public delegate int gdk_screen_get_width(IntPtr screen);
|
|
|
|
|
|
@@ -72,10 +78,10 @@ namespace Avalonia.Gtk3.Interop
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gdk)]
|
|
|
public delegate int gdk_window_get_origin(IntPtr gdkWindow, out int x, out int y);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gdk)]
|
|
|
public delegate void gdk_window_resize(IntPtr gtkWindow, int width, int height);
|
|
|
|
|
|
-
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_widget_realize(GtkWidget gtkWidget);
|
|
|
|
|
|
@@ -86,33 +92,51 @@ namespace Avalonia.Gtk3.Interop
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_window_set_decorated(GtkWindow gtkWindow, bool decorated);
|
|
|
|
|
|
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
+ public delegate void gtk_window_set_skip_taskbar_hint(GtkWindow gtkWindow, bool setting);
|
|
|
+
|
|
|
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
+ public delegate bool gtk_window_get_skip_taskbar_hint(GtkWindow gtkWindow);
|
|
|
+
|
|
|
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
+ public delegate void gtk_window_set_skip_pager_hint(GtkWindow gtkWindow, bool setting);
|
|
|
+
|
|
|
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
+ public delegate bool gtk_window_get_skip_pager_hint(GtkWindow gtkWindow);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_window_get_size(GtkWindow gtkWindow, out int width, out int height);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_window_resize(GtkWindow gtkWindow, int width, int height);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_widget_set_size_request(GtkWidget widget, int width, int height);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_window_set_default_size(GtkWindow gtkWindow, int width, int height);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_window_get_position(GtkWindow gtkWindow, out int x, out int y);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_window_move(GtkWindow gtkWindow, int x, int y);
|
|
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate GtkFileChooser gtk_file_chooser_dialog_new(Utf8Buffer title, GtkWindow parent, GtkFileChooserAction action, IntPtr ignore);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public unsafe delegate GSList* gtk_file_chooser_get_filenames(GtkFileChooser chooser);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_file_chooser_set_select_multiple(GtkFileChooser chooser, bool allow);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_file_chooser_set_filename(GtkFileChooser chooser, Utf8Buffer file);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_dialog_add_button(GtkDialog raw, Utf8Buffer button_text, GtkResponseType response_id);
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Cairo)]
|
|
|
public delegate CairoSurface cairo_image_surface_create(int format, int width, int height);
|
|
|
|
|
|
@@ -206,7 +230,6 @@ namespace Avalonia.Gtk3.Interop
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gtk)]
|
|
|
public delegate void gtk_clipboard_clear(IntPtr clipboard);
|
|
|
|
|
|
-
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.GdkPixBuf)]
|
|
|
public delegate IntPtr gdk_pixbuf_new_from_file(Utf8Buffer filename, out IntPtr error);
|
|
|
|
|
|
@@ -229,21 +252,27 @@ namespace Avalonia.Gtk3.Interop
|
|
|
public delegate bool gdk_pixbuf_save_to_bufferv(Pixbuf pixbuf, out IntPtr buffer, out IntPtr buffer_size,
|
|
|
Utf8Buffer type, IntPtr option_keys, IntPtr option_values, out IntPtr error);
|
|
|
|
|
|
-
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gobject)]
|
|
|
public delegate void g_object_unref(IntPtr instance);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gobject)]
|
|
|
public delegate void g_object_ref(GObject instance);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gobject)]
|
|
|
public delegate ulong g_signal_connect_object(GObject instance, Utf8Buffer signal, IntPtr handler, IntPtr userData, int flags);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gobject)]
|
|
|
public delegate ulong g_signal_handler_disconnect(GObject instance, ulong connectionId);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Glib)]
|
|
|
public delegate ulong g_timeout_add(uint interval, timeout_callback callback, IntPtr data);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Glib)]
|
|
|
public delegate ulong g_free(IntPtr data);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Glib)]
|
|
|
public unsafe delegate void g_slist_free(GSList* data);
|
|
|
+
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl), GtkImport(GtkDll.Gio)]
|
|
|
public delegate GInputStream g_memory_input_stream_new_from_data(IntPtr ptr, IntPtr len, IntPtr destroyCallback);
|
|
|
|
|
|
@@ -271,6 +300,10 @@ namespace Avalonia.Gtk3.Interop
|
|
|
|
|
|
|
|
|
public static D.gtk_window_set_decorated GtkWindowSetDecorated;
|
|
|
+ public static D.gtk_window_set_skip_taskbar_hint GtkWindowSetSkipTaskbarHint;
|
|
|
+ public static D.gtk_window_get_skip_taskbar_hint GtkWindowGetSkipTaskbarHint;
|
|
|
+ public static D.gtk_window_set_skip_pager_hint GtkWindowSetSkipPagerHint;
|
|
|
+ public static D.gtk_window_get_skip_pager_hint GtkWindowGetSkipPagerHint;
|
|
|
public static D.gtk_window_set_title GtkWindowSetTitle;
|
|
|
public static D.gtk_application_new GtkApplicationNew;
|
|
|
public static D.gtk_main_iteration GtkMainIteration;
|
|
|
@@ -280,6 +313,7 @@ namespace Avalonia.Gtk3.Interop
|
|
|
public static D.gtk_init GtkInit;
|
|
|
public static D.gtk_window_present GtkWindowPresent;
|
|
|
public static D.gtk_widget_hide GtkWidgetHide;
|
|
|
+ public static D.gtk_widget_show GtkWidgetShow;
|
|
|
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;
|
|
|
@@ -314,8 +348,7 @@ namespace Avalonia.Gtk3.Interop
|
|
|
public static D.gtk_clipboard_request_text GtkClipboardRequestText;
|
|
|
public static D.gtk_clipboard_set_text GtkClipboardSetText;
|
|
|
public static D.gtk_clipboard_clear GtkClipboardRequestClear;
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
public static D.gtk_im_multicontext_new GtkImMulticontextNew;
|
|
|
public static D.gtk_im_context_filter_keypress GtkImContextFilterKeypress;
|
|
|
public static D.gtk_im_context_set_client_window GtkImContextSetClientWindow;
|