// Values for adjusting the GUI layout const int WINDOW_WIDTH = 460; const int WINDOW_HEIGHT = 300; const int MARGIN = 10; const int FIELD_WIDTH = 140; const int FIELD_HEIGHT = 30; const int BUTTON_WIDTH = 100; const int BUTTON_HEIGHT = 45; const int DISPLAY_WIDTH = WINDOW_WIDTH - 40; const int DISPLAY_HEIGHT = WINDOW_HEIGHT - FIELD_HEIGHT*3 - 80; // Variables to hold the IDs of GUI components int window; int displayPanel; int redField; int greenField; int blueField; int codeField; int rgbToCodeButton; int codeToRgbButton;