| 402 | } |
| 403 | |
| 404 | wxAccStatus GetChild(int childId, wxAccessible** child) override |
| 405 | { |
| 406 | if(childId == wxACC_SELF) |
| 407 | *child = this; |
| 408 | else |
| 409 | { |
| 410 | const auto window = GetWindow(); |
| 411 | const auto& children = window->GetChildren(); |
| 412 | const auto childIndex = childId - 1; |
| 413 | if(childIndex < children.size()) |
| 414 | *child = children[childIndex]->GetAccessible(); |
| 415 | else |
| 416 | *child = nullptr; |
| 417 | } |
| 418 | return wxACC_OK; |
| 419 | } |
| 420 | |
| 421 | wxAccStatus GetRole(int childId, wxAccRole* role) override |
| 422 | { |
nothing calls this directly
no test coverage detected