-
Notifications
You must be signed in to change notification settings - Fork 0
/
UI_Info.h
37 lines (27 loc) · 1.26 KB
/
UI_Info.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
#ifndef UI_INFO_H
#define UI_INFO_H
#include "..\CMUgraphicsLib\CMUgraphics.h"
#include "..\Defs.h"
//User Interface information file.
//This file contains info that is needed by Input and Output classes to
//handle the user interface
__declspec(selectany) //This line to prevent "redefinition error"
struct UI_Info //User Interface Info.
{
MODE AppMode; //Application Mode (design or simulation)
static const int width = 1000, height = 750, //Window width and height
wx = 15 , wy = 15, //Window starting coordinates
StatusBarHeight = 50, //Status Bar Height
ToolBarHeight = 80, //Tool Bar Height (distance from top of window to bottom line of toolbar)
ToolItemWidth = 80; //Width of each item in toolbar menu
color DrawColor; //Drawing color
color SelectColor; //Highlighting color
color ConnColor; //Connector color
color MsgColor; //Messages color
color BkGrndColor; //Back ground color
//This should be calculated accurately because it will be used later to create connections between gates
//For now, we will assume that rect width = 50 and height = 50
static const int AND2_Width = 50, //AND2 Gate Image default width
AND2_Height = 50; //AND2 Gate Image default height
}UI; //create a single global object UI
#endif