| 252 | } |
| 253 | |
| 254 | RECT CHorizontalLayoutUI::GetThumbRect(bool bUseNew) const |
| 255 | { |
| 256 | if( (m_uButtonState & UISTATE_CAPTURED) != 0 && bUseNew) { |
| 257 | if( m_iSepWidth >= 0 ) return CDuiRect(m_rcNewPos.right - m_iSepWidth, m_rcNewPos.top, m_rcNewPos.right, m_rcNewPos.bottom); |
| 258 | else return CDuiRect(m_rcNewPos.left, m_rcNewPos.top, m_rcNewPos.left - m_iSepWidth, m_rcNewPos.bottom); |
| 259 | } |
| 260 | else { |
| 261 | if( m_iSepWidth >= 0 ) return CDuiRect(m_rcItem.right - m_iSepWidth, m_rcItem.top, m_rcItem.right, m_rcItem.bottom); |
| 262 | else return CDuiRect(m_rcItem.left, m_rcItem.top, m_rcItem.left - m_iSepWidth, m_rcItem.bottom); |
| 263 | } |
| 264 | } |
| 265 | } |
nothing calls this directly
no outgoing calls
no test coverage detected