Container for the 'normal' main toolbar. More...
Private Member Functions | |
const byte * | GetButtonArrangement (uint &width, uint &arrangable_count, uint &button_count, uint &spacer_count) const |
Get the arrangement of the buttons for the toolbar. |
Container for the 'normal' main toolbar.
Definition at line 1344 of file toolbar_gui.cpp.
const byte* NWidgetMainToolbarContainer::GetButtonArrangement | ( | uint & | width, | |
uint & | arrangable_count, | |||
uint & | button_count, | |||
uint & | spacer_count | |||
) | const [inline, private, virtual] |
Get the arrangement of the buttons for the toolbar.
width | the new width of the toolbar. | |
arrangable_count | output of the number of visible items. | |
button_count | output of the number of visible buttons. | |
spacer_count | output of the number of spacers. |
Implements NWidgetToolbarContainer.
Definition at line 1345 of file toolbar_gui.cpp.
References CeilDiv(), lengthof, max(), NWidgetBase::smallest_x, and NWidgetToolbarContainer::spacers.