-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDEFS.h
72 lines (65 loc) · 1.92 KB
/
DEFS.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef DEFS_H
#define DEFS_H
#include "CMUgraphicsLib\CMUgraphics.h"
// This file contains some global constants and definitions to be used in the project.
enum ActionType // The actions supported
{
TO_PLAY, // Switch interface to play mode
TO_DRAW, // Switch interface to draw mode
DRAW_RECT, // Draw Rectangle
DRAW_CIRCLE, // Draw Circle
DRAW_SQUARE, // Draw Square
DRAW_TRIANGLE, // Draw Triangle
DRAW_HEXAGON, // Draw Hexagon
BORDER_WIDTH, // Change Border Width
SELECT, // Select Shape
OUTLINE_COLOR, // Outline Color Menu
FILL_COLOR, // Fill Color Menu
REMOVE, // Remove Selected Shape
MOVE, // Move Selected Shape
DRAG_MOVE, // Move Selected Shape By Dragging
DRAG_RESIZE, // Resize Selected Shape By Dragging
UNDO, // Undo Last Action
REDO, // Redo Last Action
CLEAR_ALL, // Clear Canvas
START_RECORDING, // Start Recording
STOP_RECORDING, // Stop Recording
PLAY_RECORDING, // Play Recording
BACKGROUND_COLOR, // Canvas Background Color Menu
TOGGLE_SOUND, // Toggle Action Sound Playing
OPEN_GRAPH, // Open Saved Graph
SAVE_GRAPH, // Save Current Graph
PICK_BY_COLOR, // Pick By Color Game Mode (Play Mode)
PICK_BY_SHAPE, // Pick By Shape Game Mode (Play Mode)
PICK_BY_SHAPE_COLOR, // Pick By Shape and Color Game Mode (Play Mode)
DRAWING_AREA, // A click on the drawing area
STATUS, // A click on the status bar
EMPTY, // A click on empty place in the toolbar
EXIT // Exit
};
struct Point // To be used for figures points
{
int x, y;
};
struct PointDouble // To be used for figures points
{
double x, y;
PointDouble(Point P)
{
x = P.x;
y = P.y;
};
PointDouble()
{
x = 0;
y = 0;
}
};
struct GfxInfo // Graphical info of each figure
{
color DrawColor; // Draw color of the figure
color FillColor; // Fill color of the figure
bool IsFilled; // Figure Filled or not
int BorderWidth; // Width of figure borders
};
#endif