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 }
public unsafe extern void OnCursorChange(cef_browser_t *browser, IntPtr cursor, CefCursorType type, [Immutable] cef_cursor_info_t *custom_cursor_info);
internal CefCursorInfo(cef_cursor_info_t *ptr) { _ptr = ptr; }
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(); } }
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); }
internal void Dispose() { _ptr = null; }
internal CefCursorInfo(cef_cursor_info_t* ptr) { _ptr = ptr; }