GOMarker: GOffice Reference Manual

## GOMarker GOMarker |

## Functions

void | go_marker_assign ()
cairo_surface_t * | go_marker_create_cairo_surface ()
GOMarker * | go_marker_dup ()
GOColor | go_marker_get_fill_color ()
GOColor | go_marker_get_outline_color ()
double | go_marker_get_outline_width ()
GOMarkerShape | go_marker_get_shape ()
int | go_marker_get_size ()
gboolean | go_marker_is_closed_shape ()
GOMarker * | go_marker_new ()
void | go_marker_render ()
void | go_marker_set_fill_color ()
void | go_marker_set_outline_color ()
void | go_marker_set_shape ()
void | go_marker_set_size ()
char const * | go_marker_shape_as_str ()
GOMarkerShape | go_marker_shape_from_str ()

## Types and Values

| GOMarker
enum | GOMarkerShape

## Object Hierarchy

        GObject
        ╰── GOMarker

## Description

## Functions

### go_marker_assign ()

    void
    go_marker_assign (GOMarker *dst,
                      GOMarker const *src);

Assigns `src` properties to `dst` .

#### Parameters

dst | the destination GOMarker |
src | the source GOMarker |

### go_marker_create_cairo_surface ()

    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.

#### Parameters

marker | a GOMarker |
cr | a cairo context |
scale | current context scale |
width | a placeholder for the surface width |
height | a placeholder for the surface height |

#### Returns

a newly created cairo_surface_t.

[transfer full]

### go_marker_dup ()

    GOMarker *
    go_marker_dup (GOMarker const *src);

Duplicates `src` .

#### Parameters

src | the GOMarker to duplicate |

#### Returns

the duplicated marker.

[transfer full]

### go_marker_get_fill_color ()

    GOColor
    go_marker_get_fill_color (GOMarker const *marker);

#### Parameters

marker | a GOMarker |

#### Returns

the fill color of `marker` .

### go_marker_get_outline_color ()

    GOColor
    go_marker_get_outline_color (GOMarker const *marker);

#### Parameters

marker | a GOMarker |

#### Returns

the outline color of `marker` .

### go_marker_get_outline_width ()

    double
    go_marker_get_outline_width (GOMarker const *marker);

#### Parameters

marker | a GOMarker |

#### Returns

the outline width of `marker` .

### go_marker_get_shape ()

    GOMarkerShape
    go_marker_get_shape (GOMarker const *marker);

#### Parameters

marker | a GOMarker |

#### Returns

the GOMarkerShape of `marker` .

### go_marker_get_size ()

    int
    go_marker_get_size (GOMarker const *marker);

#### Parameters

marker | a GOMarker |

#### Returns

the size of `marker` .

### go_marker_is_closed_shape ()

    gboolean
    go_marker_is_closed_shape (GOMarker const *marker);

#### Parameters

marker | a GOMarker |

#### Returns

`TRUE` if `marker` has a closed shape.

### go_marker_new ()

    GOMarker *
    go_marker_new (void);

#### Returns

a new GOMarker.

[transfer full]

### go_marker_render ()

    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.

#### Parameters

marker | a GOMarker |
cr | a cairo context |
x | x position |
y | y position |
scale | current scale |

### go_marker_set_fill_color ()

    void
    go_marker_set_fill_color (GOMarker *marker,
                              GOColor color);

Sets the fill color of `marker` .

#### Parameters

marker | a GOMarker |
color | a GOColor |

### go_marker_set_outline_color ()

    void
    go_marker_set_outline_color (GOMarker *marker,
                                 GOColor color);

Sets the outline color of `marker` .

#### Parameters

marker | a GOMarker |
color | a GOColor |

### go_marker_set_shape ()

    void
    go_marker_set_shape (GOMarker *marker,
                         GOMarkerShape shape);

Sets the GOMarkerShape of `marker` .

#### Parameters

marker | a GOMarker |
shape | a GOMarkerShape |

### go_marker_set_size ()

    void
    go_marker_set_size (GOMarker *marker,
                        int size);

Sets the size of `marker` .

#### Parameters

marker | a GOMarker |
size | the size of the marker |

### go_marker_shape_as_str ()

    char const      *
    go_marker_shape_as_str (GOMarkerShape shape);

#### Parameters

shape | a GOMarkerShape |

#### Returns

the string representation of `shape` .

[transfer none]

### go_marker_shape_from_str ()

    GOMarkerShape
    go_marker_shape_from_str (char const *name);

#### Parameters

name | a string representation of a GOMarkerShape |

#### Returns

the GOMarkerShape corresponding to `str` .

## Types and Values

### GOMarker

    typedef struct _GOMarker GOMarker;

### enum GOMarkerShape

#### Members

GO_MARKER_NONE | no mark. |
GO_MARKER_SQUARE | square. |
GO_MARKER_DIAMOND | diamond. |
GO_MARKER_TRIANGLE_DOWN | triangle down. |
GO_MARKER_TRIANGLE_UP | triangle up. |
GO_MARKER_TRIANGLE_RIGHT | triangle right. |
GO_MARKER_TRIANGLE_LEFT | triangle left. |
GO_MARKER_CIRCLE | circle. |
GO_MARKER_X | X. |
GO_MARKER_CROSS | cross. |
GO_MARKER_ASTERISK | asterisk. |
GO_MARKER_BAR | horizontal bar. |
GO_MARKER_HALF_BAR | right half bar. |
GO_MARKER_BUTTERFLY | butterfly. |
GO_MARKER_HOURGLASS | hourglass. |
GO_MARKER_LEFT_HALF_BAR | left half bar. |
GO_MARKER_MAX | maximum value, should not occur. |