46 #ifndef LE_PIXELBUFFER_H 47 #define LE_PIXELBUFFER_H 97 uint32_t buffer_length;
144 const int32_t height,
146 const void*
const address,
452 const leColor color);
Color definitions and functions.
leColor lePixelBufferGet(const lePixelBuffer *const buffer, uint32_t x, uint32_t y)
Get pixel at point.
Definition: legato_pixelbuffer.c:272
leBuffer lePixelBufferOffsetGet_Unsafe(const lePixelBuffer *const buffer, uint32_t x, uint32_t y)
Get buffer at point.
Definition: legato_pixelbuffer.c:256
leResult lePixelBufferSet_Unsafe(const lePixelBuffer *const buffer, uint32_t x, uint32_t y, leColor color)
Pixel set.
Definition: legato_pixelbuffer.c:369
leResult lePixelBufferClipRect(const lePixelBuffer *const buffer, const leRect *const rect, leRect *result)
Clip rectangle.
Definition: legato_pixelbuffer.c:315
leResult lePixelBuffer_SetLocked(lePixelBuffer *buffer, leBool locked)
Sets the lock.
leResult lePixelBufferCreate(const int32_t width, const int32_t height, const leColorMode mode, const void *const address, lePixelBuffer *buffer)
Create a pixelbuffer.
Definition: legato_pixelbuffer.c:184
leResult
This enum represents function call results.
Definition: legato_common.h:123
This struct represents a rectangle.
Definition: legato_common.h:394
BufferFlags
leArray data structure definition.
Definition: legato_pixelbuffer.h:65
This structure is used represents the size of an item.
Definition: legato_common.h:370
leBool lePixelBuffer_IsLocked(const lePixelBuffer *const buffer)
Determines the lock state.
leColor lePixelBufferGet_Unsafe(const lePixelBuffer *const buffer, uint32_t x, uint32_t y)
Get pixel at point.
Definition: legato_pixelbuffer.c:282
leColor lePixelBufferGetIndex(const lePixelBuffer *const buffer, const uint32_t idx)
Get color at index.
Definition: legato_pixelbuffer.c:339
Definition: legato_pixelbuffer.h:90
leBuffer lePixelBufferOffsetGet(const lePixelBuffer *const buffer, uint32_t x, uint32_t y)
Get buffer at point.
Definition: legato_pixelbuffer.c:237
leColorMode
This enum represents the supported RGB color formats.
Definition: legato_color.h:148
leColor lePixelBufferGetIndex_Unsafe(const lePixelBuffer *const buffer, const uint32_t idx)
Pixel get.
Definition: legato_pixelbuffer.c:348
leBool
This enum represents booleans.
Definition: legato_common.h:146
void * leBuffer
This typedef represents general-purpose buffer.
Definition: legato_common.h:407
leResult lePixelBufferSet(const lePixelBuffer *const buffer, uint32_t x, uint32_t y, leColor color)
Pixel set.
Definition: legato_pixelbuffer.c:354
leResult lePixelBufferAreaFill(const lePixelBuffer *const buffer, uint32_t x, uint32_t y, uint32_t w, uint32_t h, const leColor color)
Area fill with checking.
Definition: legato_pixelbuffer.c:402
leResult lePixelBufferAreaFill_Unsafe(const lePixelBuffer *const buffer, uint32_t x, uint32_t y, uint32_t w, uint32_t h, leColor color)
Area fill no checking.
Definition: legato_pixelbuffer.c:433