| 250 | } |
| 251 | |
| 252 | wxAccStatus 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 | |
| 269 | wxAccStatus TreeCtrlAx::GetName(int childId, wxString* name) |
| 270 | { |
nothing calls this directly
no test coverage detected