PocketPutr/Desktop_Test/GLOBALS.h
2025-12-18 20:49:57 +01:00

40 lines
618 B
C++

#pragma once
#include <atomic>
#define MAX_SCREEN_WIDTH 480
#define MAX_SCREEN_HEIGHT 320
#define COL_WHITE 0xffff
#define COL_BLACK 0x0000
#define COL_GREY 0xbdf7
#define COL_LIGHT_GREY 0x8410
#define COL_DARK_BLUE 0x0014
#define COL_RED 0xf800
enum CLICK_EVENTS {
NONE = 0,
LEFT_CLICK = 1,
RIGHT_CLICK = 2,
};
struct CLICK_EVENT {
int x;
int y;
CLICK_EVENTS event;
};
enum class ApplicationEventState {
NONE = 0,
CREATED = 1,
CLOSED = 2,
};
struct APPLICATION_EVENT {
int id;
ApplicationEventState state;
char title[64];
};
struct DISPLAY_STATE {
std::atomic<bool> update_display;
};