XenevaOS
Loading...
Searching...
No Matches
paint_types.h
Go to the documentation of this file.
1#ifndef __PAINT_TYPES_H__
2#define __PAINT_TYPES_H__
3
4#include <stdint.h>
5#include <stddef.h>
6#include <stdbool.h>
7
8#define PAINT_WIN_WIDTH 780
9#define PAINT_WIN_HEIGHT 540
10
11#define CANVAS_X 78
12#define CANVAS_Y 70
13#define CANVAS_W 692
14#define CANVAS_H 420
15
16#define MAX_UNDO_LEVELS 8
17
31
32struct PaintPoint {
33 int x;
34 int y;
35};
36
37struct PaintRect {
38 int x;
39 int y;
40 int w;
41 int h;
42};
43
44#define COLOR_PALETTE_SIZE 24
45
46static const uint32_t PRESET_PALETTE[COLOR_PALETTE_SIZE] = {
47 // Row 1
48 0xFF000000, // Black
49 0xFF333333, // Dark Slate
50 0xFF666666, // Dark Gray
51 0xFF999999, // Medium Gray
52 0xFFCCCCCC, // Light Gray
53 0xFFFFFFFF, // White
54 0xFFE53935, // Crimson Red
55 0xFFFB8C00, // Vivid Orange
56 0xFFFDD835, // Golden Yellow
57 0xFF43A047, // Emerald Green
58 0xFF039BE5, // Sky Blue
59 0xFF1E88E5, // Royal Blue
60
61 // Row 2
62 0xFF6D4C41, // Brown
63 0xFFFF8A80, // Coral
64 0xFFFFB300, // Amber
65 0xFF7CB342, // Lime Green
66 0xFF00897B, // Teal
67 0xFF00ACC1, // Cyan
68 0xFF3949AB, // Indigo
69 0xFF8E24AA, // Violet
70 0xFFD81B60, // Deep Magenta
71 0xFFFF4081, // Hot Pink
72 0xFF558B2F, // Olive
73 0xFF1A237E // Deep Navy
74};
75
76#endif
unsigned int uint32_t
Definition acefiex.h:163
#define COLOR_PALETTE_SIZE
Definition paint_types.h:44
PaintTool
Definition paint_types.h:18
@ TOOL_EYEDROPPER
Definition paint_types.h:28
@ TOOL_RECTANGLE
Definition paint_types.h:24
@ TOOL_BRUSH
Definition paint_types.h:20
@ TOOL_ERASER
Definition paint_types.h:21
@ TOOL_CIRCLE
Definition paint_types.h:26
@ TOOL_FILLED_RECTANGLE
Definition paint_types.h:25
@ TOOL_PENCIL
Definition paint_types.h:19
@ TOOL_FILLED_CIRCLE
Definition paint_types.h:27
@ TOOL_COUNT
Definition paint_types.h:29
@ TOOL_FLOOD_FILL
Definition paint_types.h:22
@ TOOL_LINE
Definition paint_types.h:23
Definition paint_types.h:32
int x
Definition paint_types.h:33
int y
Definition paint_types.h:34
Definition paint_types.h:37
int h
Definition paint_types.h:41
int x
Definition paint_types.h:38
int y
Definition paint_types.h:39
int w
Definition paint_types.h:40