OpenTTD Source
1.11.0-beta2
|
void DeleteAllNonVitalWindows()
It is possible that a stickied window gets to a position where the 'close' button is outside the gami...
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.
Window * FindWindowById(WindowClass cls, WindowNumber number)
Find a window by its class and window number.
int32 WindowNumber
Number to differentiate different windows of the same class.
Owner
Enum for all companies/owners.
void SetWindowClassesDirty(WindowClass cls)
Mark all windows of a particular class as dirty (in need of repainting)
void DeleteNonVitalWindows()
Try to delete a non-vital window.
void InitWindowSystem()
(re)initialize the windowing system
void DeleteAllMessages()
Delete all messages and 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 DeleteWindowById(WindowClass cls, WindowNumber number, bool force=true)
Delete a window by its class and window number (if it is open).
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 ReInitAllWindows()
Re-initialize all windows.
void HideVitalWindows()
Delete all always on-top windows to get an empty screen.
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 DeleteWindowByClass(WindowClass cls)
Delete all windows of a given class.
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)
void DeleteConstructionWindows()
Delete all windows that are used for construction of vehicle etc.