OpenTTD Source
12.0-beta2
|
void SetWindowDirty(WindowClass cls, WindowNumber number)
Mark window as dirty (in need of repainting)
int PositionStatusbar(Window *w)
(Re)position statusbar window at the screen.
void CloseWindowById(WindowClass cls, WindowNumber number, bool force=true)
Close a window by its class and window number (if it is open).
Window * FindWindowById(WindowClass cls, WindowNumber number)
Find a window by its class and window number.
void CloseNonVitalWindows()
Try to close a non-vital window.
void CloseWindowByClass(WindowClass cls)
Close all windows of a given class.
int32 WindowNumber
Number to differentiate different windows of the same class.
void CloseConstructionWindows()
Close all windows that are used for construction of vehicle etc.
Owner
Enum for all companies/owners.
void CloseAllNonVitalWindows()
It is possible that a stickied window gets to a position where the 'close' button is outside the gami...
void SetWindowClassesDirty(WindowClass cls)
Mark all windows of a particular class as dirty (in need of repainting)
void InitWindowSystem()
(re)initialize the windowing system
void DeleteAllMessages()
Delete all messages and close their corresponding window (if any).
bool EditBoxInGlobalFocus()
Check if an edit box is in global focus.
void InputLoop()
Regular call from the global game loop.
WindowClass
Window classes.
void InvalidateWindowClassesData(WindowClass cls, int data=0, bool gui_scope=false)
Mark window data of all windows of a given class as invalid (in need of re-computing) Note that by de...
Coordinates of a point in 2D.
void ResizeWindow(Window *w, int x, int y, bool clamp_to_screen=true)
Resize the window.
Window * FindWindowByClass(WindowClass cls)
Find any window by its class.
bool FocusedWindowIsConsole()
Check if a console is focused.
void InvalidateWindowData(WindowClass cls, WindowNumber number, int data=0, bool gui_scope=false)
Mark window data of the window of a given class and specific window number as invalid (in need of re-...
void HideVitalWindows()
Close all always on-top windows to get an empty screen.
void ReInitAllWindows(bool zoom_changed)
Re-initialize all windows.
int PositionNewsMessage(Window *w)
(Re)position news message window at the screen.
void ShowVitalWindows()
Show the vital in-game windows.
int GetMainViewBottom()
Return the bottom of the main view available for general use.
void SetupColoursAndInitialWindow()
Initialise the default colours (remaps and the likes), and load the main windows.
int PositionNetworkChatWindow(Window *w)
(Re)position network chat window at the screen.
void ResetWindowSystem()
Reset the windowing system, by means of shutting it down followed by re-initialization.
int PositionMainToolbar(Window *w)
(Re)position main toolbar window at the screen.
void UnInitWindowSystem()
Close down the windowing system.
Data structure for an opened window.
void ChangeWindowOwner(Owner old_owner, Owner new_owner)
Change the owner of all the windows one company can take over from another company in the case of a c...
int GetMainViewTop()
Return the top of the main view available for general use.
void SetWindowWidgetDirty(WindowClass cls, WindowNumber number, byte widget_index)
Mark a particular widget in a particular window as dirty (in need of repainting)