Click or drag to resize

DefaultRenderHandler Class

Version 98.1.210
Default implementation of IRenderHandler, this class handles Offscreen Rendering (OSR). Upstream documentation at http://magpcss.org/ceforum/apidocs3/projects/(default)/CefRenderHandler.html
Inheritance Hierarchy
SystemObject
  CefSharp.OffScreenDefaultRenderHandler

Namespace:  CefSharp.OffScreen
Assembly:  CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 98.1.210.0 (98.1.210.0)
Syntax
public class DefaultRenderHandler : IRenderHandler, 
	IDisposable

The DefaultRenderHandler type exposes the following members.

Constructors
  NameDescription
Public methodDefaultRenderHandler
Create a new instance of DefaultRenderHadler
Top
Properties
  NameDescription
Public propertyBitmapBuffer
Contains the last bitmap buffer. Direct access to the underlying buffer - there is no locking when trying to access directly, use BitmapLock where appropriate.
Public propertyPopupBuffer
The popup Bitmap.
Public propertyPopupOpen
Gets or sets a value indicating whether the popup is open.
Public propertyPopupPosition
Gets the popup position.
Public propertyPopupSize
Gets the size of the popup.
Top
Methods
  NameDescription
Public methodDispose
Dispose of this instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetViewRect
Called to retrieve the view rectangle which is relative to screen coordinates. This method must always provide a non-empty rectangle.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnAcceleratedPaint
Called when an element has been rendered to the shared texture handle. This method is only called when SharedTextureEnabled is set to true
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 DeviceScaleFactor returned from GetScreenInfo. This method is only called when SharedTextureEnabled is set to false. 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 methodOnVirtualKeyboardRequested
Called when an on-screen keyboard should be shown or hidden for the specified browser.
Public methodStartDragging
Called when the user starts dragging content in the web view. Contextual information about the dragged content is supplied by dragData. OS APIs that run a system message loop may be used within the StartDragging call. Don't call any of the IBrowserHost.DragSource*Ended* methods after returning false. Return true to handle the drag operation. Call DragSourceEndedAt(Int32, Int32, DragOperationsMask) and DragSourceSystemDragEnded either synchronously or asynchronously to inform the web view that the drag operation has ended.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateDragCursor
Called when the web view wants to update the mouse cursor during a drag & drop operation.
Top
Fields
  NameDescription
Public fieldBitmapLock
Need a lock because the caller may be asking for the bitmap while Chromium async rendering has returned on another thread.
Top
See Also