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

Method drawAt

dgl/src/Cairo.cpp:560–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560void CairoImage::drawAt(const GraphicsContext& context, const Point<int>& pos)
561{
562 DISTRHO_SAFE_ASSERT_RETURN(surface != nullptr,);
563
564 cairo_t* const handle = static_cast<const CairoGraphicsContext&>(context).handle;
565
566 cairo_set_source_surface(handle, surface, pos.getX(), pos.getY());
567 cairo_paint(handle);
568}
569
570CairoImage& CairoImage::operator=(const CairoImage& image) noexcept
571{

Callers 3

onDisplayMethod · 0.45
onDisplayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected