home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
printer
/
graphpaper
/
src
/
src.lha
/
graph.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-06
|
2KB
|
93 lines
#define VERSION "1.2"
#include "lib-include.h"
#include "main.g"
#include "pw.g"
#include "events.g"
#include "messages.g"
#include "rastport.g"
#include "draw.g"
#include "printer.g"
#include "buttons.g"
#include "sliders.g"
#include "gads.g"
#include "files.g"
extern struct Window *wG;
extern int maxx, maxy;
extern int xoffset, yoffset;
extern struct Gadget None;
extern struct Gadget Linear;
extern struct Gadget LogX;
extern struct Gadget LogY;
extern struct Gadget LogLog;
extern struct Gadget go;
extern struct Gadget check;
extern struct Gadget Major_Thickness;
extern struct Gadget Minor_Thickness;
extern struct Gadget x_dpi;
extern struct Gadget y_dpi;
extern struct Gadget x_size;
extern struct Gadget y_size;
extern struct Gadget size_slider_left;
extern struct Gadget size_slider_middle;
extern struct Gadget size_slider_right;
extern struct Gadget x_grids_page;
extern struct Gadget y_grids_page;
extern struct Gadget grids_slider_left;
extern struct Gadget grids_slider_middle;
extern struct Gadget grids_slider_right;
extern struct Gadget minor_x;
extern struct Gadget minor_y;
extern struct Gadget minor_slider_left;
extern struct Gadget minor_slider_middle;
extern struct Gadget minor_slider_right;
extern UBYTE Major_ThicknessSIBuff[15];
extern UBYTE Minor_ThicknessSIBuff[15];
extern UBYTE x_dpiSIBuff[15];
extern UBYTE y_dpiSIBuff[15];
extern UBYTE x_sizeSIBuff[15];
extern UBYTE y_sizeSIBuff[15];
extern UBYTE minor_xSIBuff[15];
extern UBYTE minor_ySIBuff[15];
extern UBYTE x_grids_pageSIBuff[15];
extern UBYTE y_grids_pageSIBuff[15];
extern int x_dpi_V;
extern int y_dpi_V;
extern int Minor_Thickness_V;
extern int Major_Thickness_V;
extern float x_size_v;
extern float y_size_v;
extern int x_grids_page_v;
extern int y_grids_page_v;
extern int minor_x_v;
extern int minor_y_v;
extern int maxthick;
extern char messagebuf[100]; /* for general use to store messages */
#define FUDGE (1)
#define WIDTH ((int)(x_dpi_V * x_size_v * x_grids_page_v) + maxthick + FUDGE)
#define HEIGHT ((int)(y_dpi_V * y_size_v * y_grids_page_v) + maxthick + FUDGE)
#define DEPTH (1)
extern struct BitMap *bm;
extern struct RastPort *rast;
extern struct Gadget *MinorMode;
#define INTFIELD(gad) (((struct StringInfo *)(gad.SpecialInfo))->LongInt)
#define STRFIELD(gad) ((char *)(((struct StringInfo *)(gad.SpecialInfo))->Buffer))