source: trunk/filemanager/tp/dompdf/lib/ttf2ufm/ttf2ufm-src/other/bzscreen.h @ 2000

Revision 2000, 988 bytes checked in by amuller, 14 years ago (diff)

Ticket #597 - Implementação do módulo gerenciador de arquivos

Line 
1/*
2 * see COPYRIGHT
3 */
4
5
6/*
7 * Screen for drawing the Bezier curves in text mode
8 */
9
10struct screen {
11        unsigned physx;
12        unsigned physy;
13        unsigned cols;
14        unsigned rows;
15        unsigned xoff;
16        unsigned yoff;
17        unsigned minx;
18        unsigned miny;
19        char *dots;
20        double xscale;
21        double yscale;
22} screen;
23
24#define screenabsdot(x,y)       (screen.dots[(y)*screen.cols+(x)])
25#define screendot(x,y)  screenabsdot((x)+screen.xoff, (y)+screen.yoff)
26
27/* prototypes */
28double fmin(double a, double b);
29int abs(int x);
30void initscreen(unsigned physx, unsigned physy,
31        unsigned cols, unsigned rows, unsigned xoff, unsigned yoff,
32        unsigned minx, unsigned miny, unsigned maxx, unsigned maxy);
33void drawcurve(int mark, int ax,int ay,
34        int bx,int by, int cx,int cy, int dx,int dy);
35void drawcurvedir(int mark, int ax,int ay,
36        int bx,int by, int cx,int cy, int dx,int dy);
37void drawdot(int mark, int x, int y);
38void setabsdot(int mark, int x, int y);
39void setfdot(int mark, double x, double y);
40void printscreen(FILE *f);
Note: See TracBrowser for help on using the repository browser.