110 UiQtGraphics *gr = (UiQtGraphics*)g; |
110 UiQtGraphics *gr = (UiQtGraphics*)g; |
111 gr->color = QColor(red, green, blue); |
111 gr->color = QColor(red, green, blue); |
112 gr->painter->setPen(gr->color); |
112 gr->painter->setPen(gr->color); |
113 } |
113 } |
114 |
114 |
|
115 void ui_draw_line(UiGraphics *g, int x1, int y1, int x2, int y2) { |
|
116 UiQtGraphics *gr = (UiQtGraphics*)g; |
|
117 |
|
118 gr->painter->drawLine(x1, y1, x2, y2); |
|
119 } |
|
120 |
115 void ui_draw_rect(UiGraphics *g, int x, int y, int w, int h, int fill) { |
121 void ui_draw_rect(UiGraphics *g, int x, int y, int w, int h, int fill) { |
116 UiQtGraphics *gr = (UiQtGraphics*)g; |
122 UiQtGraphics *gr = (UiQtGraphics*)g; |
117 |
123 |
118 QRect rect(x, y, w, h); |
124 QRect rect(x, y, w, h); |
119 if(fill) { |
125 if(fill) { |