MCPcopy Create free account
hub / github.com/DISTRHO/DPF / drawRectangle

Function drawRectangle

dgl/src/Cairo.cpp:260–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259template<typename T>
260static void drawRectangle(cairo_t* const handle, const Rectangle<T>& rect, const bool outline)
261{
262 cairo_rectangle(handle, rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight());
263
264 if (outline)
265 cairo_stroke(handle);
266 else
267 cairo_fill(handle);
268}
269
270template<typename T>
271void Rectangle<T>::draw(const GraphicsContext& context)

Callers 2

drawMethod · 0.70
drawOutlineMethod · 0.70

Calls 2

getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected