| Top |
Note that GogGraph has a functions for export/rendering, so you do not always need to use a GogRenderer directly.
void gog_renderer_draw_selection_rectangle (GogRenderer *renderer,GogViewAllocation const *rectangle);
void gog_renderer_draw_shape (GogRenderer *renderer,GOPath const *path);
void gog_renderer_fill_serie (GogRenderer *renderer,GOPath const *path,GOPath const *close_path);
void gog_renderer_fill_shape (GogRenderer *renderer,GOPath const *path);
void gog_renderer_fill_circle (GogRenderer *rend,double x,double y,double r);
void gog_renderer_fill_rectangle (GogRenderer *rend,GogViewAllocation const *rect);
double
gog_renderer_get_hairline_width_pts (GogRenderer const *rend);
void gog_renderer_push_clip_rectangle (GogRenderer *rend,double x,double y,double w,double h);
Defines a rectangular clipping region. For efficient screen rendering, this function takes care to round the coordinates.
gboolean gog_renderer_render_to_cairo (GogRenderer *renderer,cairo_t *cairo,double width,double height);
void gog_renderer_stroke_serie (GogRenderer *renderer,GOPath const *path);
void gog_renderer_stroke_shape (GogRenderer *renderer,GOPath const *path);
void gog_renderer_stroke_circle (GogRenderer *rend,double x,double y,double r);
void gog_renderer_stroke_rectangle (GogRenderer *rend,GogViewAllocation const *rect);
void gog_renderer_push_clip (GogRenderer *rend,GOPath const *path);
Defines the current clipping region.
void gog_renderer_draw_circle (GogRenderer *rend,double x,double y,double r);
void gog_renderer_draw_rectangle (GogRenderer *rend,GogViewAllocation const *rect);
A utility routine to build a closed rectangle vpath.
void gog_renderer_draw_text (GogRenderer *rend,char const *text,GogViewAllocation const *pos,GtkAnchorType anchor,gboolean use_markup);
Have rend
draw text
in the at pos
.{x,y} anchored by the anchor
corner.
If pos.w
or pos.h
are >= 0 then clip the results to less than that size.
rend |
||
text |
the string to draw |
|
pos |
||
anchor |
GtkAnchorType how to draw relative to |
|
use_markup |
wether to use pango markup |
void gog_renderer_draw_grip (GogRenderer *renderer,double x,double y);
Draw a grip, used for moving/resizing of objects.
void gog_renderer_get_text_OBR (GogRenderer *rend,char const *text,gboolean use_markup,GOGeometryOBR *obr);
rend |
||
text |
the string to draw |
|
use_markup |
wether to use pango markup |
|
obr |
GOGeometryOBR to store the Object Bounding Rectangle of |
void gog_renderer_get_text_AABR (GogRenderer *rend,char const *text,gboolean use_markup,GOGeometryAABR *aabr);
rend |
||
text |
the string to draw |
|
use_markup |
wether to use pango markup |
|
aabr |
GOGeometryAABR to store the Axis Aligned Bounding Rectangle of |
gboolean gog_renderer_export_image (GogRenderer *renderer,GOImageFormat format,GsfOutput *output,double x_dpi,double y_dpi);
Exports an image of graph
in given format
, writing results in a GsfOutput stream.
If export format type is a bitmap one, it computes image size with x_dpi, y_dpi and
graph
size (see gog_graph_get_size()).
renderer |
||
format |
image format for export |
|
output |
a GsfOutput stream |
|
x_dpi |
x resolution of exported graph |
|
y_dpi |
y resolution of exported graph |
gboolean gog_renderer_update (GogRenderer *renderer,double w,double h);
Requests a renderer update, only useful for pixbuf based renderer.
cairo_surface_t *
gog_renderer_get_cairo_surface (GogRenderer *renderer);
“request-update” signalvoid user_function (GogRenderer *gogrenderer, gpointer user_data)
gogrenderer |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last