39 struct bitmap *ret = calloc(1,
sizeof(*ret));
49 if (ret->
ptr == NULL) {
82 return (
unsigned char *)(bmap->
ptr);
88 return bmap->
width * 4;
nserror
Enumeration of error codes.
int bitmap_get_width(void *bitmap)
get width of a bitmap.
int bitmap_get_height(void *bitmap)
get height of a bitmap.
static struct gui_bitmap_table bitmap_table
static void bitmap_modified(void *bitmap)
static size_t bitmap_get_rowstride(void *bitmap)
static nserror bitmap_render(struct bitmap *bitmap, struct hlcache_handle *content)
struct gui_bitmap_table * monkey_bitmap_table
static unsigned char * bitmap_get_buffer(void *bitmap)
static void bitmap_set_opaque(void *bitmap, bool opaque)
static bool bitmap_get_opaque(void *bitmap)
static void * bitmap_create(int width, int height, enum gui_bitmap_flags flags)
static void bitmap_destroy(void *bitmap)
Generic bitmap handling interface.
gui_bitmap_flags
Bitmap creation flags.
@ BITMAP_OPAQUE
image is opaque
int moutf(enum monkey_output_type mout_type, const char *fmt,...)
RISC OS wimp toolkit bitmap.
int height
height of bitmap
bool opaque
Whether the bitmap is opaque.
Content which corresponds to a single URL.
void *(* create)(int width, int height, enum gui_bitmap_flags flags)
Create a new bitmap.
static nserror bitmap(const struct redraw_context *ctx, struct bitmap *bitmap, int x, int y, int width, int height, colour bg, bitmap_flags_t flags)
Plot a bitmap.