Click or drag to resize

IRenderHandler Interface

Version 67.0.0
Implement this interface to handle Offscreen Rendering (OSR). NOTE: Currently only OnPaint is implemented, at some point expand the API to include all of CefRenderHandler methods http://magpcss.org/ceforum/apidocs3/projects/(default)/CefRenderHandler.html

Namespace:  CefSharp.OffScreen
Assembly:  CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 67.0.0.0 (67.0.0.0)
Syntax
public interface IRenderHandler : IDisposable

The IRenderHandler type exposes the following members.

Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetScreenInfo
Called to allow the client to return a ScreenInfo object with appropriate values. If null is returned then the rectangle from GetViewRect will be used. If the rectangle is still empty or invalid popups may not be drawn correctly.
Public methodGetScreenPoint
Called to retrieve the translation from view coordinates to actual screen coordinates.
Public methodGetViewRect
Called to retrieve the view rectangle which is relative to screen coordinates.
Public methodOnCursorChange
Called when the browser's cursor has changed. .
Public methodOnImeCompositionRangeChanged
Called when the IME composition range has changed.
Public methodOnPaint
Called when an element should be painted. Pixel values passed to this method are scaled relative to view coordinates based on the value of [!:ScreenInfo.ScaleFactor] returned from GetScreenInfo. Called on the CEF UI Thread
Public methodOnPopupShow
Called when the browser wants to show or hide the popup widget.
Public methodOnPopupSize
Called when the browser wants to move or resize the popup widget.
Public methodStartDragging
Called when the user starts dragging content in the web view. Contextual information about the dragged content is supplied by dragData. (|x|, |y|) is the drag start location in screen coordinates. OS APIs that run a system message loop may be used within the StartDragging call. Return false to abort the drag operation. Don't call any of CefBrowserHost::DragSource*Ended* methods after returning false. Return true to handle the drag operation. Call IBrowserHost::DragSourceEndedAt and DragSourceSystemDragEnded either synchronously or asynchronously to inform the web view that the drag operation has ended.
Public methodUpdateDragCursor
Top
See Also