MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / switch_tool

Method switch_tool

src/DrawingProgram/Tools/RectSelectTool.cpp:101–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void RectSelectTool::switch_tool(DrawingProgramToolType newTool) {
102 if(!drawP.is_selection_allowing_tool(newTool))
103 drawP.selection.deselect_all();
104}
105
106void RectSelectTool::tool_update() {
107}

Callers

nothing calls this directly

Calls 2

deselect_allMethod · 0.45

Tested by

no test coverage detected