cmdfx 0.1.0
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
screen.h
Go to the documentation of this file.
1
11#pragma once
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17// Window API
18
23const char* Window_getTitle();
24
29void Window_setTitle(const char* title);
30
36void Window_getSize(int* width, int* height);
37
43void Window_setSize(int width, int height);
44
45// Screen API
46
52void Screen_getSize(int* width, int* height);
53
54#ifdef __cplusplus
55}
56#endif
void Window_setTitle(const char *title)
Sets the title of the terminal window.
void Window_setSize(int width, int height)
Sets the size of the terminal window.
void Screen_getSize(int *width, int *height)
Gets the size of the screen, and stores it in the width and height variables.
const char * Window_getTitle()
Gets the title of the terminal window.
void Window_getSize(int *width, int *height)
Gets the size of the terminal window, and stores it in the width and height variables.