Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefRenderHandler

CefBase
   |
   +--CefRenderHandler

   in cef_render_handler.h

class CefRenderHandler
extends CefBase

Implement this interface to handle events when window rendering is disabled. The methods of this class will be called on the UI thread.


Inner Classes, Typedefs, and Enums
typedef CefRenderHandler::PaintElementType
          
typedef CefRenderHandler::RectList
          
 
Method Summary
 virtual bool GetScreenPoint( CefRefPtr< CefBrowser > browser, int viewX, int viewY, int& screenX, int& screenY )
          Called to retrieve the translation from view coordinates to actual screen coordinates.
 virtual bool GetScreenRect( CefRefPtr< CefBrowser > browser, CefRect& rect )
          Called to retrieve the simulated screen rectangle.
 virtual bool GetViewRect( CefRefPtr< CefBrowser > browser, CefRect& rect )
          Called to retrieve the view rectangle which is relative to screen coordinates.
 virtual void OnCursorChange( CefRefPtr< CefBrowser > browser, CefCursorHandle cursor )
          Called when the browser window's cursor has changed.
 virtual void OnPaint( CefRefPtr< CefBrowser > browser, CefRenderHandler::PaintElementType type, const CefRenderHandler::RectList& dirtyRects, const void* buffer )
          Called when an element should be painted.
 virtual void OnPopupShow( CefRefPtr< CefBrowser > browser, bool show )
          Called when the browser wants to show or hide the popup widget.
 virtual void OnPopupSize( CefRefPtr< CefBrowser > browser, const CefRect& rect )
          Called when the browser wants to move or resize the popup widget.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

GetScreenPoint

public virtual bool GetScreenPoint( CefRefPtr< CefBrowser > browser, int viewX, int viewY, int& screenX, int& screenY );
Called to retrieve the translation from view coordinates to actual screen coordinates. Return true if the screen coordinates were provided.

GetScreenRect

public virtual bool GetScreenRect( CefRefPtr< CefBrowser > browser, CefRect& rect );
Called to retrieve the simulated screen rectangle. Return true if the rectangle was provided.

GetViewRect

public virtual bool GetViewRect( CefRefPtr< CefBrowser > browser, CefRect& rect );
Called to retrieve the view rectangle which is relative to screen coordinates. Return true if the rectangle was provided.

OnCursorChange

public virtual void OnCursorChange( CefRefPtr< CefBrowser > browser, CefCursorHandle cursor );
Called when the browser window's cursor has changed.

OnPaint

public virtual void OnPaint( CefRefPtr< CefBrowser > browser, CefRenderHandler::PaintElementType type, const CefRenderHandler::RectList& dirtyRects, const void* buffer );
Called when an element should be painted. |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 that need to be repainted. On Windows |buffer| will be width*height*4 bytes in size and represents a BGRA image with an upper-left origin. The CefBrowserSettings.animation_frame_rate value controls the rate at which this method is called.

OnPopupShow

public virtual void OnPopupShow( CefRefPtr< CefBrowser > browser, bool show );
Called when the browser wants to show or hide the popup widget. The popup should be shown if |show| is true and hidden if |show| is false.

OnPopupSize

public virtual void OnPopupSize( CefRefPtr< CefBrowser > browser, const CefRect& rect );
Called when the browser wants to move or resize the popup widget. |rect| contains the new location and size.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt