Lines Matching refs:widget
58 setcolor(GtkWidget * widget, GdkColor * color, gint red, gint green, gint blue)
67 gdk_color_alloc(gtk_widget_get_colormap(widget), color);
82 findpixmap(GtkWidget * widget)
85 for (i = 0; i < num_plotwindows && widget != pixmapboxes[i]; i++);
87 g_print("findpixmap(): bad argument widget \n");
94 gpk_graph_draw(GtkWidget * widget, /* plot on this widged */
109 gc = gdk_gc_new(widget->window);
114 if ((ppixmap = findpixmap(widget))) {
115 width = widget->allocation.width;
116 height = widget->allocation.height;
121 gdk_draw_rectangle(*ppixmap, widget->style->white_gc, TRUE, 0, 0, width, height);
130 widget->style->fg_gc[GTK_WIDGET_STATE(widget)],
142 gpk_redraw(*ppixmap, widget);
150 gpk_rectangle_draw(GtkWidget * widget, /* plot on this widged */
162 gc = gdk_gc_new(widget->window);
166 if ((ppixmap = findpixmap(widget))) {
167 width = widget->allocation.width;
168 height = widget->allocation.height;
178 gpk_redraw(*ppixmap, widget);
186 gpk_bargraph_draw(GtkWidget * widget, /* plot on this widged */
204 gc = gdk_gc_new(widget->window);
208 if ((ppixmap = findpixmap(widget))) {
209 width = widget->allocation.width;
210 height = widget->allocation.height;
215 gdk_draw_rectangle(*ppixmap, widget->style->white_gc, TRUE, 0, 0, width, height);
227 widget->style->fg_gc[GTK_WIDGET_STATE(widget)],
231 widget->style->fg_gc[GTK_WIDGET_STATE(widget)],
238 widget->style->fg_gc[GTK_WIDGET_STATE(widget)],
261 gpk_redraw(*ppixmap, widget);
272 configure_event(GtkWidget * widget, GdkEventConfigure * event, gpointer data)
275 if ((ppixmap = findpixmap(widget))) {
278 *ppixmap = gdk_pixmap_new(widget->window,
279 widget->allocation.width, widget->allocation.height, -1);
281 widget->style->white_gc,
282 TRUE, 0, 0, widget->allocation.width, widget->allocation.height);
291 expose_event(GtkWidget * widget, GdkEventExpose * event, gpointer data)
294 if ((ppixmap = findpixmap(widget))) {
295 gdk_draw_pixmap(widget->window,
296 widget->style->fg_gc[GTK_WIDGET_STATE(widget)],