CFX_FloatRect CFX_ListCtrl::GetItemRectInternal(int32_t nIndex) const { if (CFX_ListItem* pListItem = m_aListItems.GetAt(nIndex)) { CFX_FloatRect rcItem = pListItem->GetRect(); rcItem.left = 0.0f; rcItem.right = GetPlateRect().Width(); return InnerToOuter(CLST_Rect(rcItem)); } return CFX_FloatRect(); }
CPDF_Rect CFX_List::GetItemRect(int32_t nIndex) const { if (CFX_ListItem * pListItem = m_aListItems.GetAt(nIndex)) { CPDF_Rect rcItem = pListItem->GetRect(); rcItem.left = 0.0f; rcItem.right = GetPlateRect().Width(); return InnerToOuter(rcItem); } return CPDF_Rect(); }
CPDF_Rect CFX_List::GetContentRect() const { return InnerToOuter(CFX_ListContainer::GetContentRect()); }
CFX_FloatRect CFX_ListCtrl::GetContentRectInternal() const { return InnerToOuter(CFX_ListContainer::GetContentRect()); }