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_SPECIFICATIONS_H_ 14 #define _ALL_WIDGETS_SYNERGY_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 /* Define widget ids */ 24 25 #define ID_GLYPH_SCREEN 1 26 #define ID_8BPP_RAW 2 27 #define ID_4BPP_RAW 3 28 #define ID_1BPP_RAW 4 29 #define ID_8BPP_COMPRESS 5 30 #define ID_1BPP_COMPRESS 6 31 #define ID_4BPP_COMPRESS 7 32 #define IDB_NEXT 8 33 #define ID_BRUSH_ALPHA_SLIDER 9 34 #define ID_MENU_SCREEN 10 35 #define ID_SCROLL_WHEEL_SCREEN 11 36 #define ID_DAY_WHEEL 12 37 #define ID_MONTH_WHEEL 13 38 #define ID_YEAR_WHEEL 14 39 #define ID_DAY_SELECT 15 40 #define ID_DAY_INPUT 16 41 #define ID_SPRITE_SCREEN 17 42 #define ID_ALPHA_SLIDER 18 43 #define ID_BIRD_SPRITE 19 44 #define ID_GAUGE_SCREEN 20 45 #define ID_GAUGE 21 46 #define IDB_OK 22 47 #define IDB_CANCEL 23 48 #define ID_INDICATOR_SCREEN 24 49 #define ID_SLIDER_HORIZONTAL 25 50 #define ID_SLIDER_1 26 51 #define ID_PIXELMAP_SLIDER_H 27 52 #define ID_PIXELMAP_SLIDER1 28 53 #define ID_TEXT_SCREEN 29 54 #define ID_PROMPT_1 30 55 #define ID_PROMPT_2 31 56 #define ID_PROMPT_3 32 57 #define ID_PROMPT_4 33 58 #define ID_WINDOW_SCREEN 34 59 #define ID_HORIZONTAL_SCROLLBAR 35 60 #define ID_VERTICAL_SCROLLBAR 36 61 #define ID_VERTICAL_LIST 37 62 #define ID_DROP_LIST 38 63 #define ID_BUTTON_SCREEN 39 64 #define ID_TEXT_BUTTON 40 65 #define ID_CHECKBOX 41 66 #define ID_RADIO_BUTTON 42 67 #define ID_PIXELMAP_BUTTON 43 68 #define ID_ICON 44 69 #define ID_ICON_BUTTON 45 70 71 72 /* Define animation ids */ 73 74 #define GX_NEXT_ANIMATION_ID 1 75 76 77 /* Define user event ids */ 78 79 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 80 81 #define GX_ACTION_FLAG_DYNAMIC_TARGET 0x01 82 #define GX_ACTION_FLAG_DYNAMIC_PARENT 0x02 83 #define GX_ACTION_FLAG_POP_TARGET 0x04 84 #define GX_ACTION_FLAG_POP_PARENT 0x08 85 86 typedef struct GX_STUDIO_ACTION_STRUCT 87 { 88 GX_UBYTE opcode; 89 GX_UBYTE flags; 90 GX_CONST VOID *parent; 91 GX_CONST VOID *target; 92 GX_CONST GX_ANIMATION_INFO *animation; 93 } GX_STUDIO_ACTION; 94 95 typedef struct GX_STUDIO_EVENT_ENTRY_STRUCT 96 { 97 ULONG event_type; 98 USHORT event_sender; 99 GX_CONST GX_STUDIO_ACTION *action_list; 100 } GX_STUDIO_EVENT_ENTRY; 101 102 typedef struct GX_STUDIO_EVENT_PROCESS_STRUCT 103 { 104 GX_CONST GX_STUDIO_EVENT_ENTRY *event_table; 105 UINT (*chain_event_handler)(GX_WIDGET *, GX_EVENT *); 106 } GX_STUDIO_EVENT_PROCESS; 107 108 /* Declare properties structures for each utilized widget type */ 109 110 typedef struct GX_STUDIO_WIDGET_STRUCT 111 { 112 GX_CHAR *widget_name; 113 USHORT widget_type; 114 USHORT widget_id; 115 #if defined(GX_WIDGET_USER_DATA) 116 INT user_data; 117 #endif 118 ULONG style; 119 ULONG status; 120 ULONG control_block_size; 121 GX_RESOURCE_ID normal_fill_color_id; 122 GX_RESOURCE_ID selected_fill_color_id; 123 GX_RESOURCE_ID disabled_fill_color_id; 124 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 125 void (*draw_function) (GX_WIDGET *); 126 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 127 GX_RECTANGLE size; 128 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 129 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 130 ULONG control_block_offset; 131 GX_CONST void *properties; 132 } GX_STUDIO_WIDGET; 133 134 typedef struct 135 { 136 GX_CONST GX_STUDIO_WIDGET *widget_information; 137 GX_WIDGET *widget; 138 } GX_STUDIO_WIDGET_ENTRY; 139 140 typedef struct 141 { 142 GX_RESOURCE_ID string_id; 143 GX_RESOURCE_ID font_id; 144 GX_RESOURCE_ID normal_text_color_id; 145 GX_RESOURCE_ID selected_text_color_id; 146 GX_RESOURCE_ID disabled_text_color_id; 147 } GX_TEXT_BUTTON_PROPERTIES; 148 149 typedef struct 150 { 151 GX_RESOURCE_ID string_id; 152 GX_RESOURCE_ID font_id; 153 GX_RESOURCE_ID normal_text_color_id; 154 GX_RESOURCE_ID selected_text_color_id; 155 GX_RESOURCE_ID disabled_text_color_id; 156 } GX_ML_TEXT_BUTTON_PROPERTIES; 157 158 typedef struct 159 { 160 GX_RESOURCE_ID string_id; 161 GX_RESOURCE_ID font_id; 162 GX_RESOURCE_ID normal_text_color_id; 163 GX_RESOURCE_ID selected_text_color_id; 164 GX_RESOURCE_ID disabled_text_color_id; 165 GX_RESOURCE_ID unchecked_pixelmap_id; 166 GX_RESOURCE_ID checked_pixelmap_id; 167 GX_RESOURCE_ID unchecked_disabled_pixelmap_id; 168 GX_RESOURCE_ID checked_disabled_pixelmap_id; 169 } GX_CHECKBOX_PROPERTIES; 170 171 typedef struct 172 { 173 GX_RESOURCE_ID string_id; 174 GX_RESOURCE_ID font_id; 175 GX_RESOURCE_ID normal_text_color_id; 176 GX_RESOURCE_ID selected_text_color_id; 177 GX_RESOURCE_ID disabled_text_color_id; 178 GX_RESOURCE_ID off_pixelmap_id; 179 GX_RESOURCE_ID on_pixelmap_id; 180 GX_RESOURCE_ID off_disabled_pixelmap_id; 181 GX_RESOURCE_ID on_disabled_pixelmap_id; 182 } GX_RADIO_BUTTON_PROPERTIES; 183 184 typedef struct 185 { 186 GX_RESOURCE_ID pixelmap_id; 187 } GX_ICON_BUTTON_PROPERTIES; 188 189 typedef struct 190 { 191 GX_RESOURCE_ID normal_pixelmap_id; 192 GX_RESOURCE_ID selected_pixelmap_id; 193 GX_RESOURCE_ID disabled_pixelmap_id; 194 } GX_PIXELMAP_BUTTON_PROPERTIES; 195 196 typedef struct 197 { 198 GX_RESOURCE_ID normal_pixelmap_id; 199 GX_RESOURCE_ID selected_pixelmap_id; 200 } GX_ICON_PROPERTIES; 201 202 typedef struct 203 { 204 int tickmark_count; 205 int minval; 206 int maxval; 207 int current_val; 208 int increment; 209 GX_VALUE min_travel; 210 GX_VALUE max_travel; 211 GX_VALUE needle_width; 212 GX_VALUE needle_height; 213 GX_VALUE needle_inset; 214 GX_VALUE needle_hotspot; 215 } GX_SLIDER_PROPERTIES; 216 217 typedef struct 218 { 219 int min_val; 220 int max_val; 221 int current_val; 222 int increment; 223 GX_VALUE min_travel; 224 GX_VALUE max_travel; 225 GX_VALUE needle_width; 226 GX_VALUE needle_height; 227 GX_VALUE needle_inset; 228 GX_VALUE needle_hotspot; 229 GX_RESOURCE_ID lower_pixelmap; 230 GX_RESOURCE_ID upper_pixelmap; 231 GX_RESOURCE_ID needle_pixelmap; 232 } GX_PIXELMAP_SLIDER_PROPERTIES; 233 234 typedef struct 235 { 236 GX_SPRITE_FRAME *frame_list; 237 USHORT frame_count; 238 } GX_SPRITE_PROPERTIES; 239 240 typedef struct 241 { 242 GX_RESOURCE_ID string_id; 243 GX_RESOURCE_ID font_id; 244 GX_RESOURCE_ID normal_text_color_id; 245 GX_RESOURCE_ID selected_text_color_id; 246 GX_RESOURCE_ID disabled_text_color_id; 247 } GX_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 VOID (*format_func)(GX_NUMERIC_PROMPT *, INT); 257 INT numeric_prompt_value; 258 } GX_NUMERIC_PROMPT_PROPERTIES; 259 260 typedef struct 261 { 262 GX_RESOURCE_ID string_id; 263 GX_RESOURCE_ID font_id; 264 GX_RESOURCE_ID normal_text_color_id; 265 GX_RESOURCE_ID selected_text_color_id; 266 GX_RESOURCE_ID disabled_text_color_id; 267 GX_RESOURCE_ID left_map_id; 268 GX_RESOURCE_ID fill_map_id; 269 GX_RESOURCE_ID right_map_id; 270 GX_RESOURCE_ID selected_left_map_id; 271 GX_RESOURCE_ID selected_fill_map_id; 272 GX_RESOURCE_ID selected_right_map_id; 273 } GX_PIXELMAP_PROMPT_PROPERTIES; 274 275 typedef struct 276 { 277 GX_RESOURCE_ID string_id; 278 GX_RESOURCE_ID font_id; 279 GX_RESOURCE_ID normal_text_color_id; 280 GX_RESOURCE_ID selected_text_color_id; 281 GX_RESOURCE_ID disabled_text_color_id; 282 GX_RESOURCE_ID left_map_id; 283 GX_RESOURCE_ID fill_map_id; 284 GX_RESOURCE_ID right_map_id; 285 GX_RESOURCE_ID selected_left_map_id; 286 GX_RESOURCE_ID selected_fill_map_id; 287 GX_RESOURCE_ID selected_right_map_id; 288 VOID (*format_func)(GX_NUMERIC_PIXELMAP_PROMPT *, INT); 289 INT numeric_prompt_value; 290 } GX_NUMERIC_PIXELMAP_PROMPT_PROPERTIES; 291 292 typedef struct 293 { 294 GX_RESOURCE_ID wallpaper_id; 295 } GX_WINDOW_PROPERTIES; 296 297 typedef struct 298 { 299 GX_RESOURCE_ID wallpaper_id; 300 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 301 int total_rows; 302 } GX_VERTICAL_LIST_PROPERTIES; 303 304 typedef struct 305 { 306 GX_RESOURCE_ID wallpaper_id; 307 VOID (*callback)(GX_HORIZONTAL_LIST *, GX_WIDGET *, INT); 308 int total_rows; 309 } GX_HORIZONTAL_LIST_PROPERTIES; 310 311 typedef struct 312 { 313 GX_RESOURCE_ID pixelmap_id; 314 GX_RESOURCE_ID wallpaper_id; 315 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 316 int total_rows; 317 int open_height; 318 } GX_DROP_LIST_PROPERTIES; 319 320 typedef struct 321 { 322 int total_rows; 323 int selected_row; 324 GX_VALUE row_height; 325 GX_UBYTE start_alpha; 326 GX_UBYTE end_alpha; 327 GX_RESOURCE_ID normal_font; 328 GX_RESOURCE_ID selected_font; 329 GX_RESOURCE_ID normal_text_color; 330 GX_RESOURCE_ID selected_text_color; 331 GX_RESOURCE_ID disabled_text_color; 332 GX_RESOURCE_ID wallpaper_id; 333 GX_RESOURCE_ID selected_background; 334 GX_CONST GX_RESOURCE_ID *string_id_list; 335 UINT (*callback)(struct GX_STRING_SCROLL_WHEEL_STRUCT *, INT, GX_STRING *); 336 } GX_STRING_SCROLL_WHEEL_PROPERTIES; 337 338 typedef struct 339 { 340 int total_rows; 341 int selected_row; 342 GX_VALUE row_height; 343 GX_UBYTE start_alpha; 344 GX_UBYTE end_alpha; 345 GX_RESOURCE_ID normal_font; 346 GX_RESOURCE_ID selected_font; 347 GX_RESOURCE_ID normal_text_color; 348 GX_RESOURCE_ID selected_text_color; 349 GX_RESOURCE_ID disabled_text_color; 350 GX_RESOURCE_ID wallpaper_id; 351 GX_RESOURCE_ID selected_background; 352 UINT (*callback)(struct GX_NUMERIC_SCROLL_WHEEL_STRUCT *, INT, GX_STRING *); 353 int start_val; 354 int end_val; 355 } GX_NUMERIC_SCROLL_WHEEL_PROPERTIES; 356 357 typedef struct 358 { 359 GX_RESOURCE_ID string_id; 360 GX_RESOURCE_ID font_id; 361 GX_RESOURCE_ID normal_text_color_id; 362 GX_RESOURCE_ID selected_text_color_id; 363 GX_RESOURCE_ID disabled_text_color_id; 364 GX_RESOURCE_ID readonly_fill_color_id; 365 GX_RESOURCE_ID readonly_text_color_id; 366 GX_CHAR *buffer; 367 UINT buffer_size; 368 } GX_SINGLE_LINE_TEXT_INPUT_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_UBYTE whitespace; 378 GX_BYTE line_space; 379 } GX_ML_TEXT_VIEW_PROPERTIES; 380 381 typedef struct 382 { 383 GX_RESOURCE_ID string_id; 384 GX_RESOURCE_ID font_id; 385 GX_RESOURCE_ID normal_text_color_id; 386 GX_RESOURCE_ID selected_text_color_id; 387 GX_RESOURCE_ID disabled_text_color_id; 388 GX_RESOURCE_ID readonly_fill_color_id; 389 GX_RESOURCE_ID readonly_text_color_id; 390 GX_UBYTE whitespace; 391 GX_BYTE line_space; 392 GX_CHAR *buffer; 393 UINT buffer_size; 394 } GX_MULTI_LINE_TEXT_INPUT_PROPERTIES; 395 396 typedef struct 397 { 398 GX_VALUE start_angle; 399 GX_VALUE animation_steps; 400 GX_VALUE animation_delay; 401 GX_VALUE needle_xpos; 402 GX_VALUE needle_ypos; 403 GX_VALUE needle_xcor; 404 GX_VALUE needle_ycor; 405 GX_RESOURCE_ID normal_pixelmap_id; 406 GX_RESOURCE_ID selected_pixelmap_id; 407 GX_RESOURCE_ID needle_pixelmap_id; 408 } GX_CIRCULAR_GAUGE_PROPERTIES; 409 410 typedef struct 411 { 412 GX_RESOURCE_ID string_id; 413 GX_RESOURCE_ID font_id; 414 GX_RESOURCE_ID normal_text_color_id; 415 GX_RESOURCE_ID selected_text_color_id; 416 GX_RESOURCE_ID disabled_text_color_id; 417 GX_RESOURCE_ID left_map_id; 418 GX_RESOURCE_ID fill_map_id; 419 GX_RESOURCE_ID right_map_id; 420 GX_RESOURCE_ID selected_left_map_id; 421 GX_RESOURCE_ID selected_fill_map_id; 422 GX_RESOURCE_ID selected_right_map_id; 423 GX_VALUE text_x_offset; 424 GX_VALUE text_y_offset; 425 GX_VALUE list_total_count; 426 } GX_MENU_PROPERTIES; 427 428 typedef struct 429 { 430 GX_RESOURCE_ID expand_map_id; 431 GX_RESOURCE_ID collapse_map_id; 432 GX_RESOURCE_ID root_line_color_id; 433 GX_VALUE indentation; 434 } GX_TREE_VIEW_PROPERTIES; 435 436 437 /* Declare top-level control blocks */ 438 439 typedef struct GLYPH_SCREEN_CONTROL_BLOCK_STRUCT 440 { 441 GX_WINDOW_MEMBERS_DECLARE 442 GX_MULTI_LINE_TEXT_VIEW glyph_screen_view; 443 GX_RADIO_BUTTON glyph_screen_radio_8bpp_raw; 444 GX_RADIO_BUTTON glyph_screen_radio_4bpp_raw; 445 GX_RADIO_BUTTON glyph_screen_radio_1bpp_raw; 446 GX_RADIO_BUTTON glyph_screen_radio_8bpp_compress; 447 GX_RADIO_BUTTON glyph_screen_radio_1bpp_compress; 448 GX_RADIO_BUTTON glyph_screen_radio_4bpp_compress; 449 GX_TEXT_BUTTON glyph_screen_next_button; 450 GX_PROMPT glyph_screen_prompt_11; 451 GX_SLIDER glyph_screen_slider_3; 452 GX_NUMERIC_PROMPT glyph_screen_prompt_12; 453 GX_NUMERIC_PROMPT glyph_screen_prompt_12_1; 454 } GLYPH_SCREEN_CONTROL_BLOCK; 455 456 typedef struct MENU_SCREEN_CONTROL_BLOCK_STRUCT 457 { 458 GX_WINDOW_MEMBERS_DECLARE 459 GX_TEXT_BUTTON menu_screen_next_button_7; 460 GX_PROMPT menu_screen_title_5; 461 GX_PROMPT menu_screen_title; 462 GX_ACCORDION_MENU menu_screen_one_level_accordion; 463 GX_MENU menu_screen_ola_menu_1; 464 GX_PROMPT menu_screen_prompt_25; 465 GX_NUMERIC_PROMPT menu_screen_prompt_26; 466 GX_MENU menu_screen_ola_menu_2; 467 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_5; 468 GX_TEXT_BUTTON menu_screen_ola_menu_3; 469 GX_MENU menu_screen_ola_menu_4; 470 GX_MENU menu_screen_item; 471 GX_MENU menu_screen_item_1; 472 GX_ACCORDION_MENU menu_screen_one_level_accordion_2; 473 GX_MENU menu_screen_ola_2_menu_1; 474 GX_PROMPT menu_screen_prompt_7; 475 GX_ACCORDION_MENU menu_screen_ola_2_menu_2; 476 GX_MENU menu_screen_ola_2_menu_2_1; 477 GX_PIXELMAP_PROMPT menu_screen_prompt_9; 478 GX_MENU menu_screen_ola_2_menu_2_2; 479 GX_NUMERIC_PIXELMAP_PROMPT menu_screen_numeric_pixelmap_prompt_2; 480 GX_MENU menu_screen_ola_2_menu_3; 481 GX_PROMPT menu_screen_prompt_10_1; 482 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view; 483 GX_ACCORDION_MENU menu_screen_multi_level_accordion; 484 GX_MENU menu_screen_mla_menu_1; 485 GX_ACCORDION_MENU menu_screen_mla_menu_1_accordion; 486 GX_MENU menu_screen_mla_menu_1_1; 487 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_3; 488 GX_MENU menu_screen_mla_menu_1_2; 489 GX_PROMPT menu_screen_prompt_15_1; 490 GX_MENU menu_screen_mla_menu_2; 491 GX_ACCORDION_MENU menu_screen_mla_menu_2_accordion; 492 GX_MENU menu_screen_mla_menu_2_1; 493 GX_ACCORDION_MENU menu_screen_mla_menu_2_1_accordion; 494 GX_MENU menu_screen_mla_menu_2_1_1; 495 GX_PROMPT menu_screen_prompt_11_1; 496 GX_MENU menu_screen_mla_menu_2_1_2; 497 GX_PROMPT menu_screen_prompt_12_1; 498 GX_MENU menu_screen_mla_menu_2_2; 499 GX_ACCORDION_MENU menu_screen_mla_menu_2_2_accordion; 500 GX_MENU menu_screen_mla_menu_2_2_1; 501 GX_PROMPT menu_screen_prompt_13_1; 502 GX_MENU menu_screen_mla_menu_2_2_2; 503 GX_PROMPT menu_screen_prompt_14_1; 504 GX_MENU menu_screen_mla_menu_3; 505 GX_PROMPT menu_screen_mla_menu_3_item_1; 506 GX_PROMPT menu_screen_mla_menu_3_item_2; 507 GX_ICON menu_screen_mla_menu_3_icon; 508 GX_PROMPT menu_screen_title_2; 509 GX_TREE_VIEW menu_screen_tree_view; 510 GX_MENU menu_screen_tree_menu_1; 511 GX_PROMPT menu_screen_tree_menu_1_1; 512 GX_PROMPT menu_screen_tree_menu_1_2; 513 GX_ICON menu_screen_icon_3; 514 GX_MENU menu_screen_tree_menu_2; 515 GX_MENU menu_screen_tree_menu_2_1; 516 GX_PROMPT menu_screen_tree_menu_2_1_1; 517 GX_PROMPT menu_screen_tree_menu_2_1_2; 518 GX_ICON menu_screen_icon_6; 519 GX_MENU menu_screen_tree_menu_2_2; 520 GX_MENU menu_screen_tree_menu_2_2_1; 521 GX_PROMPT menu_screen_tree_menu_2_2_1_1; 522 GX_PROMPT menu_screen_tree_menu_2_2_1_2; 523 GX_ICON menu_screen_icon_8; 524 GX_ICON menu_screen_icon_7; 525 GX_ICON menu_screen_icon_4; 526 GX_MENU menu_screen_tree_menu_3; 527 GX_PROMPT menu_screen_tree_menu_3_1; 528 GX_ICON menu_screen_icon_5; 529 GX_SCROLLBAR menu_screen_tree_hscroll; 530 GX_SCROLLBAR menu_screen_tree_vscroll; 531 GX_PROMPT menu_screen_prompt_8; 532 GX_MENU menu_screen_menu; 533 GX_PROMPT menu_screen_prompt_10; 534 GX_ICON menu_screen_icon_9; 535 GX_PROMPT menu_screen_title_3; 536 } MENU_SCREEN_CONTROL_BLOCK; 537 538 typedef struct SCROLL_WHEEL_SCREEN_CONTROL_BLOCK_STRUCT 539 { 540 GX_WINDOW_MEMBERS_DECLARE 541 } SCROLL_WHEEL_SCREEN_CONTROL_BLOCK; 542 543 typedef struct SPRITE_SCREEN_CONTROL_BLOCK_STRUCT 544 { 545 GX_WINDOW_MEMBERS_DECLARE 546 GX_WINDOW sprite_screen_apple_window; 547 GX_SLIDER sprite_screen_slider_2; 548 GX_TEXT_BUTTON sprite_screen_next_button_5; 549 GX_SPRITE sprite_screen_sprite_1; 550 } SPRITE_SCREEN_CONTROL_BLOCK; 551 552 typedef struct GAUGE_SCREEN_CONTROL_BLOCK_STRUCT 553 { 554 GX_WINDOW_MEMBERS_DECLARE 555 GX_PROMPT gauge_screen_prompt_6; 556 GX_TEXT_BUTTON gauge_screen_next_button_4; 557 GX_CIRCULAR_GAUGE gauge_screen_gauge_1; 558 } GAUGE_SCREEN_CONTROL_BLOCK; 559 560 typedef struct POPUP_MODAL_CONTROL_BLOCK_STRUCT 561 { 562 GX_WINDOW_MEMBERS_DECLARE 563 GX_TEXT_BUTTON popup_modal_OK_button; 564 GX_TEXT_BUTTON popup_modal_cancel_button; 565 GX_MULTI_LINE_TEXT_VIEW popup_modal_text_view_2; 566 GX_WINDOW popup_modal_window_1; 567 GX_PROMPT popup_modal_prompt_5; 568 } POPUP_MODAL_CONTROL_BLOCK; 569 570 typedef struct INDICATOR_SCREEN_CONTROL_BLOCK_STRUCT 571 { 572 GX_WINDOW_MEMBERS_DECLARE 573 GX_SLIDER indicator_screen_slider; 574 GX_SLIDER indicator_screen_slider_1; 575 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider; 576 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_1; 577 GX_ICON indicator_screen_icon_1; 578 GX_ICON indicator_screen_icon_2; 579 GX_PROMPT indicator_screen_slider_title; 580 GX_TEXT_BUTTON indicator_screen_next_button_3; 581 GX_PROGRESS_BAR indicator_screen_progress_bar_1; 582 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_2; 583 GX_RADIAL_PROGRESS_BAR indicator_screen_radial_progress_bar; 584 } INDICATOR_SCREEN_CONTROL_BLOCK; 585 586 typedef struct TEXT_SCREEN_CONTROL_BLOCK_STRUCT 587 { 588 GX_WINDOW_MEMBERS_DECLARE 589 GX_PROMPT text_screen_prompt_1; 590 GX_PROMPT text_screen_prompt_2; 591 GX_PROMPT text_screen_prompt_3; 592 GX_PIXELMAP_PROMPT text_screen_prompt_4; 593 GX_SINGLE_LINE_TEXT_INPUT text_screen_text_input_1; 594 GX_MULTI_LINE_TEXT_VIEW text_screen_text_view_1; 595 GX_MULTI_LINE_TEXT_INPUT text_screen_text_input_2; 596 GX_TEXT_BUTTON text_screen_next_button_2; 597 GX_NUMERIC_PROMPT text_screen_numeric_prompt; 598 GX_NUMERIC_PIXELMAP_PROMPT text_screen_numeric_pixelmap_prompt; 599 } TEXT_SCREEN_CONTROL_BLOCK; 600 601 typedef struct WINDOW_SCREEN_CONTROL_BLOCK_STRUCT 602 { 603 GX_WINDOW_MEMBERS_DECLARE 604 GX_WINDOW window_screen_window_5; 605 GX_WINDOW window_screen_window_6; 606 GX_WINDOW window_screen_window_8; 607 GX_WINDOW window_screen_scroll_frame_1; 608 GX_WINDOW window_screen_window_4; 609 GX_SCROLLBAR window_screen_hscroll_1; 610 GX_SCROLLBAR window_screen_vertical_scroll_1; 611 GX_VERTICAL_LIST window_screen_vertical_list; 612 GX_TEXT_BUTTON window_screen_button_1; 613 GX_TEXT_BUTTON window_screen_button_2; 614 GX_TEXT_BUTTON window_screen_button_3; 615 GX_TEXT_BUTTON window_screen_button_4; 616 GX_PROMPT window_screen_nested_label_1; 617 GX_PROMPT window_screen_frame_label_1; 618 GX_PROMPT window_screen_vlist_label_1; 619 GX_HORIZONTAL_LIST window_screen_horizontal_list_1; 620 GX_ICON_BUTTON window_screen_icon_button_1; 621 GX_ICON_BUTTON window_screen_icon_button_2; 622 GX_ICON_BUTTON window_screen_icon_button_3; 623 GX_ICON_BUTTON window_screen_icon_button_4; 624 GX_ICON_BUTTON window_screen_icon_button_5; 625 GX_PROMPT window_screen_hlist_label_1; 626 GX_TEXT_BUTTON window_screen_next_button_1; 627 GX_DROP_LIST window_screen_drop_list; 628 GX_PIXELMAP_BUTTON window_screen_pixelmap_button; 629 GX_PROMPT window_screen_hlist_label; 630 GX_LINE_CHART window_screen_line_chart; 631 } WINDOW_SCREEN_CONTROL_BLOCK; 632 633 typedef struct BUTTON_SCREEN_CONTROL_BLOCK_STRUCT 634 { 635 GX_WINDOW_MEMBERS_DECLARE 636 GX_PROMPT button_screen_title_1; 637 GX_BUTTON button_screen_base_button_1; 638 GX_TEXT_BUTTON button_screen_text_button_1; 639 GX_CHECKBOX button_screen_checkbox; 640 GX_RADIO_BUTTON button_screen_radio_button1; 641 GX_PIXELMAP_BUTTON button_screen_pixelmap_button1; 642 GX_ICON button_screen_icon; 643 GX_ICON_BUTTON button_screen_icon_button_6; 644 GX_PROMPT button_screen_button_label_1; 645 GX_PROMPT button_screen_radio_label_1; 646 GX_PROMPT button_screen_pixbutton_label_1; 647 GX_PROMPT button_screen_texbutton_label_1; 648 GX_PROMPT button_screen_checkbox_label_1; 649 GX_PROMPT button_screen_iconbutton_label_1; 650 GX_PROMPT button_screen_icon_label_1; 651 GX_TEXT_BUTTON button_screen_next_button; 652 GX_MULTI_LINE_TEXT_BUTTON button_screen_multi_line_button_1; 653 GX_PROMPT button_screen_texbutton_label_2; 654 } BUTTON_SCREEN_CONTROL_BLOCK; 655 656 657 /* extern statically defined control blocks */ 658 659 #ifndef GUIX_STUDIO_GENERATED_FILE 660 extern GLYPH_SCREEN_CONTROL_BLOCK glyph_screen; 661 extern MENU_SCREEN_CONTROL_BLOCK menu_screen; 662 extern SPRITE_SCREEN_CONTROL_BLOCK sprite_screen; 663 extern GAUGE_SCREEN_CONTROL_BLOCK gauge_screen; 664 extern POPUP_MODAL_CONTROL_BLOCK popup_modal; 665 extern INDICATOR_SCREEN_CONTROL_BLOCK indicator_screen; 666 extern TEXT_SCREEN_CONTROL_BLOCK text_screen; 667 extern WINDOW_SCREEN_CONTROL_BLOCK window_screen; 668 extern BUTTON_SCREEN_CONTROL_BLOCK button_screen; 669 #endif 670 671 /* Prototype Dave2D display driver specific functions */ 672 673 UINT _gx_synergy_display_driver_setup(GX_DISPLAY *display); 674 #if defined(GX_TARGET_WIN32) || defined(GX_TARGET_LINUX) 675 UINT win32_dave2d_graphics_driver_setup_24xrgb(GX_DISPLAY *display); 676 #else 677 VOID _gx_display_driver_32argb_setup(GX_DISPLAY *display, VOID *aux_data, 678 VOID (*toggle_function)(struct GX_CANVAS_STRUCT *canvas, 679 GX_RECTANGLE *dirty_area)); 680 VOID _gx_dave2d_horizontal_pattern_line_draw_888(GX_DRAW_CONTEXT *context, INT xstart, INT xend, INT ypos); 681 VOID _gx_dave2d_vertical_pattern_line_draw_888(GX_DRAW_CONTEXT *context, INT ystart, INT yend, INT xpos); 682 VOID _gx_dave2d_pixel_write_888(GX_DRAW_CONTEXT *context, INT x, INT y, GX_COLOR color); 683 VOID _gx_dave2d_pixel_blend_888(GX_DRAW_CONTEXT *context, INT x, INT y, GX_COLOR fcolor, GX_UBYTE alpha); 684 VOID _gx_dave2d_drawing_initiate(GX_DISPLAY *display, GX_CANVAS *canvas); 685 VOID _gx_dave2d_drawing_complete(GX_DISPLAY *display, GX_CANVAS *canvas); 686 VOID _gx_dave2d_horizontal_line(GX_DRAW_CONTEXT *context, 687 INT xstart, INT xend, INT ypos, INT width, GX_COLOR color); 688 VOID _gx_dave2d_vertical_line(GX_DRAW_CONTEXT *context, 689 INT ystart, INT yend, INT xpos, INT width, GX_COLOR color); 690 VOID _gx_dave2d_canvas_copy(GX_CANVAS *canvas, GX_CANVAS *composite); 691 VOID _gx_dave2d_canvas_blend(GX_CANVAS *canvas, GX_CANVAS *composite); 692 VOID _gx_dave2d_simple_line_draw(GX_DRAW_CONTEXT *context, INT xstart, INT ystart, INT xend, INT yend); 693 VOID _gx_dave2d_simple_wide_line(GX_DRAW_CONTEXT *context, INT xstart, INT ystart, 694 INT xend, INT yend); 695 VOID _gx_dave2d_aliased_line(GX_DRAW_CONTEXT *context, INT xstart, INT ystart, INT xend, INT yend); 696 VOID _gx_dave2d_aliased_wide_line(GX_DRAW_CONTEXT *context, INT xstart, 697 INT ystart, INT xend, INT yend); 698 VOID _gx_dave2d_pixelmap_draw(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, GX_PIXELMAP *pixelmap); 699 VOID _gx_dave2d_horizontal_pixelmap_line_draw(GX_DRAW_CONTEXT *context, INT xstart, INT xend, INT y, GX_FILL_PIXELMAP_INFO *info); 700 VOID _gx_dave2d_pixelmap_blend(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, 701 GX_PIXELMAP *pixelmap, GX_UBYTE alpha); 702 VOID _gx_dave2d_polygon_draw(GX_DRAW_CONTEXT *context, GX_POINT *vertex, INT num); 703 VOID _gx_dave2d_polygon_fill(GX_DRAW_CONTEXT *context, GX_POINT *vertex, INT num); 704 VOID _gx_dave2d_block_move(GX_DRAW_CONTEXT *context, 705 GX_RECTANGLE *block, INT xshift, INT yshift); 706 VOID _gx_dave2d_alphamap_draw(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, GX_PIXELMAP *pixelmap); 707 VOID _gx_dave2d_compressed_glyph_8bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 708 VOID _gx_dave2d_raw_glyph_8bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 709 VOID _gx_dave2d_compressed_glyph_4bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 710 VOID _gx_dave2d_raw_glyph_4bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 711 VOID _gx_dave2d_compressed_glyph_1bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 712 VOID _gx_dave2d_raw_glyph_1bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 713 VOID _gx_dave2d_buffer_toggle(GX_CANVAS *canvas, GX_RECTANGLE *dirty); 714 #if defined(GX_ARC_DRAWING_SUPPORT) 715 VOID _gx_dave2d_aliased_circle_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r); 716 VOID _gx_dave2d_circle_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r); 717 VOID _gx_dave2d_circle_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r); 718 VOID _gx_dave2d_pie_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 719 VOID _gx_dave2d_aliased_arc_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 720 VOID _gx_dave2d_arc_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 721 VOID _gx_dave2d_arc_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 722 VOID _gx_dave2d_aliased_ellipse_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, INT a, INT b); 723 VOID _gx_dave2d_ellipse_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, INT a, INT b); 724 VOID _gx_dave2d_ellipse_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, INT a, INT b); 725 #endif 726 VOID _gx_synergy_jpeg_draw (GX_DRAW_CONTEXT *p_context, INT x, INT y, GX_PIXELMAP *p_pixelmap); 727 VOID _gx_dave2d_png_draw(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, GX_PIXELMAP *pixelmap); 728 729 #endif 730 731 /* Declare event process functions, draw functions, and callback functions */ 732 733 UINT glyph_screen_event_process(GX_WINDOW *widget, GX_EVENT *event_ptr); 734 UINT scroll_wheel_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 735 UINT day_wheel_value_format(GX_NUMERIC_SCROLL_WHEEL *wheel, INT row, GX_STRING *string); 736 UINT sprite_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 737 VOID apple_window_draw(GX_WINDOW *widget); 738 UINT gauge_event_handle(GX_WINDOW *widget, GX_EVENT *event_ptr); 739 VOID gauge_prompt_draw(GX_PROMPT *widget); 740 UINT text_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 741 VOID format_func(GX_NUMERIC_PROMPT *, INT); 742 VOID numeric_pixelmap_format_func(GX_NUMERIC_PIXELMAP_PROMPT *, INT); 743 UINT window_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 744 VOID drop_list_row_create(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 745 UINT buttons_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 746 747 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 748 749 750 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 751 { 752 GX_CONST GX_CHAR *name; 753 GX_CONST GX_CHAR *canvas_name; 754 GX_CONST GX_THEME **theme_table; 755 GX_CONST GX_STRING **language_table; 756 USHORT theme_table_size; 757 USHORT language_table_size; 758 UINT string_table_size; 759 UINT x_resolution; 760 UINT y_resolution; 761 GX_DISPLAY *display; 762 GX_CANVAS *canvas; 763 GX_WINDOW_ROOT *root_window; 764 GX_COLOR *canvas_memory; 765 ULONG canvas_memory_size; 766 USHORT rotation_angle; 767 } GX_STUDIO_DISPLAY_INFO; 768 769 770 /* Declare Studio-generated functions for creating top-level widgets */ 771 772 UINT gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 773 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 774 UINT gx_studio_multi_line_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 775 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 776 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 777 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 778 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 779 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 780 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 781 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 782 UINT gx_studio_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 783 UINT gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 784 UINT gx_studio_sprite_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 785 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 786 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 787 UINT gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 788 UINT gx_studio_numeric_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 789 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 790 UINT gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 791 UINT gx_studio_horizontal_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 792 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 793 UINT gx_studio_string_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 794 UINT gx_studio_numeric_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 795 UINT gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 796 UINT gx_studio_multi_line_text_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 797 UINT gx_studio_multi_line_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 798 UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 799 UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 800 UINT gx_studio_circular_gauge_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 801 UINT gx_studio_line_chart_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 802 UINT gx_studio_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 803 UINT gx_studio_accordion_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 804 UINT gx_studio_tree_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 805 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 806 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 807 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 808 UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CONST GX_STUDIO_EVENT_PROCESS *record); 809 810 /* Determine if a C++ compiler is being used. If so, complete the standard 811 C conditional started above. */ 812 #ifdef __cplusplus 813 } 814 #endif 815 816 #endif /* sentry */ 817