27 #include "../../common/common.h"
39 void UI_InitStack(
const char* activeWindow,
const char* mainWindow);
void UI_InvalidateStack(void)
Invalidate all windows of the current stack.
void UI_InitStack(const char *activeWindow, const char *mainWindow)
Init the stack to start with a window, and have an alternative window with ESC.
void UI_PopWindowWithEscKey(void)
void UI_InsertWindow(uiNode_t *window)
Add a new window to the list of all windows.
void UI_PopWindow(bool all=false)
Pops a window from the window stack.
void UI_InitWindows(void)
bool UI_IsMouseOnWindow(void)
Check if a point is over a window from the stack.
uiNode_t * UI_PushWindow(const char *name, const char *parentName=nullptr, linkedList_t *params=nullptr)
Push a window onto the window stack.
Atomic structure used to define most of the UI.
bool UI_IsWindowOnStack(const char *name)
Check if a named window is on the stack if active windows.
Contain the context of the calling of a function.
void UI_RemoveWindow(uiNode_t *window)
Removes a window from the list of all windows.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
void UI_CloseWindow(const char *name)
void UI_MoveWindowOnTop(uiNode_t *window)
Move the window on top of compatible windows. "Compatible" mean non full screen windows, and windows with the same window parent.
int UI_CompleteWithWindow(const char *partial, const char **match)
Complete function for ui_push.
int UI_GetLastFullScreenWindow(void)
Returns the ID of the last fullscreen ID. Before this, window should be hidden.
void UI_SetNewWindowPos(uiNode_t *window, int x, int y)
Sets new x and y coordinates for a given window.
uiNode_t * UI_GetActiveWindow(void)
Returns the current active window from the window stack or nullptr if there is none.
const char * UI_GetActiveWindowName(void)
Returns the name of the current window.
uiNode_t * UI_GetWindow(const char *name)
Searches all windows for the specified one.