Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
inexor::ui::InexorRenderHandler Class Reference

#include <InexorRenderHandler.hpp>

Inheritance diagram for inexor::ui::InexorRenderHandler:

Public Member Functions

 InexorRenderHandler (bool transparent, int x, int y, int width, int height)
 
 ~InexorRenderHandler () override
 
void Initialize ()
 
void Cleanup ()
 
void OnPopupShow (CefRefPtr< CefBrowser > browser, bool show) override
 
void OnPopupSize (CefRefPtr< CefBrowser > browser, const CefRect &rect) override
 
bool GetViewRect (CefRefPtr< CefBrowser > browser, CefRect &rect) override
 
bool SetViewRect (int view_x, int view_y, int view_width, int view_height)
 
void OnPaint (CefRefPtr< CefBrowser > browser, CefRenderHandler::PaintElementType type, const CefRenderHandler::RectList &dirtyRects, const void *buffer, int width, int height) override
 
bool IsTransparent ()
 
int GetViewX ()
 
int GetViewY ()
 
int GetViewWidth ()
 
int GetViewHeight ()
 
const CefRect & PopupRect () const
 
const CefRect & OriginalPopupRect () const
 
CefRect GetPopupRectInWebView (const CefRect &original_rect)
 
void ClearPopupRects ()
 
bool IsInitialized ()
 
unsigned int GetTextureId ()
 

Private Member Functions

 IMPLEMENT_REFCOUNTING (InexorRenderHandler)
 

Private Attributes

const bool transparent
 
bool initialized
 
bool texture_initialized
 
unsigned int texture_id
 
int view_x
 
int view_y
 
int view_width
 
int view_height
 
bool _view_change_deferred
 
int _view_x
 
int _view_y
 
int _view_width
 
int _view_height
 
CefRect popup_rect
 
CefRect original_popup_rect
 

Constructor & Destructor Documentation

inexor::ui::InexorRenderHandler::InexorRenderHandler ( bool  transparent,
int  x,
int  y,
int  width,
int  height 
)
inexor::ui::InexorRenderHandler::~InexorRenderHandler ( )
override

References Cleanup().

Member Function Documentation

void inexor::ui::InexorRenderHandler::Cleanup ( )

References texture_id.

Referenced by ~InexorRenderHandler().

void inexor::ui::InexorRenderHandler::ClearPopupRects ( )

References original_popup_rect, and popup_rect.

Referenced by OnPopupShow().

CefRect inexor::ui::InexorRenderHandler::GetPopupRectInWebView ( const CefRect &  original_rect)

References view_height, and view_width.

Referenced by OnPopupSize().

unsigned int inexor::ui::InexorRenderHandler::GetTextureId ( )
inline
int inexor::ui::InexorRenderHandler::GetViewHeight ( )
inline

References view_height.

bool inexor::ui::InexorRenderHandler::GetViewRect ( CefRefPtr< CefBrowser >  browser,
CefRect &  rect 
)
override
int inexor::ui::InexorRenderHandler::GetViewWidth ( )
inline

References view_width.

int inexor::ui::InexorRenderHandler::GetViewX ( )
inline

References view_x.

int inexor::ui::InexorRenderHandler::GetViewY ( )
inline

References view_y.

inexor::ui::InexorRenderHandler::IMPLEMENT_REFCOUNTING ( InexorRenderHandler  )
private
void inexor::ui::InexorRenderHandler::Initialize ( )
bool inexor::ui::InexorRenderHandler::IsInitialized ( )
inline

References initialized.

bool inexor::ui::InexorRenderHandler::IsTransparent ( )
inline

References transparent.

void inexor::ui::InexorRenderHandler::OnPaint ( CefRefPtr< CefBrowser >  browser,
CefRenderHandler::PaintElementType  type,
const CefRenderHandler::RectList &  dirtyRects,
const void buffer,
int  width,
int  height 
)
override
void inexor::ui::InexorRenderHandler::OnPopupShow ( CefRefPtr< CefBrowser >  browser,
bool  show 
)
override

References ClearPopupRects().

void inexor::ui::InexorRenderHandler::OnPopupSize ( CefRefPtr< CefBrowser >  browser,
const CefRect &  rect 
)
override
const CefRect& inexor::ui::InexorRenderHandler::OriginalPopupRect ( ) const
inline

References original_popup_rect.

const CefRect& inexor::ui::InexorRenderHandler::PopupRect ( ) const
inline

References popup_rect.

bool inexor::ui::InexorRenderHandler::SetViewRect ( int  view_x,
int  view_y,
int  view_width,
int  view_height 
)

Member Data Documentation

bool inexor::ui::InexorRenderHandler::_view_change_deferred
private

Referenced by OnPaint(), and SetViewRect().

int inexor::ui::InexorRenderHandler::_view_height
private

Referenced by OnPaint(), and SetViewRect().

int inexor::ui::InexorRenderHandler::_view_width
private

Referenced by OnPaint(), and SetViewRect().

int inexor::ui::InexorRenderHandler::_view_x
private

Referenced by OnPaint(), and SetViewRect().

int inexor::ui::InexorRenderHandler::_view_y
private

Referenced by OnPaint(), and SetViewRect().

bool inexor::ui::InexorRenderHandler::initialized
private
CefRect inexor::ui::InexorRenderHandler::original_popup_rect
private
CefRect inexor::ui::InexorRenderHandler::popup_rect
private
unsigned int inexor::ui::InexorRenderHandler::texture_id
private

Referenced by Cleanup(), Initialize(), and OnPaint().

bool inexor::ui::InexorRenderHandler::texture_initialized
private

Referenced by OnPaint(), and SetViewRect().

const bool inexor::ui::InexorRenderHandler::transparent
private

Referenced by IsTransparent().

int inexor::ui::InexorRenderHandler::view_height
private
int inexor::ui::InexorRenderHandler::view_width
private
int inexor::ui::InexorRenderHandler::view_x
private
int inexor::ui::InexorRenderHandler::view_y
private

The documentation for this class was generated from the following files: