public unsafe void MouseOutsideMenu(cef_menu_model_t *menu_model, [Immutable] cef_point_t *screen_point) { fixed(cef_menu_model_delegate_t *self = &this) { ((delegate * unmanaged[Stdcall] < cef_menu_model_delegate_t *, cef_menu_model_t *, cef_point_t *, void >)mouse_outside_menu)(self, menu_model, screen_point); } }
private static unsafe void MouseOutsideMenuImpl(cef_menu_model_delegate_t *self, cef_menu_model_t *menu_model, cef_point_t *screen_point) { var instance = GetInstance((IntPtr)self) as CefMenuModelDelegate; if (instance == null || ((ICefMenuModelDelegatePrivate)instance).AvoidMouseOutsideMenu()) { ReleaseIfNonNull((cef_base_ref_counted_t *)menu_model); return; } instance.MouseOutsideMenu(CefMenuModel.Wrap(CefMenuModel.Create, menu_model), *(CefPoint *)screen_point); }
private void mouse_outside_menu(cef_menu_model_delegate_t *self, cef_menu_model_t *menu_model, cef_point_t *screen_point) { CheckSelf(self); var m_menuModel = CefMenuModel.FromNative(menu_model); var m_screenPoint = new CefPoint(screen_point->x, screen_point->y); MouseOutsideMenu(m_menuModel, m_screenPoint); }
public unsafe extern void MouseOutsideMenu(cef_menu_model_t *menu_model, [Immutable] cef_point_t *screen_point);
public unsafe extern void ShowDevTools([Immutable] cef_window_info_t *windowInfo, cef_client_t *client, [Immutable] cef_browser_settings_t *settings, [Immutable] cef_point_t *inspect_element_at);
/// <summary> /// Open developer tools in its own window. If |inspect_element_at| is non- /// empty the element at the specified (x,y) location will be inspected. /// </summary> public void ShowDevTools(cef_window_info_t *windowInfo, cef_client_t *client, cef_browser_settings_t *settings, cef_point_t *inspect_element_at) { throw new NotImplementedException(); // TODO: CefBrowserHost.ShowDevTools }
public static void show_dev_tools(cef_browser_host_t *self, cef_window_info_t *windowInfo, cef_client_t *client, cef_browser_settings_t *settings, cef_point_t *inspect_element_at) { show_dev_tools_delegate d; var p = self->_show_dev_tools; if (p == _p12) { d = _d12; } else { d = (show_dev_tools_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(show_dev_tools_delegate)); if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; } } d(self, windowInfo, client, settings, inspect_element_at); }