blob: 9cad93c3bda80b414b0461440100b683d123ed15 (
plain)
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
|
#include "linuxUI/linuxUI.h"
/// Menu Variables
HWID window;
HWID menu_box; // Box for alignment
HWID packed_menu_box; // Stores the packed box
HWID FileMenu; // File Menu
HWID EditMenu; // Edit Menu
HWID settings; // Settings Menu
HWID ProcessorMenu; // Processor Menu
HWID InstructionMenu; // Instruction Menu
HWID compile; // Compile Menu
HWID help; // Help Menu
HWID SimulateMenu; // Simulate Menu
HWID menu_bar; // Menu Bar
HWID file_label; // File menu label
HWID edit_label; // Edit menu label
HWID instruction_label; // Instruction menu label
HWID settings_label; // Settings menu label
HWID compile_label; // Compile menu label
HWID help_label; // Help menu label
HWID simulate_label; // Simulate menu label
HWID file_menu_items; // File menu item
HWID edit_menu_items; // Edit menu item
HWID instruction_menu_items; // Instruction menu item
HWID settings_menu_items; // Settings menu item
HWID processor_menu_items; // Processor menu items
HWID compile_menu_items; // Compile menu item
HWID help_menu_items; // Help menu item
HWID simulate_menu_items; // Simulate menu item
HWID file_menu_separator; // File menu separator
HWID edit_menu_separator; // Edit menu separator
HWID instruction_menu_separator; // Instruction menu separator
HWID simulate_menu_separator; // Simulate menu separator
//Scrollbars for the ladder logic area
int ScrollWidth; // Width of scrolling
int ScrollHeight; // Height of scrolling
HWID IoList; // Window for list view
/// Wraper function for gtk_window_has_toplevel_focus
BOOL isFocus(HWND window)
{
return (BOOL) gtk_window_has_toplevel_focus(GTK_WINDOW(window));
}
COLORREF RGB(int red, int green, int blue)
{
COLORREF col;
col.red = red/255.0;
col.green = green/255.0;
col.blue = blue/255.0;
col.alpha = 1.0;
return col;
}
|