ui/gtk/draw_gdk.c

changeset 114
909fe96e5659
parent 95
29f5cd5f5367
child 140
c03c338a7dcf
equal deleted inserted replaced
113:500c085d2133 114:909fe96e5659
75 color.blue = blue * 257; 75 color.blue = blue * 257;
76 gdk_gc_set_rgb_fg_color(gr->gc, &color); 76 gdk_gc_set_rgb_fg_color(gr->gc, &color);
77 //gdk_gc_set_rgb_bg_color(g->gc, &color); 77 //gdk_gc_set_rgb_bg_color(g->gc, &color);
78 } 78 }
79 79
80 void ui_draw_line(UiGraphics *g, int x1, int y1, int x2, int y2) {
81 UiGdkGraphics *gr = (UiGdkGraphics*)g;
82 gdk_draw_line(gr->widget->window, gr->gc, x1, y1, x2, y2);
83 }
80 84
81 void ui_draw_rect(UiGraphics *g, int x, int y, int w, int h, int fill) { 85 void ui_draw_rect(UiGraphics *g, int x, int y, int w, int h, int fill) {
82 UiGdkGraphics *gr = (UiGdkGraphics*)g; 86 UiGdkGraphics *gr = (UiGdkGraphics*)g;
83 gdk_draw_rectangle(gr->widget->window, gr->gc, fill, x, y, w, h); 87 gdk_draw_rectangle(gr->widget->window, gr->gc, fill, x, y, w, h);
84 } 88 }

mercurial