Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
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: graph_win)
Creates a graph_file at the upper left corner of graph_win.
graph_file
open (in PRIMITIVE_WINDOW: graph_win, in integer: min_x, in integer: min_y)
Creates a graph_file at (min_x, min_y) in graph_win.
graph_file
open (in PRIMITIVE_WINDOW: graph_win, in integer: min_x, in integer: min_y, in integer: width, in integer: height)
Creates a graph_file at (min_x, min_y) in graph_win.
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: graph_win)

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

Returns:
the file opened.

open

const func graph_file: open (in PRIMITIVE_WINDOW: graph_win, in integer: min_x, in integer: min_y)

Creates a graph_file at (min_x, min_y) in graph_win. The graph_file extends to the lower right edge of graph_win.

Returns:
the file opened.

open

const func graph_file: open (in PRIMITIVE_WINDOW: graph_win, in integer: min_x, in integer: min_y, in integer: width, in integer: height)

Creates a graph_file at (min_x, min_y) in graph_win. 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