57 Point GetCaretPosition();
int PositionNewsMessage(Window *w)
(Re)position news message window at the screen.
void DeleteWindowById(WindowClass cls, WindowNumber number, bool force=true)
Delete a window by its class and window number (if it is open).
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 HideVitalWindows()
Delete all always on-top windows to get an empty screen.
int PositionMainToolbar(Window *w)
(Re)position main toolbar window at the screen.
void ShowVitalWindows()
Show the vital in-game windows.
void DeleteWindowByClass(WindowClass cls)
Delete all windows of a given class.
Types related to windows.
int PositionNetworkChatWindow(Window *w)
(Re)position network chat window at the screen.
void SetupColoursAndInitialWindow()
Initialise the default colours (remaps and the likes), and load the main windows. ...
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...
bool EditBoxInGlobalFocus()
Check if an edit box is in global focus.
void ResizeWindow(Window *w, int x, int y, bool clamp_to_screen=true)
Resize the window.
void UnInitWindowSystem()
Close down the windowing system.
int GetMainViewTop()
Return the top of the main view available for general use.
WindowClass
Window classes.
void DeleteConstructionWindows()
Delete all windows that are used for construction of vehicle etc.
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-...
Window * FindWindowByClass(WindowClass cls)
Find any window by its class.
Data structure for an opened window.
void SetWindowDirty(WindowClass cls, WindowNumber number)
Mark window as dirty (in need of repainting)
void ReInitAllWindows()
Re-initialize all windows.
void ResetWindowSystem()
Reset the windowing system, by means of shutting it down followed by re-initialization.
int GetMainViewBottom()
Return the bottom of the main view available for general use.
void DeleteAllNonVitalWindows()
It is possible that a stickied window gets to a position where the 'close' button is outside the gami...
void SetWindowWidgetDirty(WindowClass cls, WindowNumber number, byte widget_index)
Mark a particular widget in a particular window as dirty (in need of repainting)
void InputLoop()
Regular call from the global game loop.
void InitWindowSystem()
(re)initialize the windowing system
All geometry types in OpenTTD.
Window * FindWindowById(WindowClass cls, WindowNumber number)
Find a window by its class and window number.
Coordinates of a point in 2D.
Types related to companies.
int PositionStatusbar(Window *w)
(Re)position statusbar window at the screen.
int32 WindowNumber
Number to differentiate different windows of the same class.
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...
Owner
Enum for all companies/owners.