| 177 | [[maybe_unused]] const std::array<float, 4> &color) {} |
| 178 | |
| 179 | void backend_interface::draw_rectangle( |
| 180 | [[maybe_unused]] const double x1, [[maybe_unused]] const double x2, |
| 181 | [[maybe_unused]] const double y1, [[maybe_unused]] const double y2, |
| 182 | [[maybe_unused]] const std::array<float, 4> &color) { |
| 183 | if (!consumes_gnuplot_commands()) { |
| 184 | throw std::logic_error( |
| 185 | "There is no function to draw_rectangle in this backend yet"); |
| 186 | } else { |
| 187 | throw std::logic_error("This backend has no function draw_triangle " |
| 188 | "because it is based on gnuplot commands"); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | bool backend_interface::should_close() { |
| 193 | // by default, we assume backends simply don't have this feature |
nothing calls this directly
no outgoing calls
no test coverage detected