예제 #1
0
 internal void Dispose()
 {
     _ptr = null;
 }
        /// <summary>
        /// Called when an element should be painted. Pixel values passed to this
        /// method are scaled relative to view coordinates based on the value of
        /// CefScreenInfo.device_scale_factor returned from GetScreenInfo. |type|
        /// indicates whether the element is the view or the popup widget. |buffer|
        /// contains the pixel data for the whole image. |dirtyRects| contains the set
        /// of rectangles in pixel coordinates that need to be repainted. |buffer| will
        /// be |width|*|height|*4 bytes in size and represents a BGRA image with an
        /// upper-left origin.
        /// </summary>
        // protected abstract void OnPaint(cef_browser_t* browser, CefPaintElementType type, UIntPtr dirtyRectsCount, cef_rect_t* dirtyRects, void* buffer, int width, int height);

        private void on_cursor_change(cef_render_handler_t *self, cef_browser_t *browser, IntPtr cursor, CefCursorType type, cef_cursor_info_t *custom_cursor_info)
        {
            CheckSelf(self);
            throw new NotImplementedException(); // TODO: CefRenderHandler.OnCursorChange
        }
예제 #3
0
 public unsafe extern void OnCursorChange(cef_browser_t *browser, IntPtr cursor, CefCursorType type, [Immutable] cef_cursor_info_t *custom_cursor_info);
예제 #4
0
 internal CefCursorInfo(cef_cursor_info_t *ptr)
 {
     _ptr = ptr;
 }
예제 #5
0
 public unsafe int OnCursorChange(cef_browser_t *browser, IntPtr cursor, CefCursorType type, [Immutable] cef_cursor_info_t *custom_cursor_info)
 {
     fixed(cef_display_handler_t *self = &this)
     {
         return(((delegate * unmanaged[Stdcall] < cef_display_handler_t *, cef_browser_t *, IntPtr, CefCursorType, cef_cursor_info_t *, int >)on_cursor_change)(self, browser, cursor, type, custom_cursor_info));
     }
 }
        private void on_cursor_change(cef_render_handler_t *self, cef_browser_t *browser, IntPtr cursor, CefCursorType type, cef_cursor_info_t *custom_cursor_info)
        {
            CheckSelf(self);

            var m_browser       = CefBrowser.FromNative(browser);
            var m_cefCursorInfo = type == CefCursorType.Custom ? new CefCursorInfo(custom_cursor_info) : null;

            OnCursorChange(m_browser, cursor, type, m_cefCursorInfo);

            if (m_cefCursorInfo != null)
            {
                m_cefCursorInfo.Dispose();
            }
        }
예제 #7
0
        private int on_cursor_change(cef_display_handler_t *self, cef_browser_t *browser, IntPtr cursor, CefCursorType type, cef_cursor_info_t *custom_cursor_info)
        {
            CheckSelf(self);

            var m_browser       = CefBrowser.FromNative(browser);
            var m_cefCursorInfo = type == CefCursorType.Custom ? new CefCursorInfo(custom_cursor_info) : null;

            var m_result = OnCursorChange(m_browser, cursor, type, m_cefCursorInfo);

            if (m_cefCursorInfo != null)
            {
                m_cefCursorInfo.Dispose();
            }
            return(m_result ? 1 : 0);
        }
예제 #8
0
 internal void Dispose()
 {
     _ptr = null;
 }
예제 #9
0
 internal CefCursorInfo(cef_cursor_info_t* ptr)
 {
     _ptr = ptr;
 }