Files
adhd/include/window_state.h
T
talksikandtalksik 0b09ef40b0 2026 Renovation (#3)
Rebuilt using raylib immediate mode gui. Simple window mode with text input and progress graph, and overlay mode.

Reviewed-on: #3
Co-authored-by: talksik <[email protected]>
2026-10-03 20:20:17 +00:00

29 lines
482 B
C

#ifndef WINDOWSTATE_H
#define WINDOWSTATE_H
#include "common.h"
#include <stddef.h>
#include <time.h>
enum mode_t {
WINDOW = 0,
OVERLAY
};
typedef enum mode_t Mode;
void init_window_state();
void cleanup_window_state();
void set_intention(char *intention);
char *get_intention();
size_t get_intention_size();
Mode get_mode();
void set_mode(Mode mode);
// returns 1 for win, 0 for loss
U32 get_result(struct tm *time);
void set_result(struct tm *time, U32 result);
#endif