cordle/include/ui.h
2025-10-06 14:58:25 +01:00

23 lines
584 B
C

/* ui.h - User interface functions */
#ifndef UI_H
#define UI_H
#include <curses.h>
#include "game.h"
/* Color pair constants */
#define COLOR_DEFAULT 1
#define COLOR_CORRECT 2
#define COLOR_PRESENT 3
#define COLOR_ABSENT 4
#define COLOR_WWHITE 7
#define COLOR_UNUSED 6
void draw_title(WINDOW* win, int y, const char* difficulty);
void draw_board(WINDOW* win, GameState* game, int y);
void draw_keyboard(WINDOW* win, GameState* game, int y);
void draw_message(WINDOW* win, const char* message, int y, int color_pair);
void draw_instructions(WINDOW* win, int y);
#endif /* UI_H */