MCPcopy Create free account
hub / github.com/audacity/audacity / GetChild

Method GetChild

src/RealtimeEffectPanel.cpp:404–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

GetChildrenMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected