public static void send_mouse_click_event(cef_browser_host_t *self, cef_mouse_event_t * @event, CefMouseButtonType type, int mouseUp, int clickCount) { send_mouse_click_event_delegate d; var p = self->_send_mouse_click_event; if (p == _p1c) { d = _d1c; } else { d = (send_mouse_click_event_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(send_mouse_click_event_delegate)); if (_p1c == IntPtr.Zero) { _d1c = d; _p1c = p; } } d(self, @event, type, mouseUp, clickCount); }
public static void send_mouse_click_event(cef_browser_host_t* self, cef_mouse_event_t* @event, CefMouseButtonType type, int mouseUp, int clickCount) { send_mouse_click_event_delegate d; var p = self->_send_mouse_click_event; if (p == _p1d) { d = _d1d; } else { d = (send_mouse_click_event_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(send_mouse_click_event_delegate)); if (_p1d == IntPtr.Zero) { _d1d = d; _p1d = p; } } d(self, @event, type, mouseUp, clickCount); }