11#ifndef __MUTEKI_UI_SURFACE_H__
12#define __MUTEKI_UI_SURFACE_H__
Descriptor of an LCD drawing surface or hardware framebuffer.
Definition common.h:728
size_t SizeofGraphic(lcd_surface_t *surface)
Calculate the total on-memory size of a surface (including descriptor).
void _BitBlt(lcd_surface_t *dst, short xdstoffset, short ydstoffset, short xsize, short ysize, lcd_surface_t *src, int xsrcoffset, int ysrcoffset, unsigned short flags)
Perform blit operation from src surface to dst surface.
void * ImageData(lcd_surface_t *surface)
Get the palette and bitmap buffer for an all-in-one surface.
size_t GetImageSizeExt(short width, short height, short depth)
Calculate the buffer size required for an all-in-one surface of a specific pixel format and size.
size_t GetImageSize(short width, short height)
Calculate the buffer size required for an all-in-one surface of a specific size.
void FreeImage(lcd_surface_t *surface)
Dispose an all-in-one surface.
lcd_surface_t * InitGraphic(lcd_surface_t *surface, short width, short height, short depth)
Initialize a buffer as an all-in-one surface.
size_t SizeofImage(lcd_surface_t *surface)
Get the total on-memory size of a surface, in bytes.
Common data structures and definitions for the UI subsystem.