Libraries
Pixmap_file Source Code
 previous   up   next 

Types
pixmapFontFile
Text implementation type to write with a pixmap font.

pixmapFontFile

const type: pixmapFontFile

Text implementation type to write with a pixmap font. This type allows writing text to graphic windows. This is done with the portable fonts of Seed7.


Function Summary
text
openPixmapFontFile (in PRIMITIVE_WINDOW: win)
Creates a pixmapFontFile at the upper left corner of win.
text
openPixmapFontFile (in PRIMITIVE_WINDOW: win, in integer: minX, in integer: minY)
Creates a pixmapFontFile at (minX, minY) in win.
void
flush (inout pixmapFontFile: aFile)
Forces that all buffered data is sent to its destination.
void
setFont (inout text: aText, in font: aFont)
Set the current font of aText to aFont.
font
getFont (in text: aText)
Get the current font of aText.
integer
height (in pixmapFontFile: fontFile)
Get the height of fontFile.
integer
width (in pixmapFontFile: fontFile)
Get the width of fontFile.
integer
line (in pixmapFontFile: fontFile)
Get the current line of fontFile.
integer
column (in pixmapFontFile: fontFile)
Get the current column of fontFile.
void
clear (inout pixmapFontFile: fontFile, in integer: upper, in integer: left, in integer: lower, in integer: right)
Clear an area of fontFile with the background color.
void
clear (inout pixmapFontFile: fontFile)
Clear the area of fontFile with the background color.
void
setPos (inout pixmapFontFile: fontFile, in integer: line, in integer: column)
Set the current position of fontFile to line and column.
void
setPosXY (inout pixmapFontFile: fontFile, in integer: xPos, in integer: yPos)
Set the current position of fontFile to the coordinates (xPos, yPos).
void
setLine (inout pixmapFontFile: fontFile, in integer: line)
Set the line of the current position of fontFile.
void
setColumn (inout pixmapFontFile: fontFile, in integer: column)
Set the column of the current position of fontFile.
void
color (inout pixmapFontFile: fontFile, in color: col)
Set the current foreground color of fontFile.
void
color (inout pixmapFontFile: fontFile, in color: col, in color: backgr)
Set the current foreground and background color of fontFile.
void
write (inout pixmapFontFile: fontFile, in string: stri)
Write a string to a pixmapFontFile.
void
writeln (inout pixmapFontFile: fontFile)
Write end-of-line to pixmapFontFile.

Function Detail

openPixmapFontFile

const func text: openPixmapFontFile (in PRIMITIVE_WINDOW: win)

Creates a pixmapFontFile at the upper left corner of win. The pixmapFontFile extends over the whole win.

Returns:
the file opened.

openPixmapFontFile

const func text: openPixmapFontFile (in PRIMITIVE_WINDOW: win, in integer: minX, in integer: minY)

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

Returns:
the file opened.

flush

const proc: flush (inout pixmapFontFile: aFile)

Forces that all buffered data is sent to its destination. Flushing a null_file has no effect.


setFont

const proc: setFont (inout text: aText, in font: aFont)

Set the current font of aText to aFont.


getFont

const func font: getFont (in text: aText)

Get the current font of aText.


height

const func integer: height (in pixmapFontFile: fontFile)

Get the height of fontFile.

Returns:
the height of fontFile.

width

const func integer: width (in pixmapFontFile: fontFile)

Get the width of fontFile.

Returns:
the width of fontFile.

line

const func integer: line (in pixmapFontFile: fontFile)

Get the current line of fontFile.

Returns:
the current line of fontFile.

column

const func integer: column (in pixmapFontFile: fontFile)

Get the current column of fontFile.

Returns:
the current column of fontFile.

clear

const proc: clear (inout pixmapFontFile: fontFile, in integer: upper, in integer: left, in integer: lower, in integer: right)

Clear an area of fontFile 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 pixmapFontFile: fontFile)

Clear the area of fontFile with the background color.


setPos

const proc: setPos (inout pixmapFontFile: fontFile, in integer: line, in integer: column)

Set the current position of fontFile to line and column.


setPosXY

const proc: setPosXY (inout pixmapFontFile: fontFile, in integer: xPos, in integer: yPos)

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


setLine

const proc: setLine (inout pixmapFontFile: fontFile, in integer: line)

Set the line of the current position of fontFile.


setColumn

const proc: setColumn (inout pixmapFontFile: fontFile, in integer: column)

Set the column of the current position of fontFile.


color

const proc: color (inout pixmapFontFile: fontFile, in color: col)

Set the current foreground color of fontFile.


color

const proc: color (inout pixmapFontFile: fontFile, in color: col, in color: backgr)

Set the current foreground and background color of fontFile.


write

const proc: write (inout pixmapFontFile: fontFile, in string: stri)

Write a string to a pixmapFontFile.


writeln

const proc: writeln (inout pixmapFontFile: fontFile)

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



 previous   up   next