Libraries
Graph_file Source Code
 previous   up   next 

Types
graph_file
Implementation type to display graphic text.

graph_file

const type: graph_file

Implementation type to display graphic text. This type allows writing text to graphic windows. This is done with the standard font of the graphic library.


Function Summary
graph_file
open (in PRIMITIVE_WINDOW: graphWin)
Creates a graph_file at the upper left corner of graphWin.
graph_file
open (in PRIMITIVE_WINDOW: graphWin, in integer: minX, in integer: minY)
Creates a graph_file at (minX, minY) in graphWin.
graph_file
open (in PRIMITIVE_WINDOW: graphWin, in integer: minX, in integer: minY, in integer: width, in integer: height)
Creates a graph_file at (minX, minY) in graphWin.
void
close (inout graph_file: aGraphFile)
Close an graph_file.
void
flush (in graph_file: aGraphFile)
Forces that all buffered data of aFile is sent to its destination.
void
color (inout graph_file: aGraphFile, in color: col)
Set the foreground color of aGraphFile.
void
color (inout graph_file: aGraphFile, in color: col1, in color: col2)
Set the foreground and background color of aGraphFile.
integer
height (in graph_file: aGraphFile)
Get the height of aGraphFile.
integer
width (in graph_file: aGraphFile)
Get the width of aGraphFile.
integer
line (in graph_file: aGraphFile)
Get the current line of aGraphFile.
integer
column (in graph_file: aGraphFile)
Get the current column of aGraphFile.
void
clear (inout graph_file: aGraphFile, in integer: upper, in integer: left, in integer: lower, in integer: right)
Clear an area of aGraphFile with the background color.
void
clear (inout graph_file: aGraphFile)
Clear the area of aGraphFile with the background color.
void
setPos (inout graph_file: aGraphFile, in integer: line, in integer: column)
Set the current position of aGraphFile to line and column.
void
setPosXY (inout graph_file: aGraphFile, in integer: xPos, in integer: yPos)
Set the current position of aGraphFile to the coordinates (xPos, yPos).
void
setLine (inout graph_file: aGraphFile, in integer: line)
Set the line of the current position of aGraphFile.
void
setColumn (inout graph_file: aGraphFile, in integer: column)
Set the column of the current position of aGraphFile.
void
write (inout graph_file: aGraphFile, in string: stri)
Write a string to the current position of aGraphFile.
void
writeln (inout graph_file: aGraphFile)
Write end-of-line to aGraphFile.

Function Detail

open

const func graph_file: open (in PRIMITIVE_WINDOW: graphWin)

Creates a graph_file at the upper left corner of graphWin. The graph_file extends over the whole graphWin.

Returns:
the file opened.

open

const func graph_file: open (in PRIMITIVE_WINDOW: graphWin, in integer: minX, in integer: minY)

Creates a graph_file at (minX, minY) in graphWin. The graph_file extends to the lower right edge of graphWin.

Returns:
the file opened.

open

const func graph_file: open (in PRIMITIVE_WINDOW: graphWin, in integer: minX, in integer: minY, in integer: width, in integer: height)

Creates a graph_file at (minX, minY) in graphWin. The graph_file is created with the given width and ''height'.

Returns:
the file opened.

close

const proc: close (inout graph_file: aGraphFile)

Close an graph_file.


flush

const proc: flush (in graph_file: aGraphFile)

Forces that all buffered data of aFile is sent to its destination. This causes data to be sent to the graphic system of the OS.


color

const proc: color (inout graph_file: aGraphFile, in color: col)

Set the foreground color of aGraphFile.


color

const proc: color (inout graph_file: aGraphFile, in color: col1, in color: col2)

Set the foreground and background color of aGraphFile.


height

const func integer: height (in graph_file: aGraphFile)

Get the height of aGraphFile.

Returns:
the height of aGraphFile.

width

const func integer: width (in graph_file: aGraphFile)

Get the width of aGraphFile.

Returns:
the width of aGraphFile.

line

const func integer: line (in graph_file: aGraphFile)

Get the current line of aGraphFile.

Returns:
the current line of aGraphFile.

column

const func integer: column (in graph_file: aGraphFile)

Get the current column of aGraphFile.

Returns:
the current column of aGraphFile.

clear

const proc: clear (inout graph_file: aGraphFile, in integer: upper, in integer: left, in integer: lower, in integer: right)

Clear an area of aGraphFile with the background color. The area is specified in (line, column) coordinates and is between the (upper, left) and (lower, right).


clear

const proc: clear (inout graph_file: aGraphFile)

Clear the area of aGraphFile with the background color.


setPos

const proc: setPos (inout graph_file: aGraphFile, in integer: line, in integer: column)

Set the current position of aGraphFile to line and column.


setPosXY

const proc: setPosXY (inout graph_file: aGraphFile, in integer: xPos, in integer: yPos)

Set the current position of aGraphFile to the coordinates (xPos, yPos). The coordinates are from the graphic window which belongs to aGraphFile.


setLine

const proc: setLine (inout graph_file: aGraphFile, in integer: line)

Set the line of the current position of aGraphFile.


setColumn

const proc: setColumn (inout graph_file: aGraphFile, in integer: column)

Set the column of the current position of aGraphFile.


write

const proc: write (inout graph_file: aGraphFile, in string: stri)

Write a string to the current position of aGraphFile.


writeln

const proc: writeln (inout graph_file: aGraphFile)

Write end-of-line to aGraphFile. Set the current position to the beginning of the next line.



 previous   up   next