| GOffice Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum GOMarkerShape; GOMarkerShape go_marker_shape_from_str (char const *name); char const * go_marker_shape_as_str (GOMarkerShape shape); GOMarkerShape go_marker_get_shape (GOMarker const *m); void go_marker_set_shape (GOMarker *m,GOMarkerShape shape); GOColor go_marker_get_outline_color (GOMarker const *m); void go_marker_set_outline_color (GOMarker *m,GOColor color); GOColor go_marker_get_fill_color (GOMarker const *m); void go_marker_set_fill_color (GOMarker *m,GOColor color); int go_marker_get_size (GOMarker const *m); void go_marker_set_size (GOMarker *m,int size); double go_marker_get_outline_width (GOMarker const *m); void go_marker_assign (GOMarker *dst,GOMarker const *src); GOMarker * go_marker_dup (GOMarker const *src); GOMarker * go_marker_new (void); void go_marker_render (GOMarker const *marker,cairo_t *cr,double x,double y,double scale); cairo_surface_t * go_marker_create_cairo_surface (GOMarker const *marker,cairo_t *cr,double scale,double *width,double *height);
typedef enum {
GO_MARKER_NONE,
GO_MARKER_SQUARE,
GO_MARKER_DIAMOND,
GO_MARKER_TRIANGLE_DOWN,
GO_MARKER_TRIANGLE_UP,
GO_MARKER_TRIANGLE_RIGHT,
GO_MARKER_TRIANGLE_LEFT,
GO_MARKER_CIRCLE,
GO_MARKER_X,
GO_MARKER_CROSS,
GO_MARKER_ASTERISK,
GO_MARKER_BAR,
GO_MARKER_HALF_BAR,
GO_MARKER_BUTTERFLY,
GO_MARKER_HOURGLASS,
GO_MARKER_LEFT_HALF_BAR,
GO_MARKER_MAX
} GOMarkerShape;
| no mark. | |
| square. | |
| diamond. | |
| triangle down. | |
| triangle up. | |
| triangle right. | |
| triangle left. | |
| circle. | |
| X. | |
| cross. | |
| asterisk. | |
| horizontal bar. | |
| right half bar. | |
| butterfly. | |
| hourglass. | |
| left half bar. | |
| maximum value, should not occur. |
GOMarkerShape go_marker_shape_from_str (char const *name);
|
|
Returns : |
char const * go_marker_shape_as_str (GOMarkerShape shape);
|
|
Returns : |
GOColor go_marker_get_outline_color (GOMarker const *m);
|
|
Returns : |
void go_marker_set_outline_color (GOMarker *m,GOColor color);
|
|
|
double go_marker_get_outline_width (GOMarker const *m);
|
|
Returns : |
GOMarker * go_marker_dup (GOMarker const *src);
Duplicates src.
|
the GOMarker to duplicate |
Returns : |
the duplicated marker. [transfer full] |
void go_marker_render (GOMarker const *marker,cairo_t *cr,double x,double y,double scale);
Renders marker onto the cairo target, using x and y for the position.
|
a GOMarker |
|
a cairo context |
|
x position |
|
y position |
|
current scale |
cairo_surface_t * go_marker_create_cairo_surface (GOMarker const *marker,cairo_t *cr,double scale,double *width,double *height);
Creates a new cairo surface similar to the current target of cr, and render
marker on it. center will contain the coordinate of the center of the surface.
|
a GOMarker |
|
a cairo context |
|
current context scale |
|
a placeholder for the surface width |
|
a placeholder for the surface height |
Returns : |
a newly created cairo_surface_t. This surface should be destroyed using cairo_surface_destroy after use. |