OpenTTD Source 20260621-master-g720d10536d
console_gui.h File Reference

GUI related functions in the console. More...

#include "window_type.h"

Go to the source code of this file.

Functions

void IConsoleResize (Window *w)
 Change the size of the in-game console window after the screen size changed, or the window state changed.
void IConsoleSwitch ()
 Toggle in-game console between opened and closed.

Detailed Description

GUI related functions in the console.

Definition in file console_gui.h.

Function Documentation

◆ IConsoleResize()

void IConsoleResize ( Window * w)

Change the size of the in-game console window after the screen size changed, or the window state changed.

Parameters
wThe window to update.

Definition at line 412 of file console_gui.cpp.

References _iconsole_mode, Full, Window::height, MarkWholeScreenDirty(), Opened, and Window::width.

Referenced by IConsoleWindow::OnKeyPress(), and RelocateAllWindows().

◆ IConsoleSwitch()

void IConsoleSwitch ( )

Toggle in-game console between opened and closed.

Definition at line 430 of file console_gui.cpp.

References _iconsole_mode, Closed, CloseWindowById(), Full, MarkWholeScreenDirty(), and Opened.

Referenced by IConsoleClose(), MenuClickHelp(), MainWindow::OnHotkey(), and IConsoleWindow::OnKeyPress().