UpdateRegionObserver Class Reference

#include <gfx_image_updateregion.h>

Public Member Functions

 ~UpdateRegionObserver ()
 
Result< void > AddObserver (const ImageBaseRef &image)
 
void RemoveObserver ()
 
Range< IntVector2dGetRegionAndReset ()
 

Private Attributes

FunctionBaseRef _observer
 
UpdateRegion _dirtyRegion
 
WeakRef< ImageBaseRef > _image
 

Constructor & Destructor Documentation

◆ ~UpdateRegionObserver()

Member Function Documentation

◆ AddObserver()

Result<void> AddObserver ( const ImageBaseRef &  image)

◆ RemoveObserver()

void RemoveObserver ( )

◆ GetRegionAndReset()

Range<IntVector2d> GetRegionAndReset ( )

Member Data Documentation

◆ _observer

FunctionBaseRef _observer
private

◆ _dirtyRegion

UpdateRegion _dirtyRegion
private

◆ _image

WeakRef<ImageBaseRef> _image
private