Re: more libgoffice help
- From: jcupitt gmail com
- To: Jean Bréfort <jean brefort normalesup org>
- Cc: gnumeric-list gnome org
- Subject: Re: more libgoffice help
- Date: Sat, 23 May 2009 15:39:23 +0100
2009/5/23 Jean Bréfort <jean brefort normalesup org>:
Le samedi 23 mai 2009 à 11:31 +0200, Jean Bréfort a écrit :
GogRenderer *rend = gog_renderer_new (graph);
gog_renderer_update (rend, allocation->width, allocation->height);
GogView *view;
g_object_get (G_OBJECT (rend), "view", &view, NULL);
view = gog_view_find_child_view (view, plot);
map = gog_chart_map_new (plotpresent->gchart, &(view->allocation),
x_axis, y_axis, NULL, FALSE);
if (gog_chart_map_is_valid (map) &&
event->x >= view->allocation.x && event->x < view->allocation.x + view->allocation.w &&
event->y >= view->allocation.y && event->y < view->allocation.y + view->allocation.h) {
x_map = gog_chart_map_get_axis_map (map, 0);
y_map = gog_chart_map_get_axis_map (map, 1);
x = gog_axis_map_from_view (x_map, event->x);
y = gog_axis_map_from_view (y_map, event->y);
}
It works! Thank you very much Jean.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]