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

Method commit

src/DrawingProgram/Tools/TextBoxTool.cpp:137–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void TextBoxTool::commit() {
138 if(objInfoBeingEdited) {
139 NetworkingObjects::NetObjOwnerPtr<CanvasComponentContainer>& containerPtr = objInfoBeingEdited->obj;
140 make_sure_textbox_is_big();
141 containerPtr->commit_update(drawP);
142 containerPtr->send_comp_update(drawP, true);
143 commitUpdate = false;
144 drawP.layerMan.add_undo_place_component(objInfoBeingEdited);
145 objInfoBeingEdited = nullptr;
146 }
147}
148
149void TextBoxTool::draw(SkCanvas* canvas, const DrawData& drawData) {
150}

Callers

nothing calls this directly

Calls 3

commit_updateMethod · 0.80
send_comp_updateMethod · 0.80

Tested by

no test coverage detected