MCPcopy Create free account
hub / github.com/Tencent/tgfx / resetStateStack

Method resetStateStack

src/core/Canvas.cpp:181–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void Canvas::resetStateStack() {
182 mcState = std::make_unique<MCState>();
183 std::stack<std::unique_ptr<CanvasState>>().swap(stateStack);
184}
185
186void Canvas::clear(const Color& color) {
187 drawColor(color, BlendMode::Src);

Callers 1

beginRecordingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected