Lines Matching refs:points
95 int n, /* number of data points */
103 GdkPoint *points;
135 points = g_malloc(n * sizeof(GdkPoint));
137 points[i].x = .5 + ((xcord[i] - xmn) * (width - 1) / (xmx - xmn));
138 points[i].y = .5 + ((ycord[i] - ymx) * (height - 1) / (ymn - ymx));
140 gdk_draw_lines(*ppixmap, gc, points, n);
141 g_free(points);
156 GdkPoint points[2];
172 points[i].x = .5 + ((xcord[i] - xmn) * (width - 1) / (xmx - xmn));
173 points[i].y = .5 + ((ycord[i] - ymx) * (height - 1) / (ymn - ymx));
175 width = points[1].x - points[0].x + 1;
176 height = points[1].y - points[0].y + 1;
177 gdk_draw_rectangle(*ppixmap, gc, TRUE, points[0].x, points[0].y, width, height);
187 int n, /* number of data points */
196 GdkPoint points[2];
245 points[1].x = .5 + ((xcord[i] - xmn) * (width - 1) / (xmx - xmn));
246 points[1].y = .5 + ((ycord[i] - ymx) * (height - 1) / (ymn - ymx));
247 points[0].x = points[1].x;
248 points[0].y = height - 1;
257 /* gdk_draw_lines(*ppixmap,gc,points,2); */