|
Jspice3
|
#include <stdio.h>#include <sys/types.h>

Go to the source code of this file.
Data Structures | |
| struct | mfb_window |
| struct | mfbpath |
| struct | mfbremttyb |
| struct | mfbremstat |
| struct | mfbformatstrs |
| struct | mfb |
| struct | err |
Macros | |
| #define | FALSE 0 |
| #define | ON 1 |
| #define | OFF 0 |
| #define | BUFSIZE 4096 |
| #define | UNINITIALIZED -1 |
| #define | MFBPOLYGONBUFSIZE 600 |
| #define | MFBMAXPOLYGONVERTICES 300 |
| #define | MFBmax(a, b) (a > b ? a : b) |
| #define | MFBmin(a, b) (a < b ? a : b) |
| #define | MFBSwapInt(f1, f2) {long f3; f3 = f1; f1 = f2; f2 = f3;} |
| #define | TTY 't' |
| #define | HCOPY 'r' |
| #define | DEBUG |
| #define | TTYBUFSIZE 4096 |
| #define | MFBCAPOK -10 |
| #define | MFBCAPNOFORMAT -20 |
| #define | MFBCAPSYNTAXERR -30 |
| #define | mfbarg(cp, Reg, reg, val) |
| #define | MFBALUJAM 0 |
| #define | MFBALUOR 1 |
| #define | MFBALUNOR 2 |
| #define | MFBALUEOR 3 |
| #define | MFBOK 1 /* Successful return */ |
| #define | MFBBADENT -10 /* Unknown terminal type */ |
| #define | MFBBADMCF -20 /* Can't open mfbcap file */ |
| #define | MFBMCELNG -30 /* MFBCAP entry too long */ |
| #define | MFBBADMCE -40 /* Bad mfbcap entry */ |
| #define | MFBINFMCE -50 /* Infinite mfbcap entry */ |
| #define | MFBBADTTY -60 /* stdout not in /dev */ |
| #define | MFBBADLST -70 /* Illegal line style */ |
| #define | MFBBADFST -80 /* Illegal fill style */ |
| #define | MFBBADCST -90 /* Illegal color style */ |
| #define | MFBBADTM1 -100 /* No destructive text */ |
| #define | MFBBADTM2 -110 /* No overstriking text */ |
| #define | MFBNODFLP -120 /* No definable line styles */ |
| #define | MFBNODFFP -130 /* No definable fill styles */ |
| #define | MFBNODFCO -140 /* No definable colors */ |
| #define | MFBNOBLNK -150 /* No blinkers */ |
| #define | MFBTMBLNK -160 /* Too many blinkers */ |
| #define | MFBNOMASK -170 /* No definable read or write mask */ |
| #define | MFBBADDEV -180 /* Can't open or close device */ |
| #define | MFBBADOPT -190 /* Can't access or set device stat */ |
| #define | MFBBADWRT -200 /* Error in write */ |
| #define | MFBPNTERR -210 /* Error in pointing device */ |
| #define | MFBNOPTFT -220 /* No format for pointing device */ |
| #define | MFBNOPNT -230 /* No pointing device */ |
| #define | MFBNORBND -240 /* No Rubberbanding */ |
| #define | MFBBADALU -250 /* Cannot set ALU mode */ |
| #define | MFBNOMEM -260 /* Out of memory */ |
| #define | MAXX 1 /* max x coordinate */ |
| #define | MAXY 2 /* max y coordinate */ |
| #define | MAXCOLORS 3 /* max number of colors */ |
| #define | MAXINTENSITY 4 /* max color intensity */ |
| #define | MAXFILLPATTERNS 5 /* max number of fill patterns */ |
| #define | MAXLINESTYLES 6 /* max number of line styles */ |
| #define | MAXBLINKERS 7 /* max number of blinkers */ |
| #define | POINTINGDEVICE 8 /* Bool: terminal has pointing device */ |
| #define | POINTINGBUTTONS 9 /* Bool: pointing device has buttons */ |
| #define | NUMBUTTONS 10 /* number of pointing device buttons */ |
| #define | BUTTON1 11 /* button value returned by button 1 */ |
| #define | BUTTON2 12 /* button value returned by button 2 */ |
| #define | BUTTON3 13 /* button value returned by button 3 */ |
| #define | BUTTON4 14 /* button value returned by button 4 */ |
| #define | BUTTON5 15 /* button value returned by button 5 */ |
| #define | BUTTON6 16 /* button value returned by button 6 */ |
| #define | BUTTON7 17 /* button value returned by button 7 */ |
| #define | BUTTON8 18 /* button value returned by button 8 */ |
| #define | BUTTON9 19 /* button value returned by button 9 */ |
| #define | BUTTON10 20 /* button value returned by button 10 */ |
| #define | BUTTON11 21 /* button value returned by button 11 */ |
| #define | BUTTON12 22 /* button value returned by button 12 */ |
| #define | TEXTPOSITIONALBE 30 /* Bool: accurately positionable text */ |
| #define | TEXTROTATABLE 31 /* Bool: rotateable text */ |
| #define | FONTHEIGHT 32 /* font height in pixels */ |
| #define | FONTWIDTH 33 /* font width in pixels */ |
| #define | FONTXOFFSET 34 /* font x offset in pixels */ |
| #define | FONTYOFFSET 35 /* font y offset in pixels */ |
| #define | DESTRUCTIVETEXT 36 /* Bool: text can be destructive */ |
| #define | OVERSTRIKETEXT 37 /* Bool: text can be overstrike */ |
| #define | VLT 38 /* Bool: terminal has VLT */ |
| #define | BLINKERS 39 /* Bool: terminal has blinkers */ |
| #define | FILLEDPOLYGONS 40 /* Bool: terminal has filled polygons */ |
| #define | DEFFILLPATTERNS 41 /* Bool: defineable fill patterns */ |
| #define | DEFCHANNELMASK 42 /* Bool: defineable write mask */ |
| #define | DEFLINEPATTERN 43 /* Bool: defineable line styles */ |
| #define | CURFGCOLOR 44 /* current foreground color */ |
| #define | CURFILLPATTERN 45 /* current fill pattern */ |
| #define | CURLINESTYLE 46 /* current line style */ |
| #define | CURCHANNELMASK 47 /* current write mask */ |
| #define | CURREADMASK 48 /* current read mask */ |
| #define | NUMBITPLANES 49 /* number of bit planes */ |
| #define | DEFREADMASK 50 /* Bool: definable read mask */ |
| #define | RASTERCOPY 51 /* Bool: terminal has raster copy */ |
| #define | OFFSCREENX 52 /* left value of off screen memory */ |
| #define | OFFSCREENY 53 /* bottom value of off screen memory */ |
| #define | OFFSCREENDX 54 /* length of off screen memory */ |
| #define | OFFSCREENDY 55 /* width of off screen memory */ |
Typedefs | |
| typedef struct mfb_window | WINDOW |
| typedef struct mfb_window | VIEWPORT |
| typedef struct mfbpath | MFBPOLYGON |
| typedef struct mfbpath | MFBPATH |
| typedef struct mfbremttyb | MFBSAVETTYB |
| typedef struct mfbremstat | MFBSAVESTAT |
| typedef struct mfb | MFB |
Enumerations |
Functions | |
| void | MFBArc () |
| void | MFBBox () |
| int | MFBClose () |
| int | MFBDefineColor () |
| int | MFBDefineLineStyle () |
| void | MFBDrawLineTo () |
| char * | MFBError () |
| void | MFBFlood () |
| int | MFBGetchar () |
| int | MFBHalt () |
| int | MFBInfo () |
| int | MFBInitialize () |
| void | MFBLine () |
| void | MFBMoveTo () |
| MFB * | MFBOpen () |
| void | MFBPixel () |
| int | MFBPoint () |
| void | MFBPolygon () |
| int | MFBSetALUMode () |
| int | MFBSetBlinker () |
| int | MFBSetColor () |
| int | MFBSetCursorColor () |
| int | MFBSetLineStyle () |
| int | MFBSetTextMode () |
| void | MFBText () |
| int | MFBUpdate () |
Variables | |
| char | gEntBuf [BUFSIZE] |
| MFB * | MFBCurrent |
| #define DEFFILLPATTERNS 41 /* Bool: defineable fill patterns */ |
| #define DESTRUCTIVETEXT 36 /* Bool: text can be destructive */ |
| #define FILLEDPOLYGONS 40 /* Bool: terminal has filled polygons */ |
| #define MFBSwapInt | ( | f1, | |
| f2 | |||
| ) | {long f3; f3 = f1; f1 = f2; f2 = f3;} |
| #define POINTINGBUTTONS 9 /* Bool: pointing device has buttons */ |
| #define POINTINGDEVICE 8 /* Bool: terminal has pointing device */ |
| #define TEXTPOSITIONALBE 30 /* Bool: accurately positionable text */ |
| typedef struct mfbpath MFBPOLYGON |
| typedef struct mfbremstat MFBSAVESTAT |
| typedef struct mfbremttyb MFBSAVETTYB |
| typedef struct mfb_window VIEWPORT |
| typedef struct mfb_window WINDOW |
| enum Bool |
| void MFBArc | ( | ) |
| void MFBBox | ( | ) |
| int MFBClose | ( | ) |
Definition at line 193 of file mfbopen.c.
| int MFBDefineColor | ( | ) |
| int MFBDefineLineStyle | ( | ) |
| void MFBDrawLineTo | ( | ) |
| char* MFBError | ( | ) |
| void MFBFlood | ( | ) |
Definition at line 21 of file mfbflood.c.
| int MFBGetchar | ( | ) |
| int MFBInfo | ( | ) |
| int MFBInitialize | ( | ) |
| void MFBLine | ( | ) |
| void MFBMoveTo | ( | ) |
| MFB* MFBOpen | ( | ) |
| void MFBPixel | ( | ) |
| int MFBPoint | ( | ) |
| void MFBPolygon | ( | ) |
| int MFBSetALUMode | ( | ) |
| int MFBSetBlinker | ( | ) |
| int MFBSetColor | ( | ) |
| int MFBSetCursorColor | ( | ) |
| int MFBSetLineStyle | ( | ) |
| int MFBSetTextMode | ( | ) |
| void MFBText | ( | ) |
| int MFBUpdate | ( | ) |