/// <summary> /// Determines if the specified point is contained within this <see cref="CefRect"/> structure. /// </summary> /// <param name="pt">The <see cref="CefPoint"/> to test.</param> /// <returns> /// This method returns true if the point represented by <paramref name="pt"/> /// is contained within this <see cref="CefRect"/> structure; otherwise false. /// </returns> public bool Contains(CefPoint pt) { if (X <= pt.X && pt.X < X + Width && Y <= pt.Y) { return(pt.Y < Y + Height); } return(false); }
/// <summary> /// Called when the user moves the mouse outside the menu and over the owning /// window. /// </summary> protected internal unsafe virtual void MouseOutsideMenu(CefMenuModel menuModel, CefPoint screenPoint) { }
/// <summary> /// Open developer tools (DevTools) in its own browser. The DevTools browser /// will remain associated with this browser. If the DevTools browser is /// already open then it will be focused, in which case the |windowInfo|, /// |client| and |settings| parameters will be ignored. If |inspect_element_at| /// is non-NULL then the element at the specified (x,y) location will be /// inspected. The |windowInfo| parameter will be ignored if this browser is /// wrapped in a cef_browser_view_t. /// </summary> public unsafe virtual void ShowDevTools(CefWindowInfo windowInfo, CefClient client, CefBrowserSettings settings, CefPoint inspectElementAt) { NativeInstance->ShowDevTools(windowInfo.GetNativeInstance(), (client != null) ? client.GetNativeInstance() : null, settings.GetNativeInstance(), (cef_point_t *)&inspectElementAt); GC.KeepAlive(this); }
/// <summary> /// Called when the user moves the mouse outside the menu and over the owning /// window. /// </summary> public unsafe virtual void MouseOutsideMenu(CefMenuModel menuModel, CefPoint screenPoint) { }
/// <summary> /// Computes the location of the specified view point into screen coordinates. /// </summary> /// <param name="point"></param> /// <returns> /// Return true if the screen coordinates were provided. /// </returns> public virtual bool PointToScreen(ref CefPoint point) { return(false); }