Files
ScreamIntoTheVoid/draw.h
Jannis 873ae5ae9d
Some checks failed
Build / build (push) Failing after 5s
chore: cleanup repository and add Gitea Actions build workflow
- Update .gitignore to exclude build artifacts and IDE files
- Remove tracked .idea and .vscode directories from index
- Add .gitea/workflows/build.yaml for CI
- Commit existing source changes and README updates
2026-06-07 17:40:03 +02:00

69 lines
1.4 KiB
C

#ifndef DRAW_H_
#define DRAW_H_
/**
* @brief The width at which everything gets rendered.
*/
#define WIDTH 140
/**
* @brief The character used for the edges and layout in general
*/
#define SEPERATION_CHAR '#'
/**
* @brief Draws the Upper and Lower bar using the SEPERATION_CHAR
*
* This function prints out the SEPERATION_CHAR out by WIDTH amount of times.
* It simply runs a for-loop
*
* @see WIDTH, SEPERATION_CHAR
*/
void drawEdges();
/**
* @brief prints the title in the standard formatting centered.
*
* prints out the title centered and calculates the spacing based on the WIDTH and the length of the title.
* Puts an SEPERATION_CHAR at the start and end of the line.
*
* @param title the title that should be printed out. Type is char*
*
* @see SEPERATION_CHAR, WIDTH
*/
void drawTitle(char* title);
/**
* @brief Draws the amount of empty lines, passed as amount
*
* @param amount
*/
void drawEmptyLines(int amount);
/**
* @brief gets Userinput and puts it in the input var
*
* @param[out] output
* @param[in] displayText
*/
void getUserInput(char* output, char* displayText);
char** splitByNewLine(char *str, int *lineCount);
/**
* @brief Animates the text disappearing into the void.
*/
void screamIntoVoid(char* text);
/**
* @brief Animates the text burning away.
*/
void burnText(char* text);
/**
* @brief Animates the text dissolving.
*/
void dissolveText(char* text);
#endif