示例#1
0
        /// <summary>
        /// Handle mouse down to handle selection.
        /// </summary>
        /// <param name="parent">the control hosting the html to invalidate</param>
        /// <param name="e">the mouse event args</param>
        public void HandleMouseDown(Control parent, MouseEventArgs e)
        {
            ArgChecker.AssertArgNotNull(parent, "parent");
            ArgChecker.AssertArgNotNull(e, "e");

            _htmlContainerInt.HandleMouseDown(new ControlAdapter(parent), Utils.Convert(e.GetPosition(parent)));
        }
示例#2
0
        /// <summary>
        /// Handle mouse down to handle selection.
        /// </summary>
        /// <param name="parent">the control hosting the html to invalidate</param>
        /// <param name="e">the mouse event args</param>
        public void HandleMouseDown(Control parent, MouseEventArgs e)
        {
            ArgChecker.AssertArgNotNull(parent, "parent");
            ArgChecker.AssertArgNotNull(e, "e");

            _htmlContainerInt.HandleMouseDown(new ControlAdapter(parent, _useGdiPlusTextRendering), Utils.Convert(e.Location));
        }
示例#3
0
 /// <summary>
 /// Handle mouse down to handle selection.
 /// </summary>
 /// <param name="parent">the control hosting the html to invalidate</param>
 /// <param name="e">the mouse event args</param>
 public void HandleMouseDown(SDL.SDL_MouseButtonEvent e)
 {
     _htmlContainerInt.HandleMouseDown(new ControlAdapter(SDL2Adapter.Instance, e.ToRPoint(), e), e.ToRPoint());
 }