Icon (Component)
Library: StdIcon
Necessary constants: I_USED
The Icon component contains a function that loads an icon archive using the Icon File Format (IFF) to an array. The icon's addresses are stored in a separate pointer array which makes possible direct access via DRAWICON (-> I_LOADFILE!).
Furthermore the function FT_DRAW is able to draw text in a user-defined font that is stored as IFF icon archive.
Function groups:
global constants:
constant | |
I_VER | current Icon File Format (IFF) version |
I_TAG | icon tag offset |
I_SIZE | icon size offset |
I_XSIZE | x size offset |
I_YSIZE | y size offset |
global variables:
variable | default value | |
i_mode% | 3 (Memo) | Mode for IFF files |
i_end$ | ".iff" | File extension for IFF files |
ft_break! | false | specifies whether text shall be wrapped |
ft_drawmode% | 0 | mode used for drawing characters (0 - overwrite, 1 - transparent) |
ft_linediff% | 0 | line spacing when drawing a wrapped string |
ft_maxr% | 159 | right border where text is wrapped |
ft_offs% | -1 | if >=0, all lines of a wrapped string except the first one are drawn from ft_offs as x coordinate |
ft_newl% | | y coordinate of next line (set by FT_DRAW) |
ft_newx% | | x coordinate of cursor (set by FT_DRAW) |
ft_newy% | | y coordinate of cursor (set by FT_DRAW) |
|