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

Function PositionMainToolbar

src/window.cpp:3468–3472  ·  view source on GitHub ↗

* (Re)position main toolbar window at the screen. * @param w Window structure of the main toolbar window, may also be \c nullptr. * @return X coordinate of left edge of the repositioned toolbar window. */

Source from the content-addressed store, hash-verified

3466 * @return X coordinate of left edge of the repositioned toolbar window.
3467 */
3468int PositionMainToolbar(Window *w)
3469{
3470 Debug(misc, 5, "Repositioning Main Toolbar...");
3471 return PositionWindow(w, WC_MAIN_TOOLBAR, _settings_client.gui.toolbar_pos);
3472}
3473
3474/**
3475 * (Re)position statusbar window at the screen.

Callers 4

MainToolbarWindowMethod · 0.85
RelocateAllWindowsFunction · 0.85
v_PositionMainToolbarFunction · 0.85

Calls 1

PositionWindowFunction · 0.85

Tested by

no test coverage detected