NetSurf
|
#include "netsurf/plotters.h"
Go to the source code of this file.
Functions | |
void | ami_clearclipreg (struct gui_globals *gg) |
void | ami_plot_clear_bbox (struct RastPort *rp, struct IBox *bbox) |
void | ami_plot_release_pens (struct MinList *shared_pens) |
bool | ami_plot_screen_is_palettemapped (void) |
struct gui_globals * | ami_plot_ra_alloc (ULONG width, ULONG height, bool force32bit, bool alloc_pen_list) |
Alloc a plotter render area. More... | |
void | ami_plot_ra_free (struct gui_globals *gg) |
Free a plotter render area. More... | |
struct RastPort * | ami_plot_ra_get_rastport (struct gui_globals *gg) |
Get RastPort associated with a render area. More... | |
struct BitMap * | ami_plot_ra_get_bitmap (struct gui_globals *gg) |
Get a drawing BitMap associated with a render area. More... | |
void | ami_plot_ra_get_size (struct gui_globals *gg, int *width, int *height) |
Get size of BitMap associated with a render area. More... | |
void | ami_plot_ra_set_pen_list (struct gui_globals *gg, struct MinList *pen_list) |
Set a list of shared pens for a render area to use Only relevant for palette-mapped screens. More... | |
Variables | |
const struct plotter_table | amiplot |
void ami_clearclipreg | ( | struct gui_globals * | gg | ) |
Definition at line 311 of file plotters.c.
References ami_gui_get_screen(), gui_globals::apen, gui_globals::apen_num, gui_globals::open, gui_globals::open_num, gui_globals::rect, gui_globals::rp, and scrn.
Referenced by ami_cw_redraw_rect(), ami_do_redraw_tiled(), bitmap_render(), and gui_window_new_content().
void ami_plot_clear_bbox | ( | struct RastPort * | rp, |
struct IBox * | bbox | ||
) |
Definition at line 412 of file plotters.c.
Referenced by ami_switch_tab().
struct gui_globals * ami_plot_ra_alloc | ( | ULONG | width, |
ULONG | height, | ||
bool | force32bit, | ||
bool | alloc_pen_list | ||
) |
Alloc a plotter render area.
width | of render bitmap |
height | of render bitmap |
force32bit | allocate a 32-bit bitmap even if this does not match the screen |
alloc_pen_list | set to false to use own pen list (eg. if multiple pen lists will be required) |
Definition at line 113 of file plotters.c.
References ami_AllocMinList(), ami_gui_get_screen(), ami_memory_chip_alloc, ami_memory_itempool_create, ami_rtg_allocbitmap(), amiga_warn_user(), gui_globals::apen, gui_globals::apen_num, AREA_SIZE, gui_globals::areabuf, BGBACKFILL, BITMAP_LAYOUT_ARGB8888, bitmap_set_format(), gui_globals::bm, gui_globals::height, height, init_layers_count, gui_globals::layerinfo, gui_globals::managed_pen_list, NSLOG, nsoption_bool, nsoption_int, nsoption_set_bool, gui_globals::open, gui_globals::open_num, gui_globals::palette_mapped, palette_mapped, pool_pens, gui_globals::rp, scrn, gui_globals::shared_pens, gui_globals::tmprasbuf, gui_globals::width, and width.
Referenced by ami_corewindow_init(), ami_openscreenfirst(), ami_print_begin(), and bitmap_render().
void ami_plot_ra_free | ( | struct gui_globals * | gg | ) |
Free a plotter render area.
gg | render area to free |
Definition at line 258 of file plotters.c.
References ami_memory_chip_free, ami_memory_itempool_delete, ami_plot_release_pens(), ami_rtg_freebitmap(), gui_globals::areabuf, gui_globals::bm, init_layers_count, gui_globals::layerinfo, gui_globals::managed_pen_list, pool_pens, gui_globals::rp, gui_globals::shared_pens, and gui_globals::tmprasbuf.
Referenced by ami_corewindow_fini(), ami_print_end(), bitmap_render(), and gui_quit().
struct BitMap * ami_plot_ra_get_bitmap | ( | struct gui_globals * | gg | ) |
Get a drawing BitMap associated with a render area.
gg | render area |
Definition at line 295 of file plotters.c.
References gui_globals::bm.
Referenced by ami_cw_redraw_rect(), ami_do_redraw_tiled(), and bitmap_render().
struct RastPort * ami_plot_ra_get_rastport | ( | struct gui_globals * | gg | ) |
Get RastPort associated with a render area.
gg | render area |
Definition at line 290 of file plotters.c.
References gui_globals::rp.
Referenced by ami_print_dump().
void ami_plot_ra_get_size | ( | struct gui_globals * | gg, |
int * | width, | ||
int * | height | ||
) |
Get size of BitMap associated with a render area.
gg | render area |
width | updated to BitMap width |
height | updated to BitMap height |
Definition at line 300 of file plotters.c.
References gui_globals::height, height, gui_globals::width, and width.
Referenced by ami_cw_redraw_rect(), and ami_do_redraw_tiled().
void ami_plot_ra_set_pen_list | ( | struct gui_globals * | gg, |
struct MinList * | pen_list | ||
) |
Set a list of shared pens for a render area to use Only relevant for palette-mapped screens.
gg | render area |
pen_list | allocated by ami_AllocMinList() |
Definition at line 306 of file plotters.c.
References gui_globals::shared_pens.
Referenced by ami_do_redraw_tiled().
void ami_plot_release_pens | ( | struct MinList * | shared_pens | ) |
Definition at line 356 of file plotters.c.
References ami_gui_get_screen(), ami_memory_itempool_free, GetHead(), GetSucc(), IsMinListEmpty, ami_plot_pen::node, pool_pens, and scrn.
Referenced by ami_plot_ra_free(), ami_switch_tab(), gui_window_destroy(), and gui_window_new_content().
bool ami_plot_screen_is_palettemapped | ( | void | ) |
Definition at line 610 of file plotters.c.
References palette_mapped.
Referenced by ami_gui_opts_open(), ami_theme_throbber_setup(), gui_search_web_provider_update(), and gui_window_set_icon().
|
extern |
Definition at line 1180 of file plotters.c.
Referenced by ami_cw_redraw_rect(), ami_do_redraw(), ami_do_redraw_limits(), and bitmap_render().