MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / UpdateVerticalSize

Method UpdateVerticalSize

src/widget.cpp:1148–1153  ·  view source on GitHub ↗

* Set absolute (post-scaling) minimal size of the widget. * The window will need to be reinited if the size is changed. * @param min_y Vertical minimal size of the widget. * @return true iff the widget minimum size has changed. */

Source from the content-addressed store, hash-verified

1146 * @return true iff the widget minimum size has changed.
1147 */
1148bool NWidgetResizeBase::UpdateVerticalSize(uint min_y)
1149{
1150 if (min_y == this->min_y) return false;
1151 this->min_y = min_y;
1152 return true;
1153}
1154
1155void NWidgetResizeBase::AssignSizePosition(SizingType sizing, int x, int y, uint given_width, uint given_height, bool)
1156{

Callers 5

OnResizeMethod · 0.80
OnResizeMethod · 0.80
OnResizeMethod · 0.80
OnResizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected