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

Method OnResize

src/textfile_gui.cpp:592–600  ·  view source on GitHub ↗

virtual */

Source from the content-addressed store, hash-verified

590}
591
592/* virtual */ void TextfileWindow::OnResize()
593{
594 this->vscroll->SetCapacityFromWidget(this, WID_TF_BACKGROUND, WidgetDimensions::scaled.frametext.Vertical());
595 this->hscroll->SetCapacityFromWidget(this, WID_TF_BACKGROUND, WidgetDimensions::scaled.framerect.Horizontal());
596
597 this->UpdateVisibleIterators();
598 this->ReflowContent();
599 this->SetupScrollbars();
600}
601
602/* virtual */ void TextfileWindow::OnInit()
603{

Callers

nothing calls this directly

Calls 6

ReflowContentMethod · 0.95
SetupScrollbarsMethod · 0.95
SetCapacityFromWidgetMethod · 0.80
VerticalMethod · 0.80
HorizontalMethod · 0.80

Tested by

no test coverage detected