/// <summary> /// Send a mouse move event to the browser. The |x| and |y| coordinates are /// relative to the upper-left corner of the view. /// </summary> public void SendMouseMoveEvent(CefMouseEvent @event, bool mouseLeave) { var n_event = @event.ToNative(); cef_browser_host_t.send_mouse_move_event(_self, &n_event, mouseLeave ? 1 : 0); }
/// <summary> /// Send a mouse wheel event to the browser. The |x| and |y| coordinates are /// relative to the upper-left corner of the view. The |deltaX| and |deltaY| /// values represent the movement delta in the X and Y directions respectively. /// In order to scroll inside select popups with window rendering disabled /// CefRenderHandler::GetScreenPoint should be implemented properly. /// </summary> public void SendMouseWheelEvent(CefMouseEvent @event, int deltaX, int deltaY) { var n_event = @event.ToNative(); cef_browser_host_t.send_mouse_wheel_event(_self, &n_event, deltaX, deltaY); }
/// <summary> /// Send a mouse click event to the browser. The |x| and |y| coordinates are /// relative to the upper-left corner of the view. /// </summary> public void SendMouseClickEvent(CefMouseEvent @event, CefMouseButtonType type, bool mouseUp, int clickCount) { var n_event = @event.ToNative(); cef_browser_host_t.send_mouse_click_event(_self, &n_event, type, mouseUp ? 1 : 0, clickCount); }