NetSurf
Functions | Variables
plotters.h File Reference
#include "netsurf/plotters.h"
Include dependency graph for plotters.h:
This graph shows which files directly or indirectly include this file:

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_globalsami_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
 

Function Documentation

◆ ami_clearclipreg()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_plot_clear_bbox()

void ami_plot_clear_bbox ( struct RastPort *  rp,
struct IBox *  bbox 
)

Definition at line 412 of file plotters.c.

Referenced by ami_switch_tab().

Here is the caller graph for this function:

◆ ami_plot_ra_alloc()

struct gui_globals * ami_plot_ra_alloc ( ULONG  width,
ULONG  height,
bool  force32bit,
bool  alloc_pen_list 
)

Alloc a plotter render area.

Parameters
widthof render bitmap
heightof render bitmap
force32bitallocate a 32-bit bitmap even if this does not match the screen
alloc_pen_listset to false to use own pen list (eg. if multiple pen lists will be required)
Returns
pointer to render area

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_plot_ra_free()

void ami_plot_ra_free ( struct gui_globals gg)

Free a plotter render area.

Parameters
ggrender 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_plot_ra_get_bitmap()

struct BitMap * ami_plot_ra_get_bitmap ( struct gui_globals gg)

Get a drawing BitMap associated with a render area.

Parameters
ggrender area
Returns
pointer to render area BitMap

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().

Here is the caller graph for this function:

◆ ami_plot_ra_get_rastport()

struct RastPort * ami_plot_ra_get_rastport ( struct gui_globals gg)

Get RastPort associated with a render area.

Parameters
ggrender area
Returns
pointer to render area BitMap

Definition at line 290 of file plotters.c.

References gui_globals::rp.

Referenced by ami_print_dump().

Here is the caller graph for this function:

◆ ami_plot_ra_get_size()

void ami_plot_ra_get_size ( struct gui_globals gg,
int *  width,
int *  height 
)

Get size of BitMap associated with a render area.

Parameters
ggrender area
widthupdated to BitMap width
heightupdated 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().

Here is the caller graph for this function:

◆ ami_plot_ra_set_pen_list()

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.

Parameters
ggrender area
pen_listallocated by ami_AllocMinList()

Definition at line 306 of file plotters.c.

References gui_globals::shared_pens.

Referenced by ami_do_redraw_tiled().

Here is the caller graph for this function:

◆ ami_plot_release_pens()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_plot_screen_is_palettemapped()

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().

Here is the caller graph for this function:

Variable Documentation

◆ amiplot

const struct plotter_table amiplot
extern