MCPcopy Create free account
hub / github.com/cinience/RedisStudio / GetThumbRect

Method GetThumbRect

DuiLib/Layout/UIHorizontalLayout.cpp:254–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected