Skip to main content

FrameBufferListener

touchgfx/hal/FrameBufferListener.hpp

This class is an abstract interface for a class listening for framebuffer address changes.

Public Functions

virtual voidsetFrameBuffer(uint8_t *const buffer, uint32_t width) =0
Called when the client (drawing) framebuffer changes.
virtual ~FrameBufferListener()
Virtual destructor.

Public Functions Documentation

setFrameBuffer

virtual void setFrameBuffer(uint8_t *constbuffer ,=0
uint32_twidth=0
)=0

Called when the client (drawing) framebuffer changes.

Parameters:
bufferThe new client framebuffer address.
widthThe width (stride) of the framebuffer in pixels.

~FrameBufferListener

Virtual destructor.