Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
181
void Canvas::resetStateStack() {
182
mcState = std::make_unique<MCState>();
183
std::stack<std::unique_ptr<CanvasState>>().swap(stateStack);
184
}
185
186
void Canvas::clear(const Color& color) {
187
drawColor(color, BlendMode::Src);
Callers
1
beginRecording
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected