cmdfx 0.1.0
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
screen.h File Reference

Screen API for controlling other things around the terminal. More...

Go to the source code of this file.

Functions

const char * Window_getTitle ()
 Gets the title of the terminal window.
 
void Window_setTitle (const char *title)
 Sets 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.
 
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.
 

Detailed Description

Screen API for controlling other things around the terminal.

Author
Gregory Mitchell (me@gm.nosp@m.itch.nosp@m.215.x.nosp@m.yz)
Version
0.1.0
Date
2025-01-24

Function Documentation

◆ Screen_getSize()

void Screen_getSize ( int * width,
int * height )

Gets the size of the screen, and stores it in the width and height variables.

Parameters
widthThe pointer to the width of the screen.
heightThe pointer to the height of the screen.

◆ Window_getSize()

void Window_getSize ( int * width,
int * height )

Gets the size of the terminal window, and stores it in the width and height variables.

Parameters
widthThe pointer to the width of the terminal window.
heightThe pointer to the height of the terminal window.

◆ Window_getTitle()

const char * Window_getTitle ( )

Gets the title of the terminal window.

Returns
The title of the terminal window.

◆ Window_setSize()

void Window_setSize ( int width,
int height )

Sets the size of the terminal window.

Parameters
widthThe width of the terminal window.
heightThe height of the terminal window.

◆ Window_setTitle()

void Window_setTitle ( const char * title)

Sets the title of the terminal window.

Parameters
titleThe title to set.