MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / drawLine

Method drawLine

src/platform/cairo/graphic_cairo.cpp:298–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void Graphics2D_cairo::drawLine(float x1, float y1, float x2, float y2) {
299 _context->move_to(x1, y1);
300 _context->line_to(x2, y2);
301 _context->stroke();
302}
303
304void Graphics2D_cairo::drawRect(float x, float y, float w, float h) {
305 _context->rectangle(x, y, w, h);

Callers 2

drawMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected