Windows
The Windows namespace provides functions for managing Windows application instances, console windows, and their properties. It includes operations to create and configure a console window, set its title and geometry, check its visibility, and access console handle and status. The namespace also defines a main entry point for Windows applications.
#include <system/TellusimWindows.h>
Functions
Application instance.
void *getInstance()
Application show mode.
int32_t getShowMode()
Console window handle.
void *getConsoleHandle()
Check console status.
bool isConsoleCreated()
Create console window.
bool createConsole(const char *title, uint32_t width = 0, uint32_t height = 0, int32_t x = Maxi32, int32_t y = Maxi32)
bool createConsole(const String &title, uint32_t width = 0, uint32_t height = 0, int32_t x = Maxi32, int32_t y = Maxi32)
Set console title.
void setConsoleTitle(const char *title)
void setConsoleTitle(const String &title)
String getConsoleTitle()
Console geometry.
void setConsoleGeometry(uint32_t width, uint32_t height, int32_t x = Maxi32, int32_t y = Maxi32)
uint32_t getConsoleWidth()
uint32_t getConsoleHeight()
int32_t getConsolePositionX()
int32_t getConsolePositionY()
Hide console window.
void setConsoleHidden(bool hidden)
bool isConsoleHidden()
void main(void *instance, void *prev_instance, wchar_t *command, int32_t show_mode, Main *main)
Types
using Main = int32_t(int32_t argc, char **argv)