PgmRenderShapeIFace

PgmRenderShapeIFace — An interface for drawing different shapes.

Synopsis




            PgmRenderShapeIFace;
PgmRenderError pgm_render_shape_set_arc     (PgmRenderShapeIFace *shape,
                                             gfloat width,
                                             gfloat height);
PgmRenderError pgm_render_shape_get_arc     (PgmRenderShapeIFace *shape,
                                             gfloat *width,
                                             gfloat *height);


Description

PgmRenderShapeIFace is an interface to add different shape drawing capabilities to an object.

Details

PgmRenderShapeIFace

typedef struct _PgmRenderShapeIFace PgmRenderShapeIFace;


pgm_render_shape_set_arc ()

PgmRenderError pgm_render_shape_set_arc     (PgmRenderShapeIFace *shape,
                                             gfloat width,
                                             gfloat height);

Sets the arc of stroke to (width, height). The arc is assigned to each angle of the surface.

shape : A PgmRenderShapeIFace object.
width : The width of the arc. 0 by default.
height : The height of the arc. 0 by default
Returns : An error status.

pgm_render_shape_get_arc ()

PgmRenderError pgm_render_shape_get_arc     (PgmRenderShapeIFace *shape,
                                             gfloat *width,
                                             gfloat *height);

Retrieves the (width, height) arc of stroke.

shape : A PgmRenderShapeIFace object.
width : The width of the arc to fill.
height : The height of the arc to fill.
Returns : An error status.