Unit Console

From Ultibo.org
Revision as of 01:09, 27 July 2016 by Ultibo (Talk | contribs) (Undo revision 310 by Ultibo (talk))

Jump to: navigation, search

Return to Unit Reference


Description


To be documented

Constants


To be documented

Type definitions


To be documented

Public variables


To be documented

Function declarations



Initialization functions

[Expand]

procedure ConsoleInit;


Console functions

[Expand]

function ConsoleDeviceOpen(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceClose(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceClear(Console:PConsoleDevice;Color:LongWord):LongWord;


[Expand]

function ConsoleDeviceClose(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceScroll(Console:PConsoleDevice;X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawBox(Console:PConsoleDevice;X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawLine(Console:PConsoleDevice;X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawChar(Console:PConsoleDevice;Handle:TFontHandle;Ch:Char;X,Y,Forecolor,Backcolor:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawText(Console:PConsoleDevice;Handle:TFontHandle;const Text:String;X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawPixel(Console:PConsoleDevice;X,Y,Color:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawBlock(Console:PConsoleDevice;X1,Y1,X2,Y2,Color:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawImage(Console:PConsoleDevice;X,Y:LongWord;Buffer:Pointer;Width,Height,Format,Skip:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawWindow(Console:PConsoleDevice;Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleDeviceGetPixel(Console:PConsoleDevice;X,Y:LongWord;var Color:LongWord):LongWord;


[Expand]

function ConsoleDeviceGetImage(Console:PConsoleDevice;X,Y:LongWord;Buffer:Pointer;Width,Height,Format,Skip:LongWord):LongWord;


[Expand]

function ConsoleDeviceCopyImage(Console:PConsoleDevice;const Source,Dest:TConsolePoint;Width,Height:LongWord):LongWord;


[Expand]

function ConsoleDeviceGetPosition(Console:PConsoleDevice;Position:LongWord;var X1,Y1,X2,Y2:LongWord):LongWord;


[Expand]

function ConsoleDeviceGetProperties(Console:PConsoleDevice;Properties:PConsoleProperties):LongWord;


[Expand]

function ConsoleDeviceCheckFlag(Console:PConsoleDevice;Flag:LongWord):Boolean;


[Expand]

function ConsoleDeviceGetMode(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceGetState(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceCreate:PConsoleDevice;


[Expand]

function ConsoleDeviceCreateEx(Size:LongWord):PConsoleDevice;


[Expand]

function ConsoleDeviceDestroy(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceRegister(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceDeregister(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceFind(ConsoleId:LongWord):PConsoleDevice;


[Expand]

function ConsoleDeviceFindByDevice(Device:PDevice):PConsoleDevice;


[Expand]

function ConsoleDeviceFindByName(const Name:String):PConsoleDevice; inline;


[Expand]

function ConsoleDeviceFindByDescription(const Description:String):PConsoleDevice; inline;


[Expand]

function ConsoleDeviceEnumerate(Callback:TConsoleEnumerate;Data:Pointer):LongWord;


[Expand]

function ConsoleDeviceNotification(Console:PConsoleDevice;Callback:TConsoleNotification;Data:Pointer;Notification,Flags:LongWord):LongWord;


Text console functions

[Expand]

function ConsoleWindowCreate(Console:PConsoleDevice;Position:LongWord;Default:Boolean):TWindowHandle;


[Expand]

function ConsoleWindowCreateEx(Console:PConsoleDevice;Font:TFontHandle;Size,State,Mode,Position:LongWord;Default:Boolean):TWindowHandle;


[Expand]

function ConsoleWindowDestroy(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowShow(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowHide(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowFind(Console:PConsoleDevice;Position:LongWord):TWindowHandle;


[Expand]

function ConsoleWindowEnumerate(Console:PConsoleDevice;Callback:TConsoleWindowEnumerate;Data:Pointer):LongWord;


[Expand]

function ConsoleWindowCheckFlag(Handle:TWindowHandle;Flag:LongWord):Boolean;


[Expand]

function ConsoleWindowGetMode(Handle:TWindowHandle):LongWord;


function ConsoleWindowGetState(Handle:TWindowHandle):LongWord;

[Expand]

function ConsoleWindowCreate(Console:PConsoleDevice;Position:LongWord;Default:Boolean):TWindowHandle;


[Expand]

function ConsoleWindowGetPosition(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetPosition(Handle:TWindowHandle;Position:LongWord):LongWord;


[Expand]

function ConsoleWindowGetMinX(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetMinY(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetMaxX(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetMaxY(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetRect(Handle:TWindowHandle):TConsoleRect; inline;


[Expand]

function ConsoleWindowSetRect(Handle:TWindowHandle;const ARect:TConsoleRect):LongWord; inline;


[Expand]

function ConsoleWindowGetViewport(Handle:TWindowHandle;var X1,Y1,X2,Y2:LongWord):LongWord;


[Expand]

function ConsoleWindowSetViewport(Handle:TWindowHandle;X1,Y1,X2,Y2:LongWord):LongWord;


[Expand]

function ConsoleWindowGetX(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetX(Handle:TWindowHandle;X:LongWord):LongWord;


[Expand]

function ConsoleWindowGetY(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetY(Handle:TWindowHandle;Y:LongWord):LongWord;


[Expand]

function ConsoleWindowGetXY(Handle:TWindowHandle;var X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowSetXY(Handle:TWindowHandle;X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowGetPoint(Handle:TWindowHandle):TConsolePoint;


[Expand]

function ConsoleWindowSetPoint(Handle:TWindowHandle;const APoint:TConsolePoint):LongWord;


[Expand]

function ConsoleWindowGetCols(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetRows(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetWidth(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetHeight(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetFormat(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetForecolor(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetForecolor(Handle:TWindowHandle;Color:LongWord):LongWord;


[Expand]

function ConsoleWindowGetBackcolor(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetBackcolor(Handle:TWindowHandle;Color:LongWord):LongWord;


[Expand]

function ConsoleWindowGetFont(Handle:TWindowHandle):TFontHandle;


[Expand]

function ConsoleWindowSetFont(Handle:TWindowHandle;Font:TFontHandle):LongWord;


[Expand]

function ConsoleWindowGetCursorXY(Handle:TWindowHandle;var X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowSetCursorXY(Handle:TWindowHandle;X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowGetCursorBlink(Handle:TWindowHandle):Boolean;


[Expand]

function ConsoleWindowSetCursorBlink(Handle:TWindowHandle;CursorBlink:Boolean):LongWord;


[Expand]

function ConsoleWindowGetCursorState(Handle:TWindowHandle):TCursorState;


[Expand]

function ConsoleWindowSetCursorState(Handle:TWindowHandle;CursorState:TCursorState):LongWord;


[Expand]

function ConsoleWindowCursorOn(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowCursorOff(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowCursorMove(Handle:TWindowHandle;X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowCursorBlink(Handle:TWindowHandle;Enabled:Boolean):LongWord;


[Expand]

function ConsoleWindowScrollUp(Handle:TWindowHandle;Row,Lines:LongWord):LongWord;


[Expand]

function ConsoleWindowScrollDown(Handle:TWindowHandle;Row,Lines:LongWord):LongWord;


[Expand]

function ConsoleWindowScrollLeft(Handle:TWindowHandle;Row,Col,Lines,Chars:LongWord):LongWord;


[Expand]

function ConsoleWindowScrollRight(Handle:TWindowHandle;Row,Col,Lines,Chars:LongWord):LongWord;


[Expand]

function ConsoleWindowClear(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowClearEx(Handle:TWindowHandle;X1,Y1,X2,Y2:LongWord;Cursor:Boolean):LongWord;


[Expand]

function ConsoleWindowWrite(Handle:TWindowHandle;const AText:String):LongWord;


[Expand]

function ConsoleWindowWriteEx(Handle:TWindowHandle;const AText:String;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;


[Expand]

function ConsoleWindowWriteLn(Handle:TWindowHandle;const AText:String):LongWord;


[Expand]

function ConsoleWindowWriteLnEx(Handle:TWindowHandle;const AText:String;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;


[Expand]

function ConsoleWindowWriteChr(Handle:TWindowHandle;AChr:Char):LongWord;


[Expand]

function ConsoleWindowWriteChrEx(Handle:TWindowHandle;AChr:Char;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;


CRT console functions

[Expand]

procedure ConsoleAssignCrt(var F:Text);


[Expand]

procedure ConsoleClrEol;


[Expand]

procedure ConsoleClrScr;


[Expand]

procedure ConsoleDelay(MS:Word);


[Expand]

procedure ConsoleDelLine;


[Expand]

procedure ConsoleGotoXY(X,Y:Integer);


[Expand]

procedure ConsoleHighVideo;


[Expand]

procedure ConsoleInsLine;


[Expand]

function ConsoleKeypressed:Boolean;


[Expand]

procedure ConsoleLowVideo;


[Expand]

procedure ConsoleNormVideo;


[Expand]

procedure ConsoleNoSound;


[Expand]

function ConsoleReadKey:Char;


[Expand]

procedure ConsoleSound(Hz:Word);


[Expand]

procedure ConsoleTextBackground(Color:LongWord);


[Expand]

procedure ConsoleTextColor(Color:LongWord);


[Expand]

procedure ConsoleTextMode(Mode:Integer);


[Expand]

function ConsoleWhereX:Integer;


[Expand]

function ConsoleWhereY:Integer;


[Expand]

procedure ConsoleWindow(X1,Y1,X2,Y2:Integer);


[Expand]

procedure ConsoleScrollUp(Row,Lines:Integer);


[Expand]

procedure ConsoleScrollDown(Row,Lines:Integer);


[Expand]

procedure ConsoleWrite(const AText:String);


[Expand]

procedure ConsoleWriteLn(const AText:String);


[Expand]

procedure ConsoleWriteChr(AChr:Char);;


[Expand]

procedure ConsoleRead(var AText:String);


[Expand]

procedure ConsoleReadLn(var AText:String);


[Expand]

procedure ConsoleReadChr(var AChr:Char);


RTL console functions

[Expand]

function SysConsoleWriteChar(ACh:Char;AUserData:Pointer):Boolean;


Framebuffer console functions

[Expand]

function FramebufferConsoleOpen(Console:PConsoleDevice):LongWord;


[Expand]

function FramebufferConsoleClose(Console:PConsoleDevice):LongWord;


[Expand]

function FramebufferConsoleClear(Console:PConsoleDevice;Color:LongWord):LongWord;


[Expand]

function FramebufferConsoleScroll(Console:PConsoleDevice;X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;


[Expand]

function FramebufferConsoleDrawBox(Console:PConsoleDevice;X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;


[Expand]

function FramebufferConsoleDrawLine(Console:PConsoleDevice;X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;


[Expand]

function FramebufferConsoleDrawChar(Console:PConsoleDevice;Handle:TFontHandle;Ch:Char;X,Y,Forecolor,Backcolor:LongWord):LongWord;


[Expand]

function FramebufferConsoleDrawText(Console:PConsoleDevice;Handle:TFontHandle;const Text:String;X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;


[Expand]

function FramebufferConsoleDrawPixel(Console:PConsoleDevice;X,Y,Color:LongWord):LongWord;


[Expand]

function FramebufferConsoleDrawBlock(Console:PConsoleDevice;X1,Y1,X2,Y2,Color:LongWord):LongWord;


[Expand]

function FramebufferConsoleDrawImage(Console:PConsoleDevice;X,Y:LongWord;Buffer:Pointer;Width,Height,Format,Skip:LongWord):LongWord;


[Expand]

function FramebufferConsoleDrawWindow(Console:PConsoleDevice;Handle:TWindowHandle):LongWord;


[Expand]

function FramebufferConsoleDrawDesktop(Console:PConsoleDevice):LongWord;


[Expand]

function FramebufferConsoleGetPixel(Console:PConsoleDevice;X,Y:LongWord;var Color:LongWord):LongWord;


[Expand]

function FramebufferConsoleGetImage(Console:PConsoleDevice;X,Y:LongWord;Buffer:Pointer;Width,Height,Format,Skip:LongWord):LongWord;


[Expand]

function FramebufferConsoleCopyImage(Console:PConsoleDevice;const Source,Dest:TConsolePoint;Width,Height:LongWord):LongWord;


[Expand]

function FramebufferConsoleGetPosition(Console:PConsoleDevice;Position:LongWord;var X1,Y1,X2,Y2:LongWord):LongWord;


Return to Unit Reference