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

Method AssignSizePosition

src/widget.cpp:1155–1158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155void NWidgetResizeBase::AssignSizePosition(SizingType sizing, int x, int y, uint given_width, uint given_height, bool)
1156{
1157 this->StoreSizePosition(sizing, x, y, given_width, given_height);
1158}
1159
1160/**
1161 * Initialization of a 'real' widget.

Callers 5

ReInitMethod · 0.45
InitializeDataMethod · 0.45
ResizeWindowFunction · 0.45
GetWidgetFromPosMethod · 0.45
DrawMethod · 0.45

Calls 9

SetCountMethod · 0.95
ComputeMaxSizeFunction · 0.85
CeilDivFunction · 0.85
StoreSizePositionMethod · 0.80
GetHorizontalStepSizeMethod · 0.80
HorizontalMethod · 0.80
GetVerticalStepSizeMethod · 0.80
VerticalMethod · 0.80
TestMethod · 0.80

Tested by

no test coverage detected