MCPcopy Create free account
hub / github.com/dejwk/roo_display / drawTo

Method drawTo

src/roo_display.cpp:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140 private:
141 void drawTo(const Surface& s) const override {
142 if (s.dx() == 0 && s.dy() == 0) {
143 ClippingBufferedPixelWriter writer(s.out(), extents_, blending_mode_);
144 fn_(writer);
145 } else {
146 TransformedDisplayOutput out(s.out(),
147 Transformation().translate(s.dx(), s.dy()));
148 ClippingBufferedPixelWriter writer(out, extents_, blending_mode_);
149 fn_(writer);
150 }
151 }
152
153 const std::function<void(ClippingBufferedPixelWriter&)>& fn_;
154 Box extents_;

Callers

nothing calls this directly

Calls 4

TransformationClass · 0.85
dxMethod · 0.45
dyMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected