NetSurf
Data Fields
gui_bitmap_table Struct Reference

Bitmap operations. More...

#include <bitmap.h>

Data Fields

void *(* create )(int width, int height, enum gui_bitmap_flags flags)
 Create a new bitmap. More...
 
void(* destroy )(void *bitmap)
 Destroy a bitmap. More...
 
void(* set_opaque )(void *bitmap, bool opaque)
 Set the opacity of a bitmap. More...
 
bool(* get_opaque )(void *bitmap)
 Get the opacity of a bitmap. More...
 
unsigned char *(* get_buffer )(void *bitmap)
 Get the image buffer from a bitmap. More...
 
size_t(* get_rowstride )(void *bitmap)
 Get the number of bytes per row of the image. More...
 
int(* get_width )(void *bitmap)
 Get the bitmap width. More...
 
int(* get_height )(void *bitmap)
 Get the bitmap height. More...
 
void(* modified )(void *bitmap)
 Marks a bitmap as modified. More...
 
nserror(* render )(struct bitmap *bitmap, struct hlcache_handle *content)
 Render content into a bitmap. More...
 

Detailed Description

Bitmap operations.

Definition at line 125 of file bitmap.h.

Field Documentation

◆ create

void *(* gui_bitmap_table::create) (int width, int height, enum gui_bitmap_flags flags)

◆ destroy

void(* gui_bitmap_table::destroy) (void *bitmap)

◆ get_buffer

unsigned char *(* gui_bitmap_table::get_buffer) (void *bitmap)

◆ get_height

int(* gui_bitmap_table::get_height) (void *bitmap)

Get the bitmap height.

Parameters
bitmapThe bitmap
Returns
The bitmap height in pixels.

Definition at line 193 of file bitmap.h.

Referenced by bitmap_format_convert(), bitmap_test_opaque(), browser_window_history__clone_entry(), calc_row_pointers(), image_bitmap_plot(), treeview_generate_copy_bitmap(), treeview_generate_rotate_bitmap(), and verify_bitmap_register().

◆ get_opaque

bool(* gui_bitmap_table::get_opaque) (void *bitmap)

Get the opacity of a bitmap.

Parameters
bitmapThe bitmap to examine.
Returns
The bitmap opacity.

Definition at line 159 of file bitmap.h.

Referenced by bitmap_format_convert(), gif_content_is_opaque(), image_bitmap_plot(), image_cache_is_opaque(), knockout_plot_bitmap(), nsbmp_content_is_opaque(), nsico_is_opaque(), nssprite_content_is_opaque(), rsvg_content_is_opaque(), and verify_bitmap_register().

◆ get_rowstride

size_t(* gui_bitmap_table::get_rowstride) (void *bitmap)

◆ get_width

int(* gui_bitmap_table::get_width) (void *bitmap)

Get the bitmap width.

Parameters
bitmapThe bitmap
Returns
The bitmap width in pixels.

Definition at line 185 of file bitmap.h.

Referenced by bitmap_format_convert(), bitmap_test_opaque(), image_bitmap_plot(), treeview_generate_copy_bitmap(), treeview_generate_rotate_bitmap(), and verify_bitmap_register().

◆ modified

void(* gui_bitmap_table::modified) (void *bitmap)

◆ render

nserror(* gui_bitmap_table::render) (struct bitmap *bitmap, struct hlcache_handle *content)

Render content into a bitmap.

Parameters
bitmapThe bitmap to render into.
contentThe content to render.

Definition at line 208 of file bitmap.h.

Referenced by browser_window_history_add(), browser_window_history_update(), and verify_bitmap_register().

◆ set_opaque

void(* gui_bitmap_table::set_opaque) (void *bitmap, bool opaque)

Set the opacity of a bitmap.

Parameters
bitmapThe bitmap to set opacity on.
opaqueThe bitmap opacity to set.

Definition at line 151 of file bitmap.h.

Referenced by gif_create_gif_data(), nspng_convert(), png_cache_convert(), and verify_bitmap_register().


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