2008-08-02 18:31:32 +04:00
|
|
|
/*
|
2009-07-09 22:52:55 +04:00
|
|
|
* Copyright 2008, 2009 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
2008-08-02 18:31:32 +04:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AMIGA_PLOTTERS_H
|
|
|
|
#define AMIGA_PLOTTERS_H
|
|
|
|
#include "desktop/plotters.h"
|
2009-07-09 22:52:55 +04:00
|
|
|
#include <proto/layers.h>
|
|
|
|
#include <proto/graphics.h>
|
|
|
|
|
|
|
|
struct gui_globals
|
|
|
|
{
|
|
|
|
struct BitMap *bm;
|
2011-03-05 17:36:55 +03:00
|
|
|
struct RastPort *rp;
|
2009-07-09 22:52:55 +04:00
|
|
|
struct Layer_Info *layerinfo;
|
|
|
|
APTR areabuf;
|
|
|
|
APTR tmprasbuf;
|
|
|
|
struct Rectangle rect;
|
2012-08-05 14:28:48 +04:00
|
|
|
struct MinList *shared_pens;
|
2009-07-09 22:52:55 +04:00
|
|
|
};
|
2008-08-02 18:31:32 +04:00
|
|
|
|
|
|
|
extern const struct plotter_table amiplot;
|
|
|
|
|
|
|
|
bool ami_clg(colour c);
|
2009-07-09 02:04:40 +04:00
|
|
|
bool ami_rectangle(int x0, int y0, int x1, int y1, const plot_style_t *style);
|
2009-07-10 22:36:49 +04:00
|
|
|
bool ami_line(int x0, int y0, int x1, int y1, const plot_style_t *style);
|
2009-07-14 14:03:58 +04:00
|
|
|
bool ami_polygon(const int *p, unsigned int n, const plot_style_t *style);
|
2011-02-15 01:05:39 +03:00
|
|
|
bool ami_clip(const struct rect *clip);
|
2009-07-21 14:59:53 +04:00
|
|
|
bool ami_text(int x, int y, const char *text, size_t length,
|
|
|
|
const plot_font_style_t *fstyle);
|
2009-07-14 14:03:58 +04:00
|
|
|
bool ami_disc(int x, int y, int radius, const plot_style_t *style);
|
2008-08-02 18:31:32 +04:00
|
|
|
bool ami_arc(int x, int y, int radius, int angle1, int angle2,
|
2009-07-14 14:03:58 +04:00
|
|
|
const plot_style_t *style);
|
2008-08-02 18:31:32 +04:00
|
|
|
bool ami_bitmap_tile(int x, int y, int width, int height,
|
|
|
|
struct bitmap *bitmap, colour bg,
|
2009-06-30 17:02:23 +04:00
|
|
|
bitmap_flags_t flags);
|
2008-08-02 18:31:32 +04:00
|
|
|
bool ami_group_start(const char *name);
|
|
|
|
bool ami_group_end(void);
|
|
|
|
bool ami_flush(void);
|
2009-02-03 04:27:54 +03:00
|
|
|
bool ami_path(const float *p, unsigned int n, colour fill, float width,
|
|
|
|
colour c, const float transform[6]);
|
2009-07-09 22:52:55 +04:00
|
|
|
|
2009-08-23 19:59:41 +04:00
|
|
|
void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height);
|
2009-07-09 22:52:55 +04:00
|
|
|
void ami_free_layers(struct gui_globals *gg);
|
2009-08-23 19:59:41 +04:00
|
|
|
void ami_clearclipreg(struct gui_globals *gg);
|
2012-08-05 14:28:48 +04:00
|
|
|
void ami_plot_release_pens(struct MinList *shared_pens);
|
2012-08-08 00:03:42 +04:00
|
|
|
bool ami_plot_screen_is_palettemapped(void);
|
2009-07-09 22:52:55 +04:00
|
|
|
|
|
|
|
struct gui_globals *glob;
|
2008-08-02 18:31:32 +04:00
|
|
|
#endif
|