(&mut self, x: f64, y: f64, w: f64, h: f64, thickness: f64, r: f64, g: f64, b: f64, a: f64)
| 11859 | } |
| 11860 | |
| 11861 | pub fn draw_rect_lines(&mut self, x: f64, y: f64, w: f64, h: f64, thickness: f64, r: f64, g: f64, b: f64, a: f64) { |
| 11862 | let t = thickness; |
| 11863 | self.draw_rect(x, y, w, t, r, g, b, a); |
| 11864 | self.draw_rect(x, y + h - t, w, t, r, g, b, a); |
| 11865 | self.draw_rect(x, y + t, t, h - 2.0 * t, r, g, b, a); |
| 11866 | self.draw_rect(x + w - t, y + t, t, h - 2.0 * t, r, g, b, a); |
| 11867 | } |
| 11868 | |
| 11869 | pub fn draw_line(&mut self, x1: f64, y1: f64, x2: f64, y2: f64, thickness: f64, r: f64, g: f64, b: f64, a: f64) { |
| 11870 | self.ensure_draw_state(0); |
no test coverage detected