C4 Engine
C4 Engine API Documentation

ListWidget::GetNaturalListItemSize

Defined in:  C4Widgets.h
Returns the natural size for a list item.
Prototype

Vector2D GetNaturalListItemSize(voidconst;

Description
The GetNaturalListItemSize function returns the size that a list item should have in order to perfectly fill the horizontal and vertical space allocated for each item. The horizontal size, in the x coordinate of the returne value, accounts for the scroll bar and list item offset. The vertical size, in the y coordinate of the return value, is always equal to the list item spacing.
See Also

ListWidget::GetItemSpacing

ListWidget::SetItemSpacing