MCPcopy Create free account
hub / github.com/LibreCAD/LibreCAD / toggle

Method toggle

librecad/src/lib/engine/rs_layer.cpp:105–108  ·  view source on GitHub ↗

* Toggles the visibility of this layer. * Freezes the layer if it's not frozen, thaws the layer otherwise */

Source from the content-addressed store, hash-verified

103 * Freezes the layer if it's not frozen, thaws the layer otherwise
104 */
105void RS_Layer::toggle() {
106 //toggleFlag(RS2::FlagFrozen);
107 data.frozen = !data.frozen;
108}
109
110/**
111 * (De-)freezes this layer.

Callers 2

toggleLayerMethod · 0.45
toggleBlockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected