This is taken directly fromlib/render.h.void (*BeginRenderFunc) (Renderer *renderer)
Called before rendering begins. Can be used to do various pre-rendering setup.void (*EndRenderFunc) (Renderer *renderer)
Called after all rendering is done. Used to do various clean-ups.void (*SetLineWidthFunc) (Renderer *renderer, real linewidth)
Set the current line width. Iflinewidth==0, the line will be an 'hairline' (i.e. very thin, but be careful with using 0. Some printing devices interpret that as 'the smallest width possible', which can be awfully thin on, say, a 1200DPI printer).typedef void (*SetLineCapsFunc) (Renderer *renderer, LineCaps? mode)
Set the current linecap (the way lines are ended).typedef void (*SetLineJoinFunc) (Renderer *renderer, LineJoin? mode)
Set the current linejoin (the way two lines are joined together).typedef void (*SetLineStyleFunc) (Renderer *renderer, LineStyle? mode);
Set the current line style.typedef void (*SetDashLengthFunc) (Renderer *renderer, real length)
Set the dash length, when the line style is not SOLID. A dot will be 10% of the length of a dash.typedef void (*SetFillStyleFunc) (Renderer *renderer, FillStyle? mode)
Set the fill style. Fill style can only be FILLSTYLE_SOLID at the moment.typedef void (*SetFontFunc) (Renderer *renderer, DiaFont? *font, real height)
Set the current font.typedef void (*DrawLineFunc) (Renderer *renderer, Point *start, Point *end, Color *color)
Draw a line from start to end, using color and the current line style.typedef void (*DrawPolyLineFunc) (Renderer *renderer, Point *points, int num_points, Color *color)
Draw a line joining multiple points, using color and the current line style. The line segments should be joined together with the current linejoin style.typedef void (*DrawPolygonFunc) (Renderer *renderer, Point *points, int num_points, Color *color)
Draw a polygone, using the current line style The polygon is closed even if the first point is not the same as the last point.typedef void (*FillPolygonFunc) (Renderer *renderer, Point *points, int num_points, Color *color)
Same as DrawPolygonFunc?, expect the polygon is filled using the current fill type.typedef void (*DrawRectangleFunc) (Renderer *renderer, Point *ul_corner, Point *lr_corner, Color *color)
Draw a rectangle, given its upper-left and lower-right corners.typedef void (*FillRectangleFunc) (Renderer *renderer, Point *ul_corner, Point *lr_corner, Color *color)
Same as DrawRectangleFunc?, except the rectangle is filled using the current fill style.typedef void (*DrawRoundedRectangleFunc) (Renderer *renderer, Point *ul_corner, Point *lr_corner, Color *color, real rounding)
Draw a rounded rectangle, given its upper-left and lower-right corners. Theroundingis the radius of the rounding of the corners.typedef void (*FillRoundedRectangleFunc) (Renderer *renderer, Point *ul_corner, Point *lr_corner, Color *color, real rounding)
Same as DrawRoundedRectangleFunc?, except the rectangle is filled using the current fill style.typedef void (*DrawArcFunc) (Renderer *renderer, Point *center, real width, real height, real angle1, real angle2, Color *color)
Draw an arc, given its center, the bounding box (widget, height), the start angle and the end angle.typedef void (*FillArcFunc) (Renderer *renderer, Point *center, real width, real height, real angle1, real angle2, Color *color)
Same as DrawArcFunc? except the arc is filled (a pie-chart). code> typedef void (*DrawEllipseFunc) (Renderer *renderer, Point *center, real width, real height, Color *color)
Draw an ellipse, given its center and the bounding box.typedef void (*FillEllipseFunc) (Renderer *renderer, Point *center, real width, real height, Color *color)
Same as DrawEllipse?, except the ellipse is filled.typedef void (*DrawBezierFunc) (Renderer *renderer, BezPoint? *points, int numpoints, Color *color)
Draw a bezier curve, given its control points. The first BezPoint? must be of type MOVE_TO, and no other ones may be MOVE_TO's.typedef void (*FillBezierFunc) (Renderer *renderer, BezPoint? *points, int numpoints, Color *color)
Same as DrawBezierFunc?, except the last point must be the same as the first point, and the resulting shape is filled.typedef void (*DrawStringFunc) (Renderer *renderer, const gchar *text, Point *pos, Alignment alignment, Color *color)
Print a string at pos, using the current font.typedef void (*DrawImageFunc) (Renderer *renderer, Point *point, real width, real height, DiaImage? image)
Draw an image, given its bounding box. -- LarsClausen - 05 Sep 2002
| Edit -:- Attach -:- Ref-By -:- Printable -:- More |