Appendix B
Predefined constants for visualization
Color constants | |||
Each color identifier (except No_Color) is an index within the standard color table. Note: if no color identifier is used to declare the color of an object, any directly used numeric value is considered by the visualization system modulo the size of the color table (22). | |||
Identifier |
Numeric value |
Identifier |
Numeric value |
No_Color Black Red Green Blue Cyan Magenta Yellow LightGreen DarkGreen DarkMagenta ElectricBlue |
-1 0 1 2 3 4 5 6 7 8 9 10 |
Orange DarkRed Violet Beige DarkBrown Brown DarkGrey Grey LightGrey CyanGreen White |
11 12 13 14 15 16 17 18 19 20 21 |
Font constants | |||
Identifier |
Numeric value |
Identifier |
Numeric value |
DefaultFont NewYork Geneva Monaco London Athens SanFrancisco |
0 1 2 3 6 7 8 |
Cairo LosAngeles Times Helvetica Courier Symbol Mobile |
11 12 20 21 22 23 24 |
Face constants | |||
Identifier |
Numeric value | ||
Normal Bold Italic Underline Outline Condense Extend |
0 1 2 4 8 32 64 |
Type constants | |||
A type identifier is used together with another number (target number) to declare its graphical interpretation. Usually a type identifier is returned as an output parameter T and specify the meaning of a parameter L that defines the content of a text field (e.g. a label). | |||
Identifier |
Numeric value |
Meaning of target number | |
Void Int Char String |
0 1 2 3 |
Target number is ignored and nothing is displayed Target number used "as is" Target number used as an ASCII code Target number used as a pointer to a C string (if the number is zero then the "Nil" string will be shown) |
Alignment constants | |||
Identifier |
Numeric value | ||
Left Center Right |
0 1 2 |
Thickness constants | |||
Identifier |
Numeric value | ||
Thin Thick VeryThick VeryVeryThick |
1 2 3 4 |
Pen style constants | |||
Identifier |
Numeric value | ||
Solid Dashed |
0 1 |
Shape constants | |||
Identifier |
Numeric value | ||
Round Square |
1 2 |