touchgfx::RenderingBuffer::attach() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::RenderingBuffer::attach()

touchgfx::RenderingBuffer::attach() method

@fn void RenderingBuffer::attach(unsigned char* buf_, unsigned char xAdjust_, unsigned width_, unsigned height_, int stride_); Attaches a buffer. Attaches a buffer. Can be used if the buffer is not ready when the Rendering buffer is created initially.

Syntax

void attach(unsigned char* buf_,     unsigned char xAdjust_,     unsigned width_,     unsigned height_,     int stride_);

Arguments

buf_

xAdjust_

Horizontal adjustment of the x coordinate, used when bits per pixel is less than eight which implies that a uint8_t pointer cannot precisely address the start of the frame buffer.

width_

The width of the frame buffer to write.

height_

The height of the frame buffer to write.

stride_

How much to add the a pointer inside the frame buffer to advance to the next line in the frame buffer.

References

LocationText
RenderingBuffer.hpp:126
void attach(unsigned char* buf_,