home *** CD-ROM | disk | FTP | other *** search
-
- /************************************************************************
- *************************************************************************
-
- Graphic constants
-
- Include file: "GrapDecl.PRO"
-
-
- *************************************************************************
- *************************************************************************/
-
- Constants
- /* graphresult error return codes */
- grOk = 0
- grNoInitGraph = -1
- grNotDetected = -2
- grFileNotFound = -3
- grInvalidDriver = -4
- grNoLoadMem = -5
- grNoScanMem = -6
- grNoFloodMem = -7
- grFontNotFound = -8
- grNoFontMem = -9
- grInvalidMode = -10
- grError = -11 /* generic error */
- grIOerror = -12
- grInvalidFont = -13
- grInvalidFontNum = -14
- grInvalidDeviceNum = -15
-
-
- % Graphics drivers
- detect = 0 /* requests autodetection */
- cga = 1
- mcga = 2
- ega = 3
- ega64 = 4
- egamono = 5
- reserved = 6
- hercmono = 7
- att400 = 8
- vga = 9
- pc3270 = 10
-
-
- % graphics modes for each driver
- cgac0 = 0 /* 320x200 color palette 0: red, yellow, green, 1 page */
- cgac1 = 1 /* 320x200 color palette 1: cyan, magenta, white, 1 pg */
- cgac2 = 2 /* 320x200 color palette 2: */
- cgac3 = 3 /* 320x200 color palette 3: */
- cgahi = 4 /* 640x200 1 page */
- mcgac0 = 0 /* 320x200 color palette 0: red, yellow, green, 1 page */
- mcgac1 = 1 /* 320x200 color palette 1: cyan, magenta, white, 1 pg */
- mcgac2 = 2 /* 320x200 color palette 2: */
- mcgac3 = 3 /* 320x200 color palette 3: */
- mcgamed = 4 /* 640x200 1 page */
- mcgahi = 5 /* 640x480 2 color 1 page */
- egalo = 0 /* 640x200 4 pages */
- egahi = 1 /* 640x350 16 color 2 pages */
- ega64lo = 0 /* 640x200 16 color 1 page */
- ega64hi = 1 /* 640x350 4 color 1 page */
- egamonohi = 3 /* 640x350 64k on card, 1 page - 256k on card, 4 pages */
- hercmonohi = 0 /* 720x348 2 pages */
- att400c0 = 0 /* 320x200 color palette 0: red, yellow, green, 1 page */
- att400c1 = 1 /* 320x200 color palette 1: cyan, magenta, white, 1 pg */
- att400c2 = 2 /* 320x200 color palette 2: */
- att400c3 = 3 /* 320x200 color palette 3: */
- att400med = 4 /* 640x200 1 page */
- att400hi = 5 /* 640x400 1 page */
- vgalo = 0 /* 640x200 16 color 4 pages */
- vgamed = 1 /* 640x350 16 color 2 pages */
- vgahi = 2 /* 640x480 16 color 1 page */
- vgahi2 = 3 /* 640x480 2 color 1 page */
- pc3270hi = 0 /* 720x350 1 page */
-
-
- % Colors for setpalette and setallpalette
- black = 0 /* dark colors */
- blue = 1
- green = 2
- cyan = 3
- red = 4
- magenta = 5
- brown = 6
- lightgray = 7
- darkgray = 8 /* Light colors */
- lightblue = 9
- lightgreen = 10
- lightcyan = 11
- lightred = 12
- lightmagenta = 13
- yellow = 14
- white = 15
-
-
- % Line styles for get/setlinestyle
- solid_line = 0
- dotted_line = 1
- center_line = 2
- dashed_line = 3
- userbit_line = 4 /* User defined line style */
-
-
- % Line widths for get/setlinestyle
- norm_width = 1
- thick_width = 3
-
-
- % Fonts
- default_font = 0 /* 8x8 bit mapped font */
- triplex_font = 1 /* "Stroked" fonts */
- small_font = 2
- sans_serif_font = 3
- gothic_font = 4
-
-
- % Writing direction
- horiz_dir = 0 /* Left to right */
- vert_dir = 1 /* Bottom to top */
-
- % Naming of user defined charsize in settextstyle
- user_char_size = 0 /* User-defined char size */
-
-
- % Fill patterns for get/setfillstyle
- empty_fill = 0 /* Fills area in background color */
- solid_fill = 1 /* Fills area in solid fill color */
- line_fill = 2 /* --- fill */
- ltslash_fill = 3 /* /// fill */
- slash_fill = 4 /* /// fill with thick lines */
- bkslash_fill = 5 /* \\\ fill with thick lines */
- ltbkslash_fill = 6 /* \\\ fill */
- hatch_fill = 7 /* Light hatch fill */
- xhatch_fill = 8 /* Heavy cross hatch fill */
- interleave_fill = 9 /* Interleaving line fill */
- wide_dot_fill = 10 /* Widely spaced dot fill */
- close_dot_fill = 11 /* Closely spaced dot fill */
- user_fill = 12 /* User defined fill */
-
-
- % BitBlt operators for putimage and writemode
- copy_put = 0
- xor_put = 1
- or_put = 2
- and_put = 3
- not_put = 4
-
-
- % Horizontal and vertical justification for settextjustify
- left_text = 0
- center_text = 1
- right_text = 2
-
- bottom_text = 0
- % center_text = 1 already defined above
- top_text = 2
-
-
- % Clipping in a viewport
- clip = 1
- noclip = 0
-
-
- % Define some handy constants
- esc = '\027'
- true = 1
- false = 0
- pi = 3.14159
-