MCPcopy Create free account
hub / github.com/Snapchat/Valdi / outputDebugDescription

Method outputDebugDescription

snap_drawing/src/snap_drawing/cpp/Layers/Layer.cpp:1148–1167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1146}
1147
1148void Layer::outputDebugDescription(std::string& out, int indent, bool recursive) const {
1149 for (int i = 0; i < indent; i++) {
1150 out += " ";
1151 }
1152
1153 out += getClassName();
1154 out += " (ID: " + getAccessibilityId().slowToString() + ")";
1155 out += " ";
1156 out += "x:" + std::to_string(_frame.x());
1157 out += ", y:" + std::to_string(_frame.y());
1158 out += ", w:" + std::to_string(_frame.width());
1159 out += ", h:" + std::to_string(_frame.height());
1160
1161 if (recursive) {
1162 for (const auto& child : _children.readAccess()) {
1163 out += "\n";
1164 child->outputDebugDescription(out, indent + 1, recursive);
1165 }
1166 }
1167}
1168
1169bool Layer::prepareForReuse() {
1170 return true;

Callers

nothing calls this directly

Calls 7

slowToStringMethod · 0.80
xMethod · 0.80
yMethod · 0.80
to_stringFunction · 0.50
widthMethod · 0.45
heightMethod · 0.45
readAccessMethod · 0.45

Tested by

no test coverage detected