NetSurf
Data Structures | Functions | Variables
bitmap.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "utils/errors.h"
#include "netsurf/bitmap.h"
#include "monkey/output.h"
#include "monkey/bitmap.h"
Include dependency graph for bitmap.c:

Go to the source code of this file.

Data Structures

struct  bitmap
 RISC OS wimp toolkit bitmap. More...
 

Functions

static void * bitmap_create (int width, int height, enum gui_bitmap_flags flags)
 
static void bitmap_destroy (void *bitmap)
 
static void bitmap_set_opaque (void *bitmap, bool opaque)
 
static bool bitmap_get_opaque (void *bitmap)
 
static unsigned char * bitmap_get_buffer (void *bitmap)
 
static size_t bitmap_get_rowstride (void *bitmap)
 
static void bitmap_modified (void *bitmap)
 
static int bitmap_get_width (void *bitmap)
 
static int bitmap_get_height (void *bitmap)
 
static nserror bitmap_render (struct bitmap *bitmap, struct hlcache_handle *content)
 

Variables

static struct gui_bitmap_table bitmap_table
 
struct gui_bitmap_tablemonkey_bitmap_table = &bitmap_table
 

Function Documentation

◆ bitmap_create()

static void * bitmap_create ( int  width,
int  height,
enum gui_bitmap_flags  flags 
)
static

Definition at line 37 of file bitmap.c.

References BITMAP_OPAQUE, bitmap::height, height, bitmap::opaque, bitmap::ptr, bitmap::width, and width.

◆ bitmap_destroy()

static void bitmap_destroy ( void *  bitmap)
static

Definition at line 57 of file bitmap.c.

References bitmap(), and bitmap::ptr.

Here is the call graph for this function:

◆ bitmap_get_buffer()

static unsigned char * bitmap_get_buffer ( void *  bitmap)
static

Definition at line 78 of file bitmap.c.

References bitmap(), and bitmap::ptr.

Here is the call graph for this function:

◆ bitmap_get_height()

static int bitmap_get_height ( void *  bitmap)
static

Definition at line 102 of file bitmap.c.

References bitmap(), and bitmap::height.

Here is the call graph for this function:

◆ bitmap_get_opaque()

static bool bitmap_get_opaque ( void *  bitmap)
static

Definition at line 71 of file bitmap.c.

References bitmap(), and bitmap::opaque.

Here is the call graph for this function:

◆ bitmap_get_rowstride()

static size_t bitmap_get_rowstride ( void *  bitmap)
static

Definition at line 85 of file bitmap.c.

References bitmap(), and bitmap::width.

Here is the call graph for this function:

◆ bitmap_get_width()

static int bitmap_get_width ( void *  bitmap)
static

Definition at line 96 of file bitmap.c.

References bitmap(), and bitmap::width.

Here is the call graph for this function:

◆ bitmap_modified()

static void bitmap_modified ( void *  bitmap)
static

Definition at line 91 of file bitmap.c.

◆ bitmap_render()

static nserror bitmap_render ( struct bitmap bitmap,
struct hlcache_handle content 
)
static

Definition at line 108 of file bitmap.c.

References MOUT_GENERIC, moutf(), and NSERROR_OK.

Here is the call graph for this function:

◆ bitmap_set_opaque()

static void bitmap_set_opaque ( void *  bitmap,
bool  opaque 
)
static

Definition at line 64 of file bitmap.c.

References bitmap(), and bitmap::opaque.

Here is the call graph for this function:

Variable Documentation

◆ bitmap_table

struct gui_bitmap_table bitmap_table
static
Initial value:
= {
.create = bitmap_create,
.destroy = bitmap_destroy,
.set_opaque = bitmap_set_opaque,
.get_opaque = bitmap_get_opaque,
.get_buffer = bitmap_get_buffer,
.get_rowstride = bitmap_get_rowstride,
.get_width = bitmap_get_width,
.get_height = bitmap_get_height,
.modified = bitmap_modified,
.render = bitmap_render,
}
int bitmap_get_width(void *bitmap)
get width of a bitmap.
Definition: bitmap.c:319
int bitmap_get_height(void *bitmap)
get height of a bitmap.
Definition: bitmap.c:336
static void bitmap_modified(void *bitmap)
Definition: bitmap.c:91
static size_t bitmap_get_rowstride(void *bitmap)
Definition: bitmap.c:85
static nserror bitmap_render(struct bitmap *bitmap, struct hlcache_handle *content)
Definition: bitmap.c:108
static unsigned char * bitmap_get_buffer(void *bitmap)
Definition: bitmap.c:78
static void bitmap_set_opaque(void *bitmap, bool opaque)
Definition: bitmap.c:64
static bool bitmap_get_opaque(void *bitmap)
Definition: bitmap.c:71
static void * bitmap_create(int width, int height, enum gui_bitmap_flags flags)
Definition: bitmap.c:37
static void bitmap_destroy(void *bitmap)
Definition: bitmap.c:57

Definition at line 115 of file bitmap.c.

◆ monkey_bitmap_table

struct gui_bitmap_table* monkey_bitmap_table = &bitmap_table

Definition at line 128 of file bitmap.c.

Referenced by main().