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

Method OnResize

src/picker_gui.cpp:368–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void PickerWindow::OnResize()
369{
370 if (this->has_class_picker) {
371 this->GetScrollbar(WID_PW_CLASS_SCROLL)->SetCapacityFromWidget(this, WID_PW_CLASS_LIST);
372 }
373}
374
375void PickerWindow::OnClick(Point pt, WidgetID widget, int)
376{

Callers 1

ResizeWindowFunction · 0.45

Calls 2

SetCapacityFromWidgetMethod · 0.80
GetScrollbarMethod · 0.80

Tested by

no test coverage detected