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

Method GetLocation

src/prefs/PrefsDialog.cpp:252–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252wxAccStatus TreeCtrlAx::GetLocation( wxRect& rect, int elementId )
253{
254 auto ctrl = GetCtrl();
255 if (!ctrl)
256 return wxACC_FAIL;
257
258 if (elementId == wxACC_SELF)
259 rect = ctrl->GetRect();
260 else {
261 auto item = FindItem( *ctrl, elementId );
262 if ( !( item && ctrl->GetBoundingRect( item, rect ) ) )
263 return wxACC_INVALID_ARG;
264 }
265 rect.SetPosition( ctrl->GetParent()->ClientToScreen( rect.GetPosition() ) );
266 return wxACC_OK;
267}
268
269wxAccStatus TreeCtrlAx::GetName(int childId, wxString* name)
270{

Callers

nothing calls this directly

Calls 3

FindItemFunction · 0.85
SetPositionMethod · 0.80
GetParentMethod · 0.45

Tested by

no test coverage detected