| 2 | |
| 3 | Symbolization Structures |
| 4 | |
| 5 | Stroke: |
| 6 | {{{ |
| 7 | typedef struct { |
| 8 | double width; /* line width in pixels */ |
| 9 | |
| 10 | /* line pattern, e.g. dots, dashes, etc.. */ |
| 11 | int patternlength; |
| 12 | double pattern[MS_MAXPATTERNLENGTH]; |
| 13 | |
| 14 | /* must not be NULL, must be a valid color */ |
| 15 | /* color.alpha must be used if supported by the renderer */ |
| 16 | colorObj color; |
| 17 | |
| 18 | int linecap; /* MS_CJC_TRIANGLE, MS_CJC_SQUARE, MS_CJC_ROUND, MS_CJC_BUTT */ |
| 19 | int linejoin; /* MS_CJC_BEVEL MS_CJC_ROUND MS_CJC_MITER */ |
| 20 | double linejoinmaxsize; |
| 21 | } strokeStyleObj; |
| 22 | }}} |
| 23 | |
| 24 | Fill: |
| 25 | {{{ |
| 26 | typedef struct { |
| 27 | /* must not be NULL, must be a valid color * |
| 28 | * color.alpha must be used if supported by the renderer */ |
| 29 | colorObj color; |
| 30 | |
| 31 | |
| 32 | /* if not null, use the passed tile (which is a pointer to a |
| 33 | * renderer specific structure) for tiling the polygon */ |
| 34 | void *tile; |
| 35 | |
| 36 | } fillStyleObj; |
| 37 | }}} |