Exemplo n.º 1
0
 public static void JSStringGetUTF8CString(IntPtr js_str_value, IntPtr str_value, int str_length)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.JSStringGetUTF8CString(js_str_value, str_value, str_length);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.JSStringGetUTF8CString(js_str_value, str_value, str_length);
     }
     else
     {
         NMWindows.JSStringGetUTF8CString(js_str_value, str_value, str_length);
     }
 }
Exemplo n.º 2
0
 public static void webkit_web_view_load_html(IntPtr web_view, string content, string base_uri)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.webkit_web_view_load_html(web_view, content, base_uri);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.webkit_web_view_load_html(web_view, content, base_uri);
     }
     else
     {
         NMWindows.webkit_web_view_load_html(web_view, content, base_uri);
     }
 }
Exemplo n.º 3
0
 public static bool webkit_web_view_can_go_forward(IntPtr web_view)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.webkit_web_view_can_go_forward(web_view));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.webkit_web_view_can_go_forward(web_view));
     }
     else
     {
         return(NMWindows.webkit_web_view_can_go_forward(web_view));
     }
 }
Exemplo n.º 4
0
 public static void gtk_header_bar_set_show_close_button(IntPtr bar, bool setting)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.gtk_header_bar_set_show_close_button(bar, setting);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.gtk_header_bar_set_show_close_button(bar, setting);
     }
     else
     {
         NMWindows.gtk_header_bar_set_show_close_button(bar, setting);
     }
 }
Exemplo n.º 5
0
 public static IntPtr webkit_web_view_new()
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.webkit_web_view_new());
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.webkit_web_view_new());
     }
     else
     {
         return(NMWindows.webkit_web_view_new());
     }
 }
Exemplo n.º 6
0
 public static bool gtk_application_prefers_app_menu(IntPtr application)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gtk_application_prefers_app_menu(application));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gtk_application_prefers_app_menu(application));
     }
     else
     {
         return(NMWindows.gtk_application_prefers_app_menu(application));
     }
 }
Exemplo n.º 7
0
 public static void gtk_window_set_titlebar(IntPtr window, IntPtr widget)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.gtk_window_set_titlebar(window, widget);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.gtk_window_set_titlebar(window, widget);
     }
     else
     {
         NMWindows.gtk_window_set_titlebar(window, widget);
     }
 }
Exemplo n.º 8
0
 public static bool gtk_clipboard_wait_for_targets(IntPtr cp, out IntPtr atoms, out int number)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gtk_clipboard_wait_for_targets(cp, out atoms, out number));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gtk_clipboard_wait_for_targets(cp, out atoms, out number));
     }
     else
     {
         return(NMWindows.gtk_clipboard_wait_for_targets(cp, out atoms, out number));
     }
 }
Exemplo n.º 9
0
 public static void gtk_entry_set_placeholder_text(IntPtr entry, string text)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.gtk_entry_set_placeholder_text(entry, text);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.gtk_entry_set_placeholder_text(entry, text);
     }
     else
     {
         NMWindows.gtk_entry_set_placeholder_text(entry, text);
     }
 }
Exemplo n.º 10
0
 public static bool gdk_cairo_get_clip_rectangle(IntPtr context, IntPtr rect)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gdk_cairo_get_clip_rectangle(context, rect));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gdk_cairo_get_clip_rectangle(context, rect));
     }
     else
     {
         return(NMWindows.gdk_cairo_get_clip_rectangle(context, rect));
     }
 }
Exemplo n.º 11
0
 public static void g_signal_stop_emission_by_name(IntPtr instance, string name)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.g_signal_stop_emission_by_name(instance, name);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.g_signal_stop_emission_by_name(instance, name);
     }
     else
     {
         NMWindows.g_signal_stop_emission_by_name(instance, name);
     }
 }
Exemplo n.º 12
0
 public static string webkit_uri_request_get_uri(IntPtr request)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(GetString(NMLinux.webkit_uri_request_get_uri(request)));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(GetString(NMMac.webkit_uri_request_get_uri(request)));
     }
     else
     {
         return(GetString(NMWindows.webkit_uri_request_get_uri(request)));
     }
 }
Exemplo n.º 13
0
 public static IntPtr webkit_navigation_policy_decision_get_request(IntPtr decision)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.webkit_navigation_policy_decision_get_request(decision));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.webkit_navigation_policy_decision_get_request(decision));
     }
     else
     {
         return(NMWindows.webkit_navigation_policy_decision_get_request(decision));
     }
 }
Exemplo n.º 14
0
 public static void JSStringRelease(IntPtr js_str_value)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.JSStringRelease(js_str_value);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.JSStringRelease(js_str_value);
     }
     else
     {
         NMWindows.JSStringRelease(js_str_value);
     }
 }
Exemplo n.º 15
0
 public static IntPtr g_file_new_for_path(string path)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.g_file_new_for_path(path));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.g_file_new_for_path(path));
     }
     else
     {
         return(NMWindows.g_file_new_for_path(path));
     }
 }
Exemplo n.º 16
0
 public static IntPtr gtk_print_settings_get_page_ranges(IntPtr handle, out int num_ranges)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gtk_print_settings_get_page_ranges(handle, out num_ranges));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gtk_print_settings_get_page_ranges(handle, out num_ranges));
     }
     else
     {
         return(NMWindows.gtk_print_settings_get_page_ranges(handle, out num_ranges));
     }
 }
Exemplo n.º 17
0
 public static IntPtr gtk_app_chooser_dialog_new(IntPtr parrent, int flags, IntPtr file)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gtk_app_chooser_dialog_new(parrent, flags, file));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gtk_app_chooser_dialog_new(parrent, flags, file));
     }
     else
     {
         return(NMWindows.gtk_app_chooser_dialog_new(parrent, flags, file));
     }
 }
Exemplo n.º 18
0
 public static void gtk_color_chooser_set_rgba(IntPtr chooser, double[] color)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.gtk_color_chooser_set_rgba(chooser, color);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.gtk_color_chooser_set_rgba(chooser, color);
     }
     else
     {
         NMWindows.gtk_color_chooser_set_rgba(chooser, color);
     }
 }
Exemplo n.º 19
0
 public static IntPtr gtk_header_bar_new()
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gtk_header_bar_new());
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gtk_header_bar_new());
     }
     else
     {
         return(NMWindows.gtk_header_bar_new());
     }
 }
Exemplo n.º 20
0
 public static void gtk_color_chooser_set_use_alpha(IntPtr chooser, bool use_alpha)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.gtk_color_chooser_set_use_alpha(chooser, use_alpha);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.gtk_color_chooser_set_use_alpha(chooser, use_alpha);
     }
     else
     {
         NMWindows.gtk_color_chooser_set_use_alpha(chooser, use_alpha);
     }
 }
Exemplo n.º 21
0
 public static void gtk_header_bar_pack_end(IntPtr bar, IntPtr child)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.gtk_header_bar_pack_end(bar, child);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.gtk_header_bar_pack_end(bar, child);
     }
     else
     {
         NMWindows.gtk_header_bar_pack_end(bar, child);
     }
 }
Exemplo n.º 22
0
 public static bool gtk_color_chooser_get_use_alpha(IntPtr chooser)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gtk_color_chooser_get_use_alpha(chooser));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gtk_color_chooser_get_use_alpha(chooser));
     }
     else
     {
         return(NMWindows.gtk_color_chooser_get_use_alpha(chooser));
     }
 }
Exemplo n.º 23
0
 public static bool gtk_selection_data_set_uris(IntPtr raw, IntPtr[] uris)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gtk_selection_data_set_uris(raw, uris));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gtk_selection_data_set_uris(raw, uris));
     }
     else
     {
         return(NMWindows.gtk_selection_data_set_uris(raw, uris));
     }
 }
Exemplo n.º 24
0
 public static IntPtr gtk_font_chooser_dialog_new(string title, IntPtr parent)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.gtk_font_chooser_dialog_new(title, parent));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.gtk_font_chooser_dialog_new(title, parent));
     }
     else
     {
         return(NMWindows.gtk_font_chooser_dialog_new(title, parent));
     }
 }
Exemplo n.º 25
0
 public static void webkit_web_view_load_uri(IntPtr web_view, string uri)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.webkit_web_view_load_uri(web_view, uri);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.webkit_web_view_load_uri(web_view, uri);
     }
     else
     {
         NMWindows.webkit_web_view_load_uri(web_view, uri);
     }
 }
Exemplo n.º 26
0
 public static string gtk_font_chooser_get_font(IntPtr fontchooser)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(GetString(NMLinux.gtk_font_chooser_get_font(fontchooser)));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(GetString(NMMac.gtk_font_chooser_get_font(fontchooser)));
     }
     else
     {
         return(GetString(NMWindows.gtk_font_chooser_get_font(fontchooser)));
     }
 }
Exemplo n.º 27
0
 public static string webkit_web_view_get_title(IntPtr web_view)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(GetString(NMLinux.webkit_web_view_get_title(web_view)));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(GetString(NMMac.webkit_web_view_get_title(web_view)));
     }
     else
     {
         return(GetString(NMWindows.webkit_web_view_get_title(web_view)));
     }
 }
Exemplo n.º 28
0
 public static void gtk_font_chooser_set_font(IntPtr fontchooser, string fontname)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.gtk_font_chooser_set_font(fontchooser, fontname);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.gtk_font_chooser_set_font(fontchooser, fontname);
     }
     else
     {
         NMWindows.gtk_font_chooser_set_font(fontchooser, fontname);
     }
 }
Exemplo n.º 29
0
 public static void webkit_web_view_go_forward(IntPtr web_view)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         NMLinux.webkit_web_view_go_forward(web_view);
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         NMMac.webkit_web_view_go_forward(web_view);
     }
     else
     {
         NMWindows.webkit_web_view_go_forward(web_view);
     }
 }
Exemplo n.º 30
0
 public static int JSStringGetMaximumUTF8CStringSize(IntPtr js_str_value)
 {
     if (EtoEnvironment.Platform.IsLinux)
     {
         return(NMLinux.JSStringGetMaximumUTF8CStringSize(js_str_value));
     }
     else if (EtoEnvironment.Platform.IsMac)
     {
         return(NMMac.JSStringGetMaximumUTF8CStringSize(js_str_value));
     }
     else
     {
         return(NMWindows.JSStringGetMaximumUTF8CStringSize(js_str_value));
     }
 }