| 231 | } |
| 232 | |
| 233 | int32_t WindowGetScrollDataIndex(const WindowBase& w, WidgetIndex widget_index) |
| 234 | { |
| 235 | int32_t result = 0; |
| 236 | for (int32_t i = 0; i < widget_index; i++) |
| 237 | { |
| 238 | const auto& widget = w.widgets[i]; |
| 239 | if (widget.type == WidgetType::scroll) |
| 240 | result++; |
| 241 | } |
| 242 | return result; |
| 243 | } |
| 244 | |
| 245 | /** |
| 246 | * |
no outgoing calls
no test coverage detected