Termux:GUI C/C++ Bindings
Loading...
Searching...
No Matches
tgui_buffer Struct Reference

A shared memory buffer for images. More...

#include <types.h>

Public Attributes

int id
 The buffer id for using the buffer with the plugin. -1 indicates the buffer is deleted.
 
int fd
 The buffer file descriptor used for mapping the buffer. -1 indicates the buffer is deleted.
 
const uint32_t width
 The width in pixels.
 
const uint32_t height
 The height in pixels.
 
const tgui_buffer_format format
 The buffer format. Determines the color channels, their order and the bytes per pixel.
 
void * data
 The buffer data mapped in memory. MAP_FAILED (from <sys/mman.h>) indicates the buffer is deleted.
 

Detailed Description

A shared memory buffer for images.


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