| 1146 | } |
| 1147 | |
| 1148 | void 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 | |
| 1169 | bool Layer::prepareForReuse() { |
| 1170 | return true; |
nothing calls this directly
no test coverage detected