home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pgraph2.zip
/
PGRAPH2.INC
< prev
next >
Wrap
Text File
|
1996-11-18
|
7KB
|
87 lines
{types used in the PHRAPH.DLL}
type POINTTYPE = record x,y:integer end;
S127 = string[127];
{constants for SetWriteMode procedure}
const
NORMALPUT=0;
COPYPUT=0;
XORPUT=1;
ORPUT=2;
ANDPUT=3;
NOTPUT=4;
NOTXORPUT=5;
NOTORPUT=6;
NOTANDPUT=7;
{declaration of external functions and procedures}
procedure SetColor(color:word); external 'PGRAPH2' index 1;
procedure SetWriteMode(mode:integer); external 'PGRAPH2' index 2;
procedure PixelMode_on; external 'PGRAPH2' index 3;
procedure PixelMode_Off; external 'PGRAPH2' index 4;
procedure LineMode_On; external 'PGRAPH2' index 5;
procedure LineMode_Off; external 'PGRAPH2' index 6;
procedure Pixel(x,y:integer); external 'PGRAPH2' index 7;
function KeyPressed: Boolean; external 'PGRAPH2' index 8;
function ReadKey: Char; external 'PGRAPH2' index 9;
procedure PlaySound(Freq,Duration: Longint); external 'PGRAPH2' index 10;
procedure Pip; external 'PGRAPH2' index 11;
procedure ClrText(x,y,d:byte); external 'PGRAPH2' index 12;
function Klic: char; external 'PGRAPH2' index 13;
procedure Cursor; external 'PGRAPH2' index 14;
procedure ClrEolG; external 'PGRAPH2' index 15;
procedure WriteG(s:s127); external 'PGRAPH2' index 16;
procedure WriteGn(s:s127); external 'PGRAPH2' index 17;
procedure GotoXYG(x,y:byte); external 'PGRAPH2' index 18;
procedure Editg(x1,x2,y:byte; var st:string); external 'PGRAPH2' index 19;
procedure Num(x,y:byte; var n; t:char; k,l:integer); external 'PGRAPH2' index 20;
procedure WriteNum(var n; t:char; k,l:integer); external 'PGRAPH2' index 21;
procedure RestoreCrtMode; external 'PGRAPH2' index 22;
function SetGraphMode:integer; external 'PGRAPH2' index 23;
procedure ClearDevice; external 'PGRAPH2' index 24;
procedure GrafFont(r:byte); external 'PGRAPH2' index 25;
procedure LineFont(l:byte); external 'PGRAPH2' index 26;
function GraphInit(s:s127):integer; external 'PGRAPH2' index 27;
procedure Lock_On; external 'PGRAPH2' index 28;
procedure Lock_Off; external 'PGRAPH2' index 29;
procedure BackColor(color:word); external 'PGRAPH2' index 30;
procedure FBC(fcolor,bcolor:word); external 'PGRAPH2' index 31;
function GetColor:word; external 'PGRAPH2' index 32;
procedure SetRGBPalette(color,red,green,blue:integer); external 'PGRAPH2' index 33;
function GetPixel(x,y:integer):word; external 'PGRAPH2' index 34;
procedure PutPixel(x,y:integer;color:word); external 'PGRAPH2' index 35;
procedure Vline(x1,y1,y2:integer); external 'PGRAPH2' index 36;
procedure Hline(x1,x2,y1:integer); external 'PGRAPH2' index 37;
procedure Line(x1,y1,x2,y2:integer); external 'PGRAPH2' index 38;
procedure MoveTo(x,y:integer); external 'PGRAPH2' index 39;
procedure LineTo(x,y:integer); external 'PGRAPH2' index 40;
procedure Sym0(x,y:integer); external 'PGRAPH2' index 41;
procedure Rectangle(x1,y1,x2,y2:integer); external 'PGRAPH2' index 42;
procedure FillRectangle(x1,y1,x2,y2:integer); external 'PGRAPH2' index 43;
procedure Triangle(x1,y1,x2,y2,x3,y3:integer); external 'PGRAPH2' index 44;
procedure FillTriangle(p1,q1,p2,q2,p3,q3:integer); external 'PGRAPH2' index 45;
procedure Ellipse(xc,yc:integer; xrad,yrad:integer); external 'PGRAPH2' index 46;
procedure FillEllipse(xc,yc:integer; xrad,yrad:integer); external 'PGRAPH2' index 47;
Procedure FillPolygon(n: integer; var p); external 'PGRAPH2' index 48;
function AreaSize(x1,y1,x2,y2:integer):longint; external 'PGRAPH2' index 49;
procedure GetArea(x1,y1,x2,y2:integer; var b); external 'PGRAPH2' index 50;
procedure PutArea(x1,y1:integer; var b); external 'PGRAPH2' index 51;
procedure MoveCross(ch:char; fkl:boolean); external 'PGRAPH2' index 52;
procedure CesTextC(x,y:integer; s:s127; d:boolean); external 'PGRAPH2' index 53;
procedure CesLText(x0,y0:integer; s:s127; zv:single; d:boolean); external 'PGRAPH2' index 54;
procedure SetLIWI(LiWi:byte); external 'PGRAPH2' index 55;
procedure SetDOT(Dot:boolean); external 'PGRAPH2' index 56;
procedure SetPXM(PXM:boolean); external 'PGRAPH2' index 57;
procedure SetRST(RST:word); external 'PGRAPH2' index 58;
function GetWHX:byte; external 'PGRAPH2' index 59;
function GetWHY:byte; external 'PGRAPH2' index 60;
function GetCRX:integer; external 'PGRAPH2' index 61;
function GetCRY:integer; external 'PGRAPH2' index 62;
procedure SetCRS(CRS:byte); external 'PGRAPH2' index 63;
function GetTEXTROW:byte; external 'PGRAPH2' index 64;
function GetGFDir:s127; external 'PGRAPH2' index 65;
function GetFKL:boolean; external 'PGRAPH2' index 66;
procedure SetINS(ins:byte); external 'PGRAPH2' index 67;
function GetSHI:byte; external 'PGRAPH2' index 68;