Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBRendererListener Class Referenceabstract

TBRendererListener is a listener for TBRenderer. More...

#include <tb_renderer.h>

Inheritance diagram for tb::TBRendererListener:
tb::TBLinkOf< TBRendererListener > tb::TBLink tb::TBFontGlyphCache tb::TBSkin

Public Member Functions

virtual void OnContextLost ()=0
 Called when the context has been lost and all TBBitmaps need to be deleted. More...
 
virtual void OnContextRestored ()=0
 Called when the context has been restored again, and new TBBitmaps can be created again. More...
 

Additional Inherited Members

Detailed Description

TBRendererListener is a listener for TBRenderer.

Member Function Documentation

virtual void tb::TBRendererListener::OnContextLost ( )
pure virtual

Called when the context has been lost and all TBBitmaps need to be deleted.

NOTE: Only do cleanup here. It's not safe to do work on any bitmap since the context is already lost.

Implemented in tb::TBSkin, and tb::TBFontGlyphCache.

virtual void tb::TBRendererListener::OnContextRestored ( )
pure virtual

Called when the context has been restored again, and new TBBitmaps can be created again.

Implemented in tb::TBSkin, and tb::TBFontGlyphCache.


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