Top | ![]() |
![]() |
![]() |
![]() |
Functions
char const * | go_pattern_as_str () |
cairo_pattern_t * | go_pattern_create_cairo_pattern () |
GOPatternType | go_pattern_from_str () |
guint8 const * | go_pattern_get_pattern () |
xmlChar * | go_pattern_get_svg_path () |
gboolean | go_pattern_is_solid () |
void | go_pattern_set_solid () |
Functions
go_pattern_create_cairo_pattern ()
cairo_pattern_t * go_pattern_create_cairo_pattern (GOPattern const *pattern
,cairo_t *cr
);
go_pattern_get_svg_path ()
xmlChar * go_pattern_get_svg_path (GOPattern const *pattern
,double *width
,double *height
);
Retrieves an SVG path as string, which represents pattern shape. Caller is responsible for freeing the resulting string.
If width != NULL, returns pattern width. If height != NULL, returns pattern height.
Types and Values
GOPattern
typedef struct { GOColor fore, back; unsigned pattern; } GOPattern;
GOPattern::pattern is the used GOPatternType.
enum GOPatternType
Members
solid using background color. |
||
75% background color. |
||
50% background color. |
||
25% background color. |
||
12.5% background color. |
||
6.25% background color. |
||
horizontal stripe. |
||
vertical stripe. |
||
reverse diagonal stripe. |
||
diagonal stripe. |
||
diagonal crosshatch. |
||
thick diagonal crosshatch. |
||
thin horizontal stripe. |
||
thin vertical stripe. |
||
thin reverse diagonal stripe. |
||
thin diagonal stripe. |
||
thin horizontal crosshatch. |
||
thin diagonal crosshatch. |
||
solid using foreground color. |
||
small circles. |
||
semi circles. |
||
thatch. |
||
large circles. |
||
bricks. |
||
maximum value, should not occur. |