MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / toggleObjectSelection

Method toggleObjectSelection

src/core/map.cpp:1050–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1048}
1049
1050bool Map::toggleObjectSelection(Object* object, bool emit_selection_changed)
1051{
1052 if (isObjectSelected(object))
1053 {
1054 removeObjectFromSelection(object, emit_selection_changed);
1055 return false;
1056 }
1057 else
1058 {
1059 addObjectToSelection(object, emit_selection_changed);
1060 return true;
1061 }
1062}
1063
1064void Map::clearObjectSelection(bool emit_selection_changed)
1065{

Callers 2

selectAtMethod · 0.80
selectBoxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected