Aqua Phoenix
     >>  Software >>  FTI Editor  
 

Navigator
   
 
       
   

2.7.1 FTI Specifications

Specifications from: The Icon Description Language FTIcon Read and FTIcon Write correspond to the implementation of FTI in FTI Editor. Functions implemented for read/write are marked with an "x".

Function FTIcon Read FTIcon Write Definition
arc(x, y, r, startang, endang)     Draw an arc starting at icon coordinates x, y; with radius r; starting at angle startang; ending at angle endang. Angle measures are in tenths of degrees.
arcf(x, y, r, startang, endang)     Like arc, but filled with the current pen color.
bclos(color) x   Like pclos, but uses color for the border (outline) color of the polygon.
bgnclosedline() x   Begin drawing a closed, unfilled figure drawn in the current pen color. Used in conjunction with vertex and endclosedline.
bgnline() x x Like bgnclosedline, except the figure is not closed. Used in conjunction with vertex and endline.
bgnoutlinepolygon x x Begin drawing a polygon filled with the current pen color. The polygon is outlined with a color specified by endoutlinepolygon. Also used in conjunction with vertex.
bgnpoint() x x Begin drawing a series of unconnected points defined using calls to vertex. Used in conjunction with vertex and endpoint.
bgnpolygon() x   Like bgnoutlinepolygon except the polygon is not outlined. Used in conjunction with vertex and endpolygon.
color(n) x x Set current pen color to color index n.
draw(x, y) x   Draw a line in the current color from the current pen location to x, y.
endclosedline() x   Finish a closed, unfilled figure started with bgnclosedline.
endline() x x Finish an open, unfilled figure started with bgnline.
endoutlinepolygon(color) x x Finish a filled polygon started with bgnoutlinepolygon and outline it with color.
endpoint() x x Finish a series of points started with bgnpoint.
endpolygon() x   Finish a filled, unoutlined polygon started with bgnpolygon.
for (expr; expr; expr) expr     Note that shorthand operators such as ++ and -- are not part of the icon description language, so longer hand expressions must be used.
if (expr) expr [ else expr ]     Standard C language if-statement.
include("path")     Tell the Desktop to find the icon geometry in the file with pathname path.
move(x, y) x   Move current pen location to x, y.
pclos() x   Draw a line in the current pen color that closes the current polygon, and fill the polygon with the current color.
pdr(x, y) x   Draw the side of a filled polygon in the current pen color, from the current pen location to x, y.
pmv(x, y) x   Begin a filled polygon at location x, y.
print(expr or "string")     Print the value of the expression expr or string to stdout; used for debugging.
vertex(x,y) x x Specify a coordinate used for drawing points, lines and polygons by bgnpoint, bgnline, bgnpolygon, and so forth.

In addition, the following extensions to FTI commands have been implemented to handle RGB-value color:

Function FTIcon Read FTIcon Write Definition
color(r,g,b) x x Set current pen color to RGB color values (r,g,b).
endoutlinepolygon(r,g,b) x x Finish a filled polygon started with bgnoutlinepolygon and outline it with RGB color (r,g,b).