-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDEFS.h
More file actions
78 lines (68 loc) · 2.16 KB
/
Copy pathDEFS.h
File metadata and controls
78 lines (68 loc) · 2.16 KB
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
73
74
75
76
77
78
#ifndef DEFS_H
#define DEFS_H
#include "CMUgraphicsLib\CMUgraphics.h"
//This file contais some global constants and definitions to be used in the project.
enum ActionType //The actions supported (you can add more if needed)
{
DRAW_SQUARE, //Draw a Square
DRAW_CIRC, //Draw an Circle
DRAW_ELLIP, //Draw an Ellipse
DRAW_HEXA , //Draw Hexagon
DRAW_TRA, //Draw Triangle
SELECT, //SELECT
FRONT, // BRING TO FRONT
BACK, //SEND TO BACK
Delete, // Delete Figures
CHNG_DRAW_CLR, //Change the drawing color
CHNG_FILL_CLR, //Change the filling color
CHNG_BK_CLR, //Change background color
DEL, //Delete a figure(s)
MOVE, //Move a figure(s)
RESIZE, //Resize a figure(s)
ROTATE, //Rotate a figure(s)
SEND_BACK, //Send a figure to the back of all figures
BRNG_FRNT, //Bring a figure to the front of all figures
SAVE, //Save the whole graph to a file
LOAD, //Load a graph from a file
EXIT, //Exit the application
DRAWING_AREA, //A click on the drawing area
STATUS, //A click on the status bar
EMPTY, //A click on empty place in the toolbar
TO_DRAW, //Switch interface to Draw mode
TO_PLAY, //Switch interface to Play mode
ACTION_PLAY_TYPE, // pick by type
ACTION_PLAY_FILL, // pic by fill color
ACTION_PLAY_TYPEFILL, // pic by type and fill color
ACTION_PLAY_RESET, // restart the game
ACTION_TO_DRAW, //Switch interface to Draw mode
TO_SIZE,
HALF,
QUARTER,
DOUBLE1,
QUADRUPLE,
BACK2,
GO_BACK,
ACTION_TO_PLAY, //Switch interface to Play mode
SET_RED, //pick red color
SET_GREEN, //pick green color
SET_BLUE, //pick blue color
SET_PINK, //pick pink color
SET_MAROON, //pick maroon color
SET_PURPLE, //pick purple color
SET_BLACK, // Pick Black color
SET_WHITE, //Pick Gray color
SET_ORANGE, //Pick navy color
SET_LIGHT_BLUE, //Pick LightBlue Color
SET_YELLOW,
///TODO: Add more action types (if needed)
};
struct Point //To be used for figures points
{ int x,y; };
struct GfxInfo //Graphical info of each figure (you may add more members)
{
color DrawClr; //Draw color of the figure
color FillClr; //Fill color of the figure
bool isFilled; //Figure Filled or not
int BorderWdth; //Width of figure borders
};
#endif