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

Method GetName

src/prefs/PrefsDialog.cpp:269–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269wxAccStatus TreeCtrlAx::GetName(int childId, wxString* name)
270{
271 if ( childId == wxACC_SELF )
272 return WindowAccessible::GetName( childId, name );
273 else {
274 auto ctrl = GetCtrl();
275 if (!ctrl)
276 return wxACC_FAIL;
277
278 auto item = FindItem( *ctrl, childId );
279 if ( item ) {
280 *name = ctrl->GetItemText( item );
281 return wxACC_OK;
282 }
283 else
284 return wxACC_INVALID_ARG;
285 }
286}
287
288wxAccStatus TreeCtrlAx::GetRole( int childId, wxAccRole* role )
289{

Callers 3

SetKeyForSelectedMethod · 0.45
OnSetMethod · 0.45
PrefsDialogMethod · 0.45

Calls 1

FindItemFunction · 0.85

Tested by

no test coverage detected