MCPcopy Create free account
hub / github.com/9miao/CrossApp / rowSizeForComponent

Method rowSizeForComponent

CrossApp/view/CAPickerView.cpp:157–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157DSize CAPickerView::rowSizeForComponent(unsigned int component)
158{
159 if (m_dataSource)
160 {
161 float width = m_dataSource->widthForComponent(this, component);
162 float height = m_dataSource->rowHeightForComponent(this, component);
163 return DSize(width, height);
164 }
165 return DSize(0, 0);
166}
167
168CAView* CAPickerView::viewForRow(unsigned int row, unsigned int component)
169{

Calls 3

DSizeClass · 0.85
widthForComponentMethod · 0.45
rowHeightForComponentMethod · 0.45

Tested by

no test coverage detected