1 /*******************************************************************************/ 2 /* This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this */ 3 /* file by hand. Modifications to this file should only be made by running */ 4 /* the Azure RTOS GUIX Studio application and re-generating the application */ 5 /* specification file(s). For more information please refer to the Azure RTOS */ 6 /* GUIX Studio User Guide, or visit our web site at azure.com/rtos */ 7 /* */ 8 /* GUIX Studio Revision 6.2.0.1 */ 9 /* Date (dd.mm.yyyy): 31.10.2022 Time (hh:mm): 14:08 */ 10 /*******************************************************************************/ 11 12 13 #ifndef _ALL_WIDGETS_SYNERGY_8BPP_ROTATED_CCW_SPECIFICATIONS_H_ 14 #define _ALL_WIDGETS_SYNERGY_8BPP_ROTATED_CCW_SPECIFICATIONS_H_ 15 16 #include "gx_api.h" 17 18 /* Determine if C++ compiler is being used, if so use standard C. */ 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #if GX_PALETTE_MODE_AA_TEXT_COLORS != 8 24 #error "The symbol GX_PALETTE_MODE_AA_TEXT_COLORS does not match the setting in the Studio project." 25 #endif 26 27 /* Define widget ids */ 28 29 #define ID_RESIZE_SCREEN 1 30 #define ID_SLIDER_WIDTH 2 31 #define ID_WIDTH_DISPLAY 3 32 #define ID_RADIO_FOOT 4 33 #define ID_RADIO_FISH 5 34 #define ID_RADIO_FOOT_ALPHA 6 35 #define ID_SLIDER_HEIGHT 7 36 #define ID_HEIGHT_DISPLAY 8 37 #define IDB_NEXT 9 38 #define ID_GAUGE_SCREEN 10 39 #define ID_GAUGE 11 40 #define ID_LINES_SCREEN 12 41 #define ID_LINE_WIDTH 13 42 #define ID_LINE_ANGLE 14 43 #define ID_ANGLE_DISPLAY 15 44 #define ID_ROUNDED 16 45 #define ID_LINE_WINDOW 17 46 #define ID_BRUSH_ALPHA_SLIDER 18 47 #define ID_BRUSH_ALPHA_PROMPT 19 48 #define ID_COLOR_BLACK 20 49 #define ID_COLOR_ORANGE 21 50 #define ID_COLOR_WHITE 22 51 #define ID_MENU_SCREEN 23 52 #define ID_SCROLL_WHEEL_SCREEN 24 53 #define ID_DAY_WHEEL 25 54 #define ID_MONTH_WHEEL 26 55 #define ID_YEAR_WHEEL 27 56 #define ID_DAY_SELECT 28 57 #define ID_DAY_INPUT 29 58 #define ID_SHAPES_SCREEN 30 59 #define ID_CIRCLE 31 60 #define ID_ELLIPSE 32 61 #define ID_ARC 33 62 #define ID_PIE 34 63 #define ID_RECTANGLE 35 64 #define ID_POLYGON 36 65 #define ID_ROUND_END 37 66 #define ID_SOLID_FILL 38 67 #define ID_PIXELMAP_FILL 39 68 #define ID_RADIUS_SLIDER 40 69 #define ID_RADIUS_PROMPT 41 70 #define ID_BRUSH_WIDTH_PROMPT 42 71 #define ID_BRUSH_WIDTH 43 72 #define ID_COMPRESS 44 73 #define ID_TRANSPARENT 45 74 #define ID_ROTATE_SCREEN 46 75 #define ID_DIRECT_ROTATE 47 76 #define ID_SLIDER_ANGLE 48 77 #define ID_RADIO_APPLE 49 78 #define ID_INDICATOR_SCREEN 50 79 #define ID_SLIDER_HORIZONTAL 51 80 #define ID_SLIDER_1 52 81 #define ID_PIXELMAP_SLIDER_H 53 82 #define ID_PIXELMAP_SLIDER1 54 83 #define ID_TEXT_SCREEN 55 84 #define ID_PROMPT_1 56 85 #define ID_PROMPT_2 57 86 #define ID_PROMPT_3 58 87 #define ID_PROMPT_4 59 88 #define ID_WINDOW_SCREEN 60 89 #define ID_HORIZONTAL_SCROLLBAR 61 90 #define ID_VERTICAL_SCROLLBAR 62 91 #define ID_VERTICAL_LIST 63 92 #define ID_DROP_LIST 64 93 #define ID_BUTTON_SCREEN 65 94 #define ID_TEXT_BUTTON 66 95 #define ID_CHECKBOX 67 96 #define ID_RADIO_BUTTON 68 97 #define ID_PIXELMAP_BUTTON 69 98 #define ID_ICON 70 99 #define ID_ICON_BUTTON 71 100 101 102 /* Define animation ids */ 103 104 #define GX_NEXT_ANIMATION_ID 1 105 106 107 /* Define user event ids */ 108 109 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 110 111 112 /* Declare properties structures for each utilized widget type */ 113 114 typedef struct GX_STUDIO_WIDGET_STRUCT 115 { 116 GX_CHAR *widget_name; 117 USHORT widget_type; 118 USHORT widget_id; 119 #if defined(GX_WIDGET_USER_DATA) 120 INT user_data; 121 #endif 122 ULONG style; 123 ULONG status; 124 ULONG control_block_size; 125 GX_RESOURCE_ID normal_fill_color_id; 126 GX_RESOURCE_ID selected_fill_color_id; 127 GX_RESOURCE_ID disabled_fill_color_id; 128 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 129 void (*draw_function) (GX_WIDGET *); 130 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 131 GX_RECTANGLE size; 132 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 133 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 134 ULONG control_block_offset; 135 GX_CONST void *properties; 136 } GX_STUDIO_WIDGET; 137 138 typedef struct 139 { 140 GX_CONST GX_STUDIO_WIDGET *widget_information; 141 GX_WIDGET *widget; 142 } GX_STUDIO_WIDGET_ENTRY; 143 144 typedef struct 145 { 146 GX_RESOURCE_ID string_id; 147 GX_RESOURCE_ID font_id; 148 GX_RESOURCE_ID normal_text_color_id; 149 GX_RESOURCE_ID selected_text_color_id; 150 GX_RESOURCE_ID disabled_text_color_id; 151 } GX_TEXT_BUTTON_PROPERTIES; 152 153 typedef struct 154 { 155 GX_RESOURCE_ID string_id; 156 GX_RESOURCE_ID font_id; 157 GX_RESOURCE_ID normal_text_color_id; 158 GX_RESOURCE_ID selected_text_color_id; 159 GX_RESOURCE_ID disabled_text_color_id; 160 GX_RESOURCE_ID unchecked_pixelmap_id; 161 GX_RESOURCE_ID checked_pixelmap_id; 162 GX_RESOURCE_ID unchecked_disabled_pixelmap_id; 163 GX_RESOURCE_ID checked_disabled_pixelmap_id; 164 } GX_CHECKBOX_PROPERTIES; 165 166 typedef struct 167 { 168 GX_RESOURCE_ID string_id; 169 GX_RESOURCE_ID font_id; 170 GX_RESOURCE_ID normal_text_color_id; 171 GX_RESOURCE_ID selected_text_color_id; 172 GX_RESOURCE_ID disabled_text_color_id; 173 GX_RESOURCE_ID off_pixelmap_id; 174 GX_RESOURCE_ID on_pixelmap_id; 175 GX_RESOURCE_ID off_disabled_pixelmap_id; 176 GX_RESOURCE_ID on_disabled_pixelmap_id; 177 } GX_RADIO_BUTTON_PROPERTIES; 178 179 typedef struct 180 { 181 GX_RESOURCE_ID pixelmap_id; 182 } GX_ICON_BUTTON_PROPERTIES; 183 184 typedef struct 185 { 186 GX_RESOURCE_ID normal_pixelmap_id; 187 GX_RESOURCE_ID selected_pixelmap_id; 188 GX_RESOURCE_ID disabled_pixelmap_id; 189 } GX_PIXELMAP_BUTTON_PROPERTIES; 190 191 typedef struct 192 { 193 GX_RESOURCE_ID normal_pixelmap_id; 194 GX_RESOURCE_ID selected_pixelmap_id; 195 } GX_ICON_PROPERTIES; 196 197 typedef struct 198 { 199 int tickmark_count; 200 int minval; 201 int maxval; 202 int current_val; 203 int increment; 204 GX_VALUE min_travel; 205 GX_VALUE max_travel; 206 GX_VALUE needle_width; 207 GX_VALUE needle_height; 208 GX_VALUE needle_inset; 209 GX_VALUE needle_hotspot; 210 } GX_SLIDER_PROPERTIES; 211 212 typedef struct 213 { 214 int min_val; 215 int max_val; 216 int current_val; 217 int increment; 218 GX_VALUE min_travel; 219 GX_VALUE max_travel; 220 GX_VALUE needle_width; 221 GX_VALUE needle_height; 222 GX_VALUE needle_inset; 223 GX_VALUE needle_hotspot; 224 GX_RESOURCE_ID lower_pixelmap; 225 GX_RESOURCE_ID upper_pixelmap; 226 GX_RESOURCE_ID needle_pixelmap; 227 } GX_PIXELMAP_SLIDER_PROPERTIES; 228 229 typedef struct 230 { 231 GX_RESOURCE_ID string_id; 232 GX_RESOURCE_ID font_id; 233 GX_RESOURCE_ID normal_text_color_id; 234 GX_RESOURCE_ID selected_text_color_id; 235 GX_RESOURCE_ID disabled_text_color_id; 236 } GX_PROMPT_PROPERTIES; 237 238 typedef struct 239 { 240 GX_RESOURCE_ID string_id; 241 GX_RESOURCE_ID font_id; 242 GX_RESOURCE_ID normal_text_color_id; 243 GX_RESOURCE_ID selected_text_color_id; 244 GX_RESOURCE_ID disabled_text_color_id; 245 VOID (*format_func)(GX_NUMERIC_PROMPT *, INT); 246 INT numeric_prompt_value; 247 } GX_NUMERIC_PROMPT_PROPERTIES; 248 249 typedef struct 250 { 251 GX_RESOURCE_ID string_id; 252 GX_RESOURCE_ID font_id; 253 GX_RESOURCE_ID normal_text_color_id; 254 GX_RESOURCE_ID selected_text_color_id; 255 GX_RESOURCE_ID disabled_text_color_id; 256 GX_RESOURCE_ID left_map_id; 257 GX_RESOURCE_ID fill_map_id; 258 GX_RESOURCE_ID right_map_id; 259 GX_RESOURCE_ID selected_left_map_id; 260 GX_RESOURCE_ID selected_fill_map_id; 261 GX_RESOURCE_ID selected_right_map_id; 262 } GX_PIXELMAP_PROMPT_PROPERTIES; 263 264 typedef struct 265 { 266 GX_RESOURCE_ID string_id; 267 GX_RESOURCE_ID font_id; 268 GX_RESOURCE_ID normal_text_color_id; 269 GX_RESOURCE_ID selected_text_color_id; 270 GX_RESOURCE_ID disabled_text_color_id; 271 GX_RESOURCE_ID left_map_id; 272 GX_RESOURCE_ID fill_map_id; 273 GX_RESOURCE_ID right_map_id; 274 GX_RESOURCE_ID selected_left_map_id; 275 GX_RESOURCE_ID selected_fill_map_id; 276 GX_RESOURCE_ID selected_right_map_id; 277 VOID (*format_func)(GX_NUMERIC_PIXELMAP_PROMPT *, INT); 278 INT numeric_prompt_value; 279 } GX_NUMERIC_PIXELMAP_PROMPT_PROPERTIES; 280 281 typedef struct 282 { 283 GX_RESOURCE_ID wallpaper_id; 284 } GX_WINDOW_PROPERTIES; 285 286 typedef struct 287 { 288 GX_RESOURCE_ID wallpaper_id; 289 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 290 int total_rows; 291 } GX_VERTICAL_LIST_PROPERTIES; 292 293 typedef struct 294 { 295 GX_RESOURCE_ID wallpaper_id; 296 VOID (*callback)(GX_HORIZONTAL_LIST *, GX_WIDGET *, INT); 297 int total_rows; 298 } GX_HORIZONTAL_LIST_PROPERTIES; 299 300 typedef struct 301 { 302 GX_RESOURCE_ID pixelmap_id; 303 GX_RESOURCE_ID wallpaper_id; 304 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 305 int total_rows; 306 int open_height; 307 } GX_DROP_LIST_PROPERTIES; 308 309 typedef struct 310 { 311 int total_rows; 312 int selected_row; 313 GX_VALUE row_height; 314 GX_UBYTE start_alpha; 315 GX_UBYTE end_alpha; 316 GX_RESOURCE_ID normal_font; 317 GX_RESOURCE_ID selected_font; 318 GX_RESOURCE_ID normal_text_color; 319 GX_RESOURCE_ID selected_text_color; 320 GX_RESOURCE_ID disabled_text_color; 321 GX_RESOURCE_ID wallpaper_id; 322 GX_RESOURCE_ID selected_background; 323 GX_CONST GX_RESOURCE_ID *string_id_list; 324 UINT (*callback)(struct GX_STRING_SCROLL_WHEEL_STRUCT *, INT, GX_STRING *); 325 } GX_STRING_SCROLL_WHEEL_PROPERTIES; 326 327 typedef struct 328 { 329 int total_rows; 330 int selected_row; 331 GX_VALUE row_height; 332 GX_UBYTE start_alpha; 333 GX_UBYTE end_alpha; 334 GX_RESOURCE_ID normal_font; 335 GX_RESOURCE_ID selected_font; 336 GX_RESOURCE_ID normal_text_color; 337 GX_RESOURCE_ID selected_text_color; 338 GX_RESOURCE_ID disabled_text_color; 339 GX_RESOURCE_ID wallpaper_id; 340 GX_RESOURCE_ID selected_background; 341 UINT (*callback)(struct GX_NUMERIC_SCROLL_WHEEL_STRUCT *, INT, GX_STRING *); 342 int start_val; 343 int end_val; 344 } GX_NUMERIC_SCROLL_WHEEL_PROPERTIES; 345 346 typedef struct 347 { 348 GX_RESOURCE_ID string_id; 349 GX_RESOURCE_ID font_id; 350 GX_RESOURCE_ID normal_text_color_id; 351 GX_RESOURCE_ID selected_text_color_id; 352 GX_RESOURCE_ID disabled_text_color_id; 353 GX_RESOURCE_ID readonly_fill_color_id; 354 GX_RESOURCE_ID readonly_text_color_id; 355 GX_CHAR *buffer; 356 UINT buffer_size; 357 } GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES; 358 359 typedef struct 360 { 361 GX_RESOURCE_ID string_id; 362 GX_RESOURCE_ID font_id; 363 GX_RESOURCE_ID normal_text_color_id; 364 GX_RESOURCE_ID selected_text_color_id; 365 GX_RESOURCE_ID disabled_text_color_id; 366 GX_UBYTE whitespace; 367 GX_BYTE line_space; 368 } GX_ML_TEXT_VIEW_PROPERTIES; 369 370 typedef struct 371 { 372 GX_RESOURCE_ID string_id; 373 GX_RESOURCE_ID font_id; 374 GX_RESOURCE_ID normal_text_color_id; 375 GX_RESOURCE_ID selected_text_color_id; 376 GX_RESOURCE_ID disabled_text_color_id; 377 GX_RESOURCE_ID readonly_fill_color_id; 378 GX_RESOURCE_ID readonly_text_color_id; 379 GX_UBYTE whitespace; 380 GX_BYTE line_space; 381 GX_CHAR *buffer; 382 UINT buffer_size; 383 } GX_MULTI_LINE_TEXT_INPUT_PROPERTIES; 384 385 typedef struct 386 { 387 GX_VALUE start_angle; 388 GX_VALUE animation_steps; 389 GX_VALUE animation_delay; 390 GX_VALUE needle_xpos; 391 GX_VALUE needle_ypos; 392 GX_VALUE needle_xcor; 393 GX_VALUE needle_ycor; 394 GX_RESOURCE_ID normal_pixelmap_id; 395 GX_RESOURCE_ID selected_pixelmap_id; 396 GX_RESOURCE_ID needle_pixelmap_id; 397 } GX_CIRCULAR_GAUGE_PROPERTIES; 398 399 typedef struct 400 { 401 GX_RESOURCE_ID string_id; 402 GX_RESOURCE_ID font_id; 403 GX_RESOURCE_ID normal_text_color_id; 404 GX_RESOURCE_ID selected_text_color_id; 405 GX_RESOURCE_ID disabled_text_color_id; 406 GX_RESOURCE_ID left_map_id; 407 GX_RESOURCE_ID fill_map_id; 408 GX_RESOURCE_ID right_map_id; 409 GX_RESOURCE_ID selected_left_map_id; 410 GX_RESOURCE_ID selected_fill_map_id; 411 GX_RESOURCE_ID selected_right_map_id; 412 GX_VALUE text_x_offset; 413 GX_VALUE text_y_offset; 414 GX_VALUE list_total_count; 415 } GX_MENU_PROPERTIES; 416 417 typedef struct 418 { 419 GX_RESOURCE_ID expand_map_id; 420 GX_RESOURCE_ID collapse_map_id; 421 GX_RESOURCE_ID root_line_color_id; 422 GX_VALUE indentation; 423 } GX_TREE_VIEW_PROPERTIES; 424 425 426 /* Declare top-level control blocks */ 427 428 typedef struct RESIZE_SCREEN_CONTROL_BLOCK_STRUCT 429 { 430 GX_WINDOW_MEMBERS_DECLARE 431 GX_PROMPT resize_screen_prompt_16; 432 GX_SLIDER resize_screen_slider_angle; 433 GX_PROMPT resize_screen_prompt_angle; 434 GX_WINDOW resize_screen_resize_window; 435 GX_RADIO_BUTTON resize_screen_radio_button_5; 436 GX_RADIO_BUTTON resize_screen_radio_button_6; 437 GX_RADIO_BUTTON resize_screen_radio_button_7; 438 GX_PROMPT resize_screen_prompt_17; 439 GX_PROMPT resize_screen_prompt_18; 440 GX_SLIDER resize_screen_slider_angle_1; 441 GX_PROMPT resize_screen_prompt_angle_1; 442 GX_TEXT_BUTTON resize_screen_next_button_9; 443 } RESIZE_SCREEN_CONTROL_BLOCK; 444 445 typedef struct GAUGE_SCREEN_CONTROL_BLOCK_STRUCT 446 { 447 GX_WINDOW_MEMBERS_DECLARE 448 GX_PROMPT gauge_screen_prompt_6; 449 GX_TEXT_BUTTON gauge_screen_next_button_4; 450 GX_CIRCULAR_GAUGE gauge_screen_gauge_1; 451 } GAUGE_SCREEN_CONTROL_BLOCK; 452 453 typedef struct LINES_SCREEN_CONTROL_BLOCK_STRUCT 454 { 455 GX_WINDOW_MEMBERS_DECLARE 456 GX_PROMPT lines_screen_prompt_16; 457 GX_SLIDER lines_screen_line_width_slider; 458 GX_PROMPT lines_screen_prompt_17; 459 GX_SLIDER lines_screen_line_angle_slider; 460 GX_PROMPT lines_screen_width_display; 461 GX_PROMPT lines_screen_angle_display; 462 GX_CHECKBOX lines_screen_rounded_box; 463 GX_WINDOW lines_screen_line_window; 464 GX_PROMPT lines_screen_color_label; 465 GX_PROMPT lines_screen_prompt_18; 466 GX_SLIDER lines_screen_brush_alpha_slider_1; 467 GX_PROMPT lines_screen_brush_alpha_prompt; 468 GX_TEXT_BUTTON lines_screen_next_button_8; 469 GX_PROMPT lines_screen_title_2; 470 GX_RADIO_BUTTON lines_screen_radio_button_5; 471 GX_RADIO_BUTTON lines_screen_radio_button_10; 472 GX_RADIO_BUTTON lines_screen_radio_button_11; 473 } LINES_SCREEN_CONTROL_BLOCK; 474 475 typedef struct MENU_SCREEN_CONTROL_BLOCK_STRUCT 476 { 477 GX_WINDOW_MEMBERS_DECLARE 478 GX_TEXT_BUTTON menu_screen_next_button_6; 479 GX_PROMPT menu_screen_title; 480 GX_ACCORDION_MENU menu_screen_accordion; 481 GX_MENU menu_screen_menu_1; 482 GX_PROMPT menu_screen_menu_1_1; 483 GX_NUMERIC_PROMPT menu_screen_menu_1_2; 484 GX_MENU menu_screen_menu_2; 485 GX_MULTI_LINE_TEXT_VIEW menu_screen_menu_2_1; 486 GX_TEXT_BUTTON menu_screen_menu_3; 487 GX_MENU menu_screen_menu_4; 488 GX_MENU menu_screen_menu_4_1; 489 GX_MENU menu_screen_menu_4_2; 490 GX_TREE_VIEW menu_screen_tree_view; 491 GX_MENU menu_screen_tree_menu_6; 492 GX_PROMPT menu_screen_tree_menu; 493 GX_PROMPT menu_screen_tree_menu_1; 494 GX_ICON menu_screen_icon_10_1; 495 GX_MENU menu_screen_tree_menu_7; 496 GX_MENU menu_screen_tree_menu_4; 497 GX_PROMPT menu_screen_tree_menu_2; 498 GX_PROMPT menu_screen_tree_menu_2_1; 499 GX_ICON menu_screen_icon_11_1; 500 GX_MENU menu_screen_tree_menu_2_4; 501 GX_MENU menu_screen_tree_menu_2_3; 502 GX_PROMPT menu_screen_tree_menu_2_2; 503 GX_PROMPT menu_screen_tree_menu_2_2_1; 504 GX_ICON menu_screen_icon_9; 505 GX_ICON menu_screen_icon_6; 506 GX_ICON menu_screen_icon_8; 507 GX_MENU menu_screen_tree_menu_8; 508 GX_PROMPT menu_screen_tree_menu_5; 509 GX_ICON menu_screen_icon_12_1; 510 GX_SCROLLBAR menu_screen_tree_hscroll; 511 GX_SCROLLBAR menu_screen_tree_vscroll; 512 GX_PROMPT menu_screen_prompt_16_1; 513 GX_MENU menu_screen_menu; 514 GX_PROMPT menu_screen_prompt_10_2; 515 GX_ICON menu_screen_icon_7; 516 GX_PROMPT menu_screen_title_tree_view; 517 GX_PROMPT menu_screen_title_accordion; 518 } MENU_SCREEN_CONTROL_BLOCK; 519 520 typedef struct SCROLL_WHEEL_SCREEN_CONTROL_BLOCK_STRUCT 521 { 522 GX_WINDOW_MEMBERS_DECLARE 523 GX_TEXT_BUTTON scroll_wheel_screen_next_button_7; 524 GX_PROMPT scroll_wheel_screen_prompt_8; 525 GX_NUMERIC_SCROLL_WHEEL scroll_wheel_screen_day_wheel_1; 526 GX_STRING_SCROLL_WHEEL scroll_wheel_screen_month_wheel_1; 527 GX_NUMERIC_SCROLL_WHEEL scroll_wheel_screen_year_wheel_1; 528 GX_TEXT_BUTTON scroll_wheel_screen_button_5; 529 GX_SINGLE_LINE_TEXT_INPUT scroll_wheel_screen_text_input_3; 530 } SCROLL_WHEEL_SCREEN_CONTROL_BLOCK; 531 532 typedef struct SHAPES_SCREEN_CONTROL_BLOCK_STRUCT 533 { 534 GX_WINDOW_MEMBERS_DECLARE 535 GX_WINDOW shapes_screen_graphics_window; 536 GX_TEXT_BUTTON shapes_screen_next_button_5; 537 GX_WINDOW shapes_screen_window_11; 538 GX_RADIO_BUTTON shapes_screen_radio_button_6; 539 GX_RADIO_BUTTON shapes_screen_radio_button_7; 540 GX_RADIO_BUTTON shapes_screen_radio_button_8; 541 GX_RADIO_BUTTON shapes_screen_radio_button_9; 542 GX_RADIO_BUTTON shapes_screen_radio_button_3; 543 GX_RADIO_BUTTON shapes_screen_radio_button_4; 544 GX_CHECKBOX shapes_screen_checkbox_round_end; 545 GX_CHECKBOX shapes_screen_checkbox_fill; 546 GX_CHECKBOX shapes_screen_checkbox_pixelmap_fill; 547 GX_PROMPT shapes_screen_prompt_14; 548 GX_PROMPT shapes_screen_prompt_13; 549 GX_SLIDER shapes_screen_radius_slider_1; 550 GX_PROMPT shapes_screen_prompt_6; 551 GX_PROMPT shapes_screen_prompt_7; 552 GX_SLIDER shapes_screen_brush_width_slider; 553 GX_PROMPT shapes_screen_prompt_11_1; 554 GX_SLIDER shapes_screen_brush_alpha_slider; 555 GX_PROMPT shapes_screen_prompt_12; 556 GX_CHECKBOX shapes_screen_checkbox_1; 557 GX_CHECKBOX shapes_screen_checkbox_2; 558 } SHAPES_SCREEN_CONTROL_BLOCK; 559 560 typedef struct ROTATE_SCREEN_CONTROL_BLOCK_STRUCT 561 { 562 GX_WINDOW_MEMBERS_DECLARE 563 GX_TEXT_BUTTON rotate_screen_next_button_4; 564 GX_CHECKBOX rotate_screen_checkbox; 565 GX_PROMPT rotate_screen_prompt; 566 GX_SLIDER rotate_screen_slider_2; 567 GX_PROMPT rotate_screen_prompt_5; 568 GX_WINDOW rotate_screen_pixelmap_window; 569 GX_RADIO_BUTTON rotate_screen_radio_button; 570 GX_RADIO_BUTTON rotate_screen_radio_button_1; 571 GX_RADIO_BUTTON rotate_screen_radio_button_2; 572 } ROTATE_SCREEN_CONTROL_BLOCK; 573 574 typedef struct INDICATOR_SCREEN_CONTROL_BLOCK_STRUCT 575 { 576 GX_WINDOW_MEMBERS_DECLARE 577 GX_SLIDER indicator_screen_slider; 578 GX_SLIDER indicator_screen_slider_1; 579 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider; 580 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_1; 581 GX_ICON indicator_screen_icon_1; 582 GX_ICON indicator_screen_icon_2; 583 GX_PROMPT indicator_screen_slider_title; 584 GX_TEXT_BUTTON indicator_screen_next_button_3; 585 GX_PROGRESS_BAR indicator_screen_progress_bar_1; 586 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_2; 587 GX_ICON indicator_screen_icon_3; 588 GX_ICON indicator_screen_icon_4; 589 GX_RADIAL_PROGRESS_BAR indicator_screen_radial_progress_bar_1; 590 } INDICATOR_SCREEN_CONTROL_BLOCK; 591 592 typedef struct TEXT_SCREEN_CONTROL_BLOCK_STRUCT 593 { 594 GX_WINDOW_MEMBERS_DECLARE 595 GX_PROMPT text_screen_prompt_1; 596 GX_PROMPT text_screen_prompt_2; 597 GX_PROMPT text_screen_prompt_3; 598 GX_PIXELMAP_PROMPT text_screen_prompt_4; 599 GX_SINGLE_LINE_TEXT_INPUT text_screen_text_input_1; 600 GX_MULTI_LINE_TEXT_VIEW text_screen_text_view_1; 601 GX_MULTI_LINE_TEXT_INPUT text_screen_text_input_2; 602 GX_TEXT_BUTTON text_screen_next_button_2; 603 GX_NUMERIC_PIXELMAP_PROMPT text_screen_numeric_pixelmap_prompt_2; 604 GX_NUMERIC_PROMPT text_screen_numeric_prompt_1; 605 } TEXT_SCREEN_CONTROL_BLOCK; 606 607 typedef struct WINDOW_SCREEN_CONTROL_BLOCK_STRUCT 608 { 609 GX_WINDOW_MEMBERS_DECLARE 610 GX_WINDOW window_screen_window_5; 611 GX_WINDOW window_screen_window_6; 612 GX_WINDOW window_screen_window_8; 613 GX_WINDOW window_screen_fade_window; 614 GX_WINDOW window_screen_scroll_frame_1; 615 GX_WINDOW window_screen_window_4; 616 GX_SCROLLBAR window_screen_hscroll_1; 617 GX_SCROLLBAR window_screen_vertical_scroll_1; 618 GX_VERTICAL_LIST window_screen_vertical_list; 619 GX_TEXT_BUTTON window_screen_button_1; 620 GX_TEXT_BUTTON window_screen_button_2; 621 GX_TEXT_BUTTON window_screen_button_3; 622 GX_TEXT_BUTTON window_screen_button_4; 623 GX_PROMPT window_screen_nested_label_1; 624 GX_PROMPT window_screen_frame_label_1; 625 GX_PROMPT window_screen_vlist_label_1; 626 GX_HORIZONTAL_LIST window_screen_horizontal_list_1; 627 GX_ICON_BUTTON window_screen_icon_button_1; 628 GX_ICON_BUTTON window_screen_icon_button_2; 629 GX_ICON_BUTTON window_screen_icon_button_3; 630 GX_ICON_BUTTON window_screen_icon_button_4; 631 GX_ICON_BUTTON window_screen_icon_button_5; 632 GX_PROMPT window_screen_hlist_label_1; 633 GX_TEXT_BUTTON window_screen_next_button_1; 634 GX_DROP_LIST window_screen_drop_list; 635 GX_BUTTON window_screen_button; 636 GX_PROMPT window_screen_hlist_label; 637 } WINDOW_SCREEN_CONTROL_BLOCK; 638 639 typedef struct BUTTON_SCREEN_CONTROL_BLOCK_STRUCT 640 { 641 GX_WINDOW_MEMBERS_DECLARE 642 GX_PROMPT button_screen_title_1; 643 GX_BUTTON button_screen_base_button_1; 644 GX_TEXT_BUTTON button_screen_text_button_1; 645 GX_CHECKBOX button_screen_checkbox1_1; 646 GX_RADIO_BUTTON button_screen_radio_button1_1; 647 GX_PIXELMAP_BUTTON button_screen_pixelmap_button1_1; 648 GX_ICON button_screen_icon; 649 GX_ICON_BUTTON button_screen_icon_button_6; 650 GX_PROMPT button_screen_button_label_1; 651 GX_PROMPT button_screen_radio_label_1; 652 GX_PROMPT button_screen_pixbutton_label_1; 653 GX_PROMPT button_screen_texbutton_label_1; 654 GX_PROMPT button_screen_checkbox_label_1; 655 GX_PROMPT button_screen_iconbutton_label_1; 656 GX_PROMPT button_screen_icon_label_1; 657 GX_TEXT_BUTTON button_screen_next_button; 658 } BUTTON_SCREEN_CONTROL_BLOCK; 659 660 661 /* extern statically defined control blocks */ 662 663 #ifndef GUIX_STUDIO_GENERATED_FILE 664 extern RESIZE_SCREEN_CONTROL_BLOCK resize_screen; 665 extern GAUGE_SCREEN_CONTROL_BLOCK gauge_screen; 666 extern LINES_SCREEN_CONTROL_BLOCK lines_screen; 667 extern MENU_SCREEN_CONTROL_BLOCK menu_screen; 668 extern SCROLL_WHEEL_SCREEN_CONTROL_BLOCK scroll_wheel_screen; 669 extern SHAPES_SCREEN_CONTROL_BLOCK shapes_screen; 670 extern ROTATE_SCREEN_CONTROL_BLOCK rotate_screen; 671 extern INDICATOR_SCREEN_CONTROL_BLOCK indicator_screen; 672 extern TEXT_SCREEN_CONTROL_BLOCK text_screen; 673 extern WINDOW_SCREEN_CONTROL_BLOCK window_screen; 674 extern BUTTON_SCREEN_CONTROL_BLOCK button_screen; 675 #endif 676 677 /* Prototype Dave2D display driver specific functions */ 678 679 UINT _gx_synergy_display_driver_setup(GX_DISPLAY *display); 680 #if defined(GX_TARGET_WIN32) || defined(GX_TARGET_LINUX) 681 UINT win32_graphics_driver_setup_8bit_palette_rotated(GX_DISPLAY *display); 682 #else 683 VOID _gx_display_driver_8bit_palette_rotated_setup(GX_DISPLAY *display, VOID *aux_data, 684 VOID (*toggle_function)(struct GX_CANVAS_STRUCT *canvas, 685 GX_RECTANGLE *dirty_area)); 686 VOID _gx_display_driver_8bit_palette_assign(GX_DISPLAY *display, GX_COLOR *palette, INT count); 687 VOID _gx_dave2d_drawing_initiate_8bpp(GX_DISPLAY *display, GX_CANVAS *canvas); 688 VOID _gx_dave2d_drawing_complete_8bpp(GX_DISPLAY *display, GX_CANVAS *canvas); 689 VOID _gx_dave2d_rotated_horizontal_line_8bpp(GX_DRAW_CONTEXT *context, 690 INT xstart, INT xend, INT ypos, INT width, GX_COLOR color); 691 VOID _gx_dave2d_rotated_vertical_line_8bpp(GX_DRAW_CONTEXT *context, 692 INT ystart, INT yend, INT xpos, INT width, GX_COLOR color); 693 VOID _gx_dave2d_rotated_simple_line_draw_8bpp(GX_DRAW_CONTEXT *context, INT xstart, INT ystart, INT xend, INT yend); 694 VOID _gx_dave2d_rotated_simple_wide_line_8bpp(GX_DRAW_CONTEXT *context, INT xstart, INT ystart, 695 INT xend, INT yend); 696 VOID _gx_dave2d_rotated_horizontal_pattern_line_draw_8bpp(GX_DRAW_CONTEXT *context, INT xstart, INT xend, INT ypos); 697 VOID _gx_dave2d_rotated_vertical_pattern_line_draw_8bpp(GX_DRAW_CONTEXT *context, INT ystart, INT yend, INT xpos); 698 VOID _gx_dave2d_rotated_pixelmap_draw_8bpp(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, GX_PIXELMAP *pixelmap); 699 VOID _gx_dave2d_rotated_polygon_draw_8bpp(GX_DRAW_CONTEXT *context, GX_POINT *vertex, INT num); 700 VOID _gx_dave2d_rotated_polygon_fill_8bpp(GX_DRAW_CONTEXT *context, GX_POINT *vertex, INT num); 701 VOID _gx_dave2d_rotated_pixel_write_8bpp(GX_DRAW_CONTEXT *context, INT x, INT y, GX_COLOR color); 702 VOID _gx_dave2d_rotated_block_move_8bpp(GX_DRAW_CONTEXT *context, 703 GX_RECTANGLE *block, INT xshift, INT yshift); 704 VOID _gx_dave2d_rotated_canvas_copy(GX_CANVAS *canvas, GX_CANVAS *composite); 705 VOID _gx_dave2d_rotated_glyph_1bit_draw_8bpp(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 706 VOID _gx_dave2d_rotated_glyph_3bit_draw_8bpp(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 707 VOID _gx_dave2d_rotated_glyph_4bit_draw_8bpp(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 708 #if defined(GX_ARC_DRAWING_SUPPORT) 709 VOID _gx_dave2d_rotated_circle_draw_8bpp(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r); 710 VOID _gx_dave2d_rotated_circle_fill_8bpp(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r); 711 VOID _gx_dave2d_rotated_arc_draw_8bpp(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 712 VOID _gx_dave2d_rotated_arc_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 713 VOID _gx_dave2d_rotated_pie_fill_8bpp(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 714 VOID _gx_dave2d_rotated_ellipse_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, INT a, INT b); 715 VOID _gx_dave2d_rotated_ellipse_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, INT a, INT b); 716 #endif 717 VOID _gx_dave2d_rotated_buffer_toggle_8bpp(GX_CANVAS *canvas, GX_RECTANGLE *dirty); 718 VOID _gx_synergy_jpeg_draw (GX_DRAW_CONTEXT *p_context, INT x, INT y, GX_PIXELMAP *p_pixelmap); 719 720 #endif 721 722 /* Declare event process functions, draw functions, and callback functions */ 723 724 UINT resize_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 725 VOID resize_window_draw(GX_WINDOW *widget); 726 UINT gauge_event_handle(GX_WINDOW *widget, GX_EVENT *event_ptr); 727 UINT main_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 728 VOID line_win_draw(GX_WINDOW *widget); 729 UINT next_button_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 730 UINT scroll_wheel_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 731 UINT day_wheel_value_format(GX_NUMERIC_SCROLL_WHEEL *wheel, INT row, GX_STRING *string); 732 UINT shapesscreen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 733 VOID graphics_draw(GX_WINDOW *widget); 734 UINT rotate_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 735 VOID pixelmap_draw(GX_WINDOW *widget); 736 VOID numeric_pixelmap_format_func(GX_NUMERIC_PIXELMAP_PROMPT *, INT); 737 VOID format_func(GX_NUMERIC_PROMPT *, INT); 738 UINT window_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 739 VOID drop_list_row_create(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 740 741 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 742 743 744 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 745 { 746 GX_CONST GX_CHAR *name; 747 GX_CONST GX_CHAR *canvas_name; 748 GX_CONST GX_THEME **theme_table; 749 GX_CONST GX_STRING **language_table; 750 USHORT theme_table_size; 751 USHORT language_table_size; 752 UINT string_table_size; 753 UINT x_resolution; 754 UINT y_resolution; 755 GX_DISPLAY *display; 756 GX_CANVAS *canvas; 757 GX_WINDOW_ROOT *root_window; 758 GX_COLOR *canvas_memory; 759 ULONG canvas_memory_size; 760 USHORT rotation_angle; 761 } GX_STUDIO_DISPLAY_INFO; 762 763 764 /* Declare Studio-generated functions for creating top-level widgets */ 765 766 UINT gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 767 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 768 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 769 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 770 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 771 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 772 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 773 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 774 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 775 UINT gx_studio_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 776 UINT gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 777 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 778 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 779 UINT gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 780 UINT gx_studio_numeric_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 781 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 782 UINT gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 783 UINT gx_studio_horizontal_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 784 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 785 UINT gx_studio_string_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 786 UINT gx_studio_numeric_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 787 UINT gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 788 UINT gx_studio_multi_line_text_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 789 UINT gx_studio_multi_line_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 790 UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 791 UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 792 UINT gx_studio_circular_gauge_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 793 UINT gx_studio_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 794 UINT gx_studio_accordion_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 795 UINT gx_studio_tree_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 796 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 797 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 798 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 799 800 /* Determine if a C++ compiler is being used. If so, complete the standard 801 C conditional started above. */ 802 #ifdef __cplusplus 803 } 804 #endif 805 806 #endif /* sentry */ 807