Skip to content

Commit 9bdf2f9

Browse files
committed
gui: add support for drawLine with odb::Line
Signed-off-by: Peter Gadfort <peter.gadfort@gmail.com>
1 parent de7f11e commit 9bdf2f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/gui/include/gui/gui.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class Painter
216216

217217
// Draw a line with coordinates in DBU with the current pen
218218
virtual void drawLine(const odb::Point& p1, const odb::Point& p2) = 0;
219+
void drawLine(const odb::Line& line) { drawLine(line.pt0(), line.pt1()); }
219220

220221
// Draw a circle with coordinates in DBU with the current pen
221222
virtual void drawCircle(int x, int y, int r) = 0;

0 commit comments

Comments
 (0)