Exemple #1
0
        public static void send_mouse_wheel_event(cef_browser_host_t *self, cef_mouse_event_t * @event, int deltaX, int deltaY)
        {
            send_mouse_wheel_event_delegate d;
            var p = self->_send_mouse_wheel_event;

            if (p == _p1e)
            {
                d = _d1e;
            }
            else
            {
                d = (send_mouse_wheel_event_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(send_mouse_wheel_event_delegate));
                if (_p1e == IntPtr.Zero)
                {
                    _d1e = d; _p1e = p;
                }
            }
            d(self, @event, deltaX, deltaY);
        }
 public static void send_mouse_wheel_event(cef_browser_host_t* self, cef_mouse_event_t* @event, int deltaX, int deltaY)
 {
     send_mouse_wheel_event_delegate d;
     var p = self->_send_mouse_wheel_event;
     if (p == _p1f) { d = _d1f; }
     else
     {
         d = (send_mouse_wheel_event_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(send_mouse_wheel_event_delegate));
         if (_p1f == IntPtr.Zero) { _d1f = d; _p1f = p; }
     }
     d(self, @event, deltaX, deltaY);
 }