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:07 */ 10 /*******************************************************************************/ 11 12 13 #ifndef _ALL_WIDGETS_4BPP_SPECIFICATIONS_H_ 14 #define _ALL_WIDGETS_4BPP_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_LINE_SCREEN 1 26 #define ID_LINE_WINDOW 2 27 #define ID_LINE_WIDTH 3 28 #define ID_WIDTH_DISPLAY 4 29 #define ID_LINE_ANGLE 5 30 #define ID_ANGLE_PROMPT 6 31 #define ID_PATTERN 7 32 #define ID_ROUNDED 8 33 #define IDB_NEXT 9 34 #define ID_RESIZE_SCREEN 10 35 #define ID_SLIDER_WIDTH 11 36 #define ID_RADIO_FOOT 12 37 #define ID_RADIO_FISH 13 38 #define ID_RADIO_FOOT_ALPHA 14 39 #define ID_SLIDER_HEIGHT 15 40 #define ID_HEIGHT_DISPLAY 16 41 #define ID_IMAGE_CONVERT_SCREEN 17 42 #define ID_ALPHA 18 43 #define ID_COMPRESSED 19 44 #define ID_DITHER 20 45 #define ID_MENU_SCREEN 21 46 #define ID_SCROLL_WHEEL_SCREEN 22 47 #define ID_DAY_WHEEL 23 48 #define ID_MONTH_WHEEL 24 49 #define ID_YEAR_WHEEL 25 50 #define ID_DAY_SELECT 26 51 #define ID_DAY_INPUT 27 52 #define ID_ROTATE_SCREEN 28 53 #define ID_RADIO_APPLE 29 54 #define ID_SLIDER_ANGLE 30 55 #define ID_ANGLE_DISPLAY 31 56 #define ID_DIRECT_ROTATE 32 57 #define ID_SPRITE_SCREEN 33 58 #define ID_ALPHA_SLIDER 34 59 #define ID_BIRD_SPRITE 35 60 #define ID_SHAPES_SCREEN 36 61 #define ID_CIRCLE 37 62 #define ID_ELLIPSE 38 63 #define ID_ARC 39 64 #define ID_PIE 40 65 #define ID_RECTANGLE 41 66 #define ID_POLYGON 42 67 #define ID_ANTI_ALIASED 43 68 #define ID_ROUND_END 44 69 #define ID_SOLID_FILL 45 70 #define ID_PIXELMAP_FILL 46 71 #define ID_RADIUS_SLIDER 47 72 #define ID_RADIUS_PROMPT 48 73 #define ID_BRUSH_WIDTH_PROMPT 49 74 #define ID_BRUSH_WIDTH 50 75 #define ID_TRANSPARENT 51 76 #define ID_INDICATOR_SCREEN 52 77 #define ID_SLIDER_HORIZONTAL 53 78 #define ID_SLIDER_1 54 79 #define ID_PIXELMAP_SLIDER_H 55 80 #define ID_PIXELMAP_SLIDER1 56 81 #define ID_TEXT_SCREEN 57 82 #define ID_PROMPT_1 58 83 #define ID_PROMPT_2 59 84 #define ID_PROMPT_3 60 85 #define ID_PROMPT_4 61 86 #define ID_WINDOW_SCREEN 62 87 #define ID_HORIZONTAL_SCROLLBAR 63 88 #define ID_VERTICAL_SCROLLBAR 64 89 #define ID_VERTICAL_LIST 65 90 #define ID_DROP_LIST 66 91 #define ID_BUTTON_SCREEN 67 92 #define ID_TEXT_BUTTON 68 93 #define ID_CHECKBOX 69 94 #define ID_RADIO_BUTTON 70 95 #define ID_PIXELMAP_BUTTON 71 96 #define ID_ICON 72 97 #define ID_ICON_BUTTON 73 98 99 100 /* Define animation ids */ 101 102 #define GX_NEXT_ANIMATION_ID 1 103 104 105 /* Define user event ids */ 106 107 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 108 109 110 /* Declare properties structures for each utilized widget type */ 111 112 typedef struct GX_STUDIO_WIDGET_STRUCT 113 { 114 GX_CHAR *widget_name; 115 USHORT widget_type; 116 USHORT widget_id; 117 #if defined(GX_WIDGET_USER_DATA) 118 INT user_data; 119 #endif 120 ULONG style; 121 ULONG status; 122 ULONG control_block_size; 123 GX_RESOURCE_ID normal_fill_color_id; 124 GX_RESOURCE_ID selected_fill_color_id; 125 GX_RESOURCE_ID disabled_fill_color_id; 126 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 127 void (*draw_function) (GX_WIDGET *); 128 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 129 GX_RECTANGLE size; 130 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 131 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 132 ULONG control_block_offset; 133 GX_CONST void *properties; 134 } GX_STUDIO_WIDGET; 135 136 typedef struct 137 { 138 GX_CONST GX_STUDIO_WIDGET *widget_information; 139 GX_WIDGET *widget; 140 } GX_STUDIO_WIDGET_ENTRY; 141 142 typedef struct 143 { 144 GX_RESOURCE_ID string_id; 145 GX_RESOURCE_ID font_id; 146 GX_RESOURCE_ID normal_text_color_id; 147 GX_RESOURCE_ID selected_text_color_id; 148 GX_RESOURCE_ID disabled_text_color_id; 149 } GX_TEXT_BUTTON_PROPERTIES; 150 151 typedef struct 152 { 153 GX_RESOURCE_ID string_id; 154 GX_RESOURCE_ID font_id; 155 GX_RESOURCE_ID normal_text_color_id; 156 GX_RESOURCE_ID selected_text_color_id; 157 GX_RESOURCE_ID disabled_text_color_id; 158 GX_RESOURCE_ID unchecked_pixelmap_id; 159 GX_RESOURCE_ID checked_pixelmap_id; 160 GX_RESOURCE_ID unchecked_disabled_pixelmap_id; 161 GX_RESOURCE_ID checked_disabled_pixelmap_id; 162 } GX_CHECKBOX_PROPERTIES; 163 164 typedef struct 165 { 166 GX_RESOURCE_ID string_id; 167 GX_RESOURCE_ID font_id; 168 GX_RESOURCE_ID normal_text_color_id; 169 GX_RESOURCE_ID selected_text_color_id; 170 GX_RESOURCE_ID disabled_text_color_id; 171 GX_RESOURCE_ID off_pixelmap_id; 172 GX_RESOURCE_ID on_pixelmap_id; 173 GX_RESOURCE_ID off_disabled_pixelmap_id; 174 GX_RESOURCE_ID on_disabled_pixelmap_id; 175 } GX_RADIO_BUTTON_PROPERTIES; 176 177 typedef struct 178 { 179 GX_RESOURCE_ID pixelmap_id; 180 } GX_ICON_BUTTON_PROPERTIES; 181 182 typedef struct 183 { 184 GX_RESOURCE_ID normal_pixelmap_id; 185 GX_RESOURCE_ID selected_pixelmap_id; 186 GX_RESOURCE_ID disabled_pixelmap_id; 187 } GX_PIXELMAP_BUTTON_PROPERTIES; 188 189 typedef struct 190 { 191 GX_RESOURCE_ID normal_pixelmap_id; 192 GX_RESOURCE_ID selected_pixelmap_id; 193 } GX_ICON_PROPERTIES; 194 195 typedef struct 196 { 197 int tickmark_count; 198 int minval; 199 int maxval; 200 int current_val; 201 int increment; 202 GX_VALUE min_travel; 203 GX_VALUE max_travel; 204 GX_VALUE needle_width; 205 GX_VALUE needle_height; 206 GX_VALUE needle_inset; 207 GX_VALUE needle_hotspot; 208 } GX_SLIDER_PROPERTIES; 209 210 typedef struct 211 { 212 int min_val; 213 int max_val; 214 int current_val; 215 int increment; 216 GX_VALUE min_travel; 217 GX_VALUE max_travel; 218 GX_VALUE needle_width; 219 GX_VALUE needle_height; 220 GX_VALUE needle_inset; 221 GX_VALUE needle_hotspot; 222 GX_RESOURCE_ID lower_pixelmap; 223 GX_RESOURCE_ID upper_pixelmap; 224 GX_RESOURCE_ID needle_pixelmap; 225 } GX_PIXELMAP_SLIDER_PROPERTIES; 226 227 typedef struct 228 { 229 GX_SPRITE_FRAME *frame_list; 230 USHORT frame_count; 231 } GX_SPRITE_PROPERTIES; 232 233 typedef struct 234 { 235 GX_RESOURCE_ID string_id; 236 GX_RESOURCE_ID font_id; 237 GX_RESOURCE_ID normal_text_color_id; 238 GX_RESOURCE_ID selected_text_color_id; 239 GX_RESOURCE_ID disabled_text_color_id; 240 } GX_PROMPT_PROPERTIES; 241 242 typedef struct 243 { 244 GX_RESOURCE_ID string_id; 245 GX_RESOURCE_ID font_id; 246 GX_RESOURCE_ID normal_text_color_id; 247 GX_RESOURCE_ID selected_text_color_id; 248 GX_RESOURCE_ID disabled_text_color_id; 249 VOID (*format_func)(GX_NUMERIC_PROMPT *, INT); 250 INT numeric_prompt_value; 251 } GX_NUMERIC_PROMPT_PROPERTIES; 252 253 typedef struct 254 { 255 GX_RESOURCE_ID string_id; 256 GX_RESOURCE_ID font_id; 257 GX_RESOURCE_ID normal_text_color_id; 258 GX_RESOURCE_ID selected_text_color_id; 259 GX_RESOURCE_ID disabled_text_color_id; 260 GX_RESOURCE_ID left_map_id; 261 GX_RESOURCE_ID fill_map_id; 262 GX_RESOURCE_ID right_map_id; 263 GX_RESOURCE_ID selected_left_map_id; 264 GX_RESOURCE_ID selected_fill_map_id; 265 GX_RESOURCE_ID selected_right_map_id; 266 } GX_PIXELMAP_PROMPT_PROPERTIES; 267 268 typedef struct 269 { 270 GX_RESOURCE_ID string_id; 271 GX_RESOURCE_ID font_id; 272 GX_RESOURCE_ID normal_text_color_id; 273 GX_RESOURCE_ID selected_text_color_id; 274 GX_RESOURCE_ID disabled_text_color_id; 275 GX_RESOURCE_ID left_map_id; 276 GX_RESOURCE_ID fill_map_id; 277 GX_RESOURCE_ID right_map_id; 278 GX_RESOURCE_ID selected_left_map_id; 279 GX_RESOURCE_ID selected_fill_map_id; 280 GX_RESOURCE_ID selected_right_map_id; 281 VOID (*format_func)(GX_NUMERIC_PIXELMAP_PROMPT *, INT); 282 INT numeric_prompt_value; 283 } GX_NUMERIC_PIXELMAP_PROMPT_PROPERTIES; 284 285 typedef struct 286 { 287 GX_RESOURCE_ID wallpaper_id; 288 } GX_WINDOW_PROPERTIES; 289 290 typedef struct 291 { 292 GX_RESOURCE_ID wallpaper_id; 293 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 294 int total_rows; 295 } GX_VERTICAL_LIST_PROPERTIES; 296 297 typedef struct 298 { 299 GX_RESOURCE_ID wallpaper_id; 300 VOID (*callback)(GX_HORIZONTAL_LIST *, GX_WIDGET *, INT); 301 int total_rows; 302 } GX_HORIZONTAL_LIST_PROPERTIES; 303 304 typedef struct 305 { 306 GX_RESOURCE_ID pixelmap_id; 307 GX_RESOURCE_ID wallpaper_id; 308 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 309 int total_rows; 310 int open_height; 311 } GX_DROP_LIST_PROPERTIES; 312 313 typedef struct 314 { 315 int total_rows; 316 int selected_row; 317 GX_VALUE row_height; 318 GX_UBYTE start_alpha; 319 GX_UBYTE end_alpha; 320 GX_RESOURCE_ID normal_font; 321 GX_RESOURCE_ID selected_font; 322 GX_RESOURCE_ID normal_text_color; 323 GX_RESOURCE_ID selected_text_color; 324 GX_RESOURCE_ID disabled_text_color; 325 GX_RESOURCE_ID wallpaper_id; 326 GX_RESOURCE_ID selected_background; 327 GX_CONST GX_RESOURCE_ID *string_id_list; 328 UINT (*callback)(struct GX_STRING_SCROLL_WHEEL_STRUCT *, INT, GX_STRING *); 329 } GX_STRING_SCROLL_WHEEL_PROPERTIES; 330 331 typedef struct 332 { 333 int total_rows; 334 int selected_row; 335 GX_VALUE row_height; 336 GX_UBYTE start_alpha; 337 GX_UBYTE end_alpha; 338 GX_RESOURCE_ID normal_font; 339 GX_RESOURCE_ID selected_font; 340 GX_RESOURCE_ID normal_text_color; 341 GX_RESOURCE_ID selected_text_color; 342 GX_RESOURCE_ID disabled_text_color; 343 GX_RESOURCE_ID wallpaper_id; 344 GX_RESOURCE_ID selected_background; 345 UINT (*callback)(struct GX_NUMERIC_SCROLL_WHEEL_STRUCT *, INT, GX_STRING *); 346 int start_val; 347 int end_val; 348 } GX_NUMERIC_SCROLL_WHEEL_PROPERTIES; 349 350 typedef struct 351 { 352 GX_RESOURCE_ID string_id; 353 GX_RESOURCE_ID font_id; 354 GX_RESOURCE_ID normal_text_color_id; 355 GX_RESOURCE_ID selected_text_color_id; 356 GX_RESOURCE_ID disabled_text_color_id; 357 GX_RESOURCE_ID readonly_fill_color_id; 358 GX_RESOURCE_ID readonly_text_color_id; 359 GX_CHAR *buffer; 360 UINT buffer_size; 361 } GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES; 362 363 typedef struct 364 { 365 GX_RESOURCE_ID string_id; 366 GX_RESOURCE_ID font_id; 367 GX_RESOURCE_ID normal_text_color_id; 368 GX_RESOURCE_ID selected_text_color_id; 369 GX_RESOURCE_ID disabled_text_color_id; 370 GX_UBYTE whitespace; 371 GX_BYTE line_space; 372 } GX_ML_TEXT_VIEW_PROPERTIES; 373 374 typedef struct 375 { 376 GX_RESOURCE_ID string_id; 377 GX_RESOURCE_ID font_id; 378 GX_RESOURCE_ID normal_text_color_id; 379 GX_RESOURCE_ID selected_text_color_id; 380 GX_RESOURCE_ID disabled_text_color_id; 381 GX_RESOURCE_ID readonly_fill_color_id; 382 GX_RESOURCE_ID readonly_text_color_id; 383 GX_UBYTE whitespace; 384 GX_BYTE line_space; 385 GX_CHAR *buffer; 386 UINT buffer_size; 387 } GX_MULTI_LINE_TEXT_INPUT_PROPERTIES; 388 389 typedef struct 390 { 391 GX_RESOURCE_ID string_id; 392 GX_RESOURCE_ID font_id; 393 GX_RESOURCE_ID normal_text_color_id; 394 GX_RESOURCE_ID selected_text_color_id; 395 GX_RESOURCE_ID disabled_text_color_id; 396 GX_RESOURCE_ID left_map_id; 397 GX_RESOURCE_ID fill_map_id; 398 GX_RESOURCE_ID right_map_id; 399 GX_RESOURCE_ID selected_left_map_id; 400 GX_RESOURCE_ID selected_fill_map_id; 401 GX_RESOURCE_ID selected_right_map_id; 402 GX_VALUE text_x_offset; 403 GX_VALUE text_y_offset; 404 GX_VALUE list_total_count; 405 } GX_MENU_PROPERTIES; 406 407 typedef struct 408 { 409 GX_RESOURCE_ID expand_map_id; 410 GX_RESOURCE_ID collapse_map_id; 411 GX_RESOURCE_ID root_line_color_id; 412 GX_VALUE indentation; 413 } GX_TREE_VIEW_PROPERTIES; 414 415 416 /* Declare top-level control blocks */ 417 418 typedef struct LINE_SCREEN_CONTROL_BLOCK_STRUCT 419 { 420 GX_WINDOW_MEMBERS_DECLARE 421 GX_WINDOW line_screen_line_window; 422 GX_PROMPT line_screen_prompt_12; 423 GX_SLIDER line_screen_line_width_slider; 424 GX_PROMPT line_screen_width_display; 425 GX_PROMPT line_screen_prompt_13; 426 GX_SLIDER line_screen_line_angle_slider; 427 GX_PROMPT line_screen_line_angle; 428 GX_CHECKBOX line_screen_pattern_box; 429 GX_CHECKBOX line_screen_rounded_box_1; 430 GX_TEXT_BUTTON line_screen_next_button_11; 431 } LINE_SCREEN_CONTROL_BLOCK; 432 433 typedef struct RESIZE_SCREEN_CONTROL_BLOCK_STRUCT 434 { 435 GX_WINDOW_MEMBERS_DECLARE 436 GX_PROMPT resize_screen_prompt_16_1; 437 GX_SLIDER resize_screen_slider_angle; 438 GX_PROMPT resize_screen_prompt_angle; 439 GX_WINDOW resize_screen_resize_window; 440 GX_RADIO_BUTTON resize_screen_radio_button_9; 441 GX_RADIO_BUTTON resize_screen_radio_button_10; 442 GX_RADIO_BUTTON resize_screen_radio_button_11; 443 GX_PROMPT resize_screen_prompt_17_3; 444 GX_PROMPT resize_screen_prompt_18; 445 GX_SLIDER resize_screen_slider_angle_1; 446 GX_PROMPT resize_screen_prompt_angle_1; 447 GX_TEXT_BUTTON resize_screen_next_button_10; 448 } RESIZE_SCREEN_CONTROL_BLOCK; 449 450 typedef struct IMAGE_CONVERT_SCREEN_CONTROL_BLOCK_STRUCT 451 { 452 GX_WINDOW_MEMBERS_DECLARE 453 GX_WINDOW image_convert_screen_png_to_4bit_gray_win; 454 GX_PROMPT image_convert_screen_prompt_17; 455 GX_WINDOW image_convert_screen_jpeg_to_4bit_gray_win; 456 GX_PROMPT image_convert_screen_prompt_17_1; 457 GX_PROMPT image_convert_screen_prompt_17_2; 458 GX_TEXT_BUTTON image_convert_screen_next_button_9; 459 GX_CHECKBOX image_convert_screen_checkbox_1; 460 GX_CHECKBOX image_convert_screen_checkbox_2; 461 GX_CHECKBOX image_convert_screen_checkbox_3; 462 } IMAGE_CONVERT_SCREEN_CONTROL_BLOCK; 463 464 typedef struct MENU_SCREEN_CONTROL_BLOCK_STRUCT 465 { 466 GX_WINDOW_MEMBERS_DECLARE 467 GX_PROMPT menu_screen_title_2; 468 GX_PROMPT menu_screen_title_3; 469 GX_ACCORDION_MENU menu_screen_one_level_accordion; 470 GX_MENU menu_screen_ola_menu_3; 471 GX_PROMPT menu_screen_prompt_25_1; 472 GX_NUMERIC_PROMPT menu_screen_prompt_26_1; 473 GX_MENU menu_screen_ola_menu_4; 474 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view; 475 GX_TEXT_BUTTON menu_screen_ola_menu; 476 GX_MENU menu_screen_ola_menu_1; 477 GX_MENU menu_screen_item; 478 GX_MENU menu_screen_item_1; 479 GX_ACCORDION_MENU menu_screen_one_level_accordion_2; 480 GX_MENU menu_screen_ola_2_menu_4; 481 GX_PROMPT menu_screen_prompt_14_2; 482 GX_ACCORDION_MENU menu_screen_ola_2_menu_3; 483 GX_MENU menu_screen_ola_2_menu; 484 GX_PIXELMAP_PROMPT menu_screen_prompt_15_2; 485 GX_MENU menu_screen_ola_2_menu_1; 486 GX_NUMERIC_PIXELMAP_PROMPT menu_screen_numeric_pixelmap_prompt; 487 GX_MENU menu_screen_ola_2_menu_2; 488 GX_PROMPT menu_screen_prompt_10_1; 489 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_3; 490 GX_ACCORDION_MENU menu_screen_multi_level_accordion_1; 491 GX_MENU menu_screen_mla_menu_5; 492 GX_ACCORDION_MENU menu_screen_mla_menu_1_accordion_1; 493 GX_MENU menu_screen_mla_menu_3; 494 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_2; 495 GX_MENU menu_screen_mla_menu; 496 GX_PROMPT menu_screen_prompt_15_1; 497 GX_MENU menu_screen_mla_menu_1; 498 GX_ACCORDION_MENU menu_screen_mla_menu_2_accordion_1; 499 GX_MENU menu_screen_mla_menu_6; 500 GX_ACCORDION_MENU menu_screen_mla_menu_2_1_accordion_1; 501 GX_MENU menu_screen_mla_menu_4; 502 GX_PROMPT menu_screen_prompt_11_2; 503 GX_MENU menu_screen_mla_menu_2; 504 GX_PROMPT menu_screen_prompt_12_1; 505 GX_MENU menu_screen_mla_menu_2_1; 506 GX_ACCORDION_MENU menu_screen_mla_menu_2_2_accordion_1; 507 GX_MENU menu_screen_mla_menu_2_4; 508 GX_PROMPT menu_screen_prompt_13_1; 509 GX_MENU menu_screen_mla_menu_2_3; 510 GX_PROMPT menu_screen_prompt_14_1; 511 GX_MENU menu_screen_mla_menu_8; 512 GX_PROMPT menu_screen_mla_menu_3_item_1; 513 GX_PROMPT menu_screen_mla_menu_3_item_2; 514 GX_ICON menu_screen_mla_menu_3_icon_1; 515 GX_PROMPT menu_screen_title_4; 516 GX_TREE_VIEW menu_screen_tree_view; 517 GX_MENU menu_screen_tree_menu_3; 518 GX_PROMPT menu_screen_tree_menu_6; 519 GX_PROMPT menu_screen_tree_menu; 520 GX_ICON menu_screen_icon_10; 521 GX_MENU menu_screen_tree_menu_1; 522 GX_MENU menu_screen_tree_menu_7; 523 GX_PROMPT menu_screen_tree_menu_4; 524 GX_PROMPT menu_screen_tree_menu_2; 525 GX_ICON menu_screen_icon_11; 526 GX_MENU menu_screen_tree_menu_2_1; 527 GX_MENU menu_screen_tree_menu_2_4; 528 GX_PROMPT menu_screen_tree_menu_2_3; 529 GX_PROMPT menu_screen_tree_menu_2_2; 530 GX_ICON menu_screen_icon_5; 531 GX_ICON menu_screen_icon_9; 532 GX_ICON menu_screen_icon_6; 533 GX_MENU menu_screen_tree_menu_9; 534 GX_PROMPT menu_screen_tree_menu_8; 535 GX_ICON menu_screen_icon_12; 536 GX_SCROLLBAR menu_screen_tree_hscroll_1; 537 GX_SCROLLBAR menu_screen_tree_vscroll_1; 538 GX_PROMPT menu_screen_prompt_16; 539 GX_MENU menu_screen_menu_1; 540 GX_PROMPT menu_screen_prompt_10_3; 541 GX_ICON menu_screen_icon_8; 542 GX_PROMPT menu_screen_title_5; 543 GX_TEXT_BUTTON menu_screen_next_button_8; 544 } MENU_SCREEN_CONTROL_BLOCK; 545 546 typedef struct SCROLL_WHEEL_SCREEN_CONTROL_BLOCK_STRUCT 547 { 548 GX_WINDOW_MEMBERS_DECLARE 549 } SCROLL_WHEEL_SCREEN_CONTROL_BLOCK; 550 551 typedef struct ROTATE_SCREEN_CONTROL_BLOCK_STRUCT 552 { 553 GX_WINDOW_MEMBERS_DECLARE 554 GX_TEXT_BUTTON rotate_screen_next_button_6; 555 GX_PROMPT rotate_screen_prompt_9; 556 GX_WINDOW rotate_screen_pixelmap_window; 557 GX_RADIO_BUTTON rotate_screen_radio_button_6; 558 GX_RADIO_BUTTON rotate_screen_radio_button_7; 559 GX_RADIO_BUTTON rotate_screen_radio_button_8; 560 GX_SLIDER rotate_screen_slider_3; 561 GX_PROMPT rotate_screen_prompt_10; 562 GX_CHECKBOX rotate_screen_checkbox; 563 } ROTATE_SCREEN_CONTROL_BLOCK; 564 565 typedef struct SPRITE_SCREEN_CONTROL_BLOCK_STRUCT 566 { 567 GX_WINDOW_MEMBERS_DECLARE 568 GX_WINDOW sprite_screen_apple_window; 569 GX_SLIDER sprite_screen_slider_2; 570 GX_TEXT_BUTTON sprite_screen_next_button_5; 571 GX_SPRITE sprite_screen_sprite; 572 GX_SPRITE sprite_screen_sprite_1; 573 } SPRITE_SCREEN_CONTROL_BLOCK; 574 575 typedef struct SHAPES_SCREEN_CONTROL_BLOCK_STRUCT 576 { 577 GX_WINDOW_MEMBERS_DECLARE 578 GX_WINDOW shapes_screen_graphics_window; 579 GX_TEXT_BUTTON shapes_screen_next_button_4; 580 GX_WINDOW shapes_screen_window; 581 GX_RADIO_BUTTON shapes_screen_radio_button; 582 GX_RADIO_BUTTON shapes_screen_radio_button_1; 583 GX_RADIO_BUTTON shapes_screen_radio_button_2; 584 GX_RADIO_BUTTON shapes_screen_radio_button_3; 585 GX_RADIO_BUTTON shapes_screen_radio_button_4; 586 GX_RADIO_BUTTON shapes_screen_radio_button_5; 587 GX_PROMPT shapes_screen_prompt; 588 GX_CHECKBOX shapes_screen_checkbox_anti_alised; 589 GX_CHECKBOX shapes_screen_checkbox_round_end; 590 GX_CHECKBOX shapes_screen_checkbox_fill; 591 GX_CHECKBOX shapes_screen_checkbox_pixelmap_fill; 592 GX_PROMPT shapes_screen_prompt_5; 593 GX_PROMPT shapes_screen_prompt_6; 594 GX_SLIDER shapes_screen_radius_slider; 595 GX_PROMPT shapes_screen_prompt_7; 596 GX_PROMPT shapes_screen_prompt_8; 597 GX_SLIDER shapes_screen_brush_width_slider; 598 GX_WINDOW shapes_screen_window_1; 599 GX_CHECKBOX shapes_screen_transparent; 600 GX_CHECKBOX shapes_screen_compressed; 601 } SHAPES_SCREEN_CONTROL_BLOCK; 602 603 typedef struct INDICATOR_SCREEN_CONTROL_BLOCK_STRUCT 604 { 605 GX_WINDOW_MEMBERS_DECLARE 606 GX_SLIDER indicator_screen_slider; 607 GX_SLIDER indicator_screen_slider_1; 608 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider; 609 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_1; 610 GX_ICON indicator_screen_icon_1; 611 GX_ICON indicator_screen_icon_2; 612 GX_PROMPT indicator_screen_slider_title; 613 GX_TEXT_BUTTON indicator_screen_next_button_3; 614 GX_PROGRESS_BAR indicator_screen_progress_bar_1; 615 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_2; 616 GX_ICON indicator_screen_icon_3; 617 GX_ICON indicator_screen_icon_4; 618 GX_RADIAL_PROGRESS_BAR indicator_screen_radial_progress_bar_1; 619 } INDICATOR_SCREEN_CONTROL_BLOCK; 620 621 typedef struct TEXT_SCREEN_CONTROL_BLOCK_STRUCT 622 { 623 GX_WINDOW_MEMBERS_DECLARE 624 GX_PROMPT text_screen_prompt_1; 625 GX_PROMPT text_screen_prompt_2; 626 GX_PROMPT text_screen_prompt_3; 627 GX_PIXELMAP_PROMPT text_screen_prompt_4; 628 GX_SINGLE_LINE_TEXT_INPUT text_screen_text_input_1; 629 GX_MULTI_LINE_TEXT_VIEW text_screen_text_view_1; 630 GX_MULTI_LINE_TEXT_INPUT text_screen_text_input_2; 631 GX_TEXT_BUTTON text_screen_next_button_2; 632 GX_NUMERIC_PIXELMAP_PROMPT text_screen_numeric_pixelmap_prompt_1; 633 GX_NUMERIC_PROMPT text_screen_numeric_prompt_1; 634 GX_WINDOW text_screen_window_2; 635 GX_WINDOW text_screen_window_3; 636 } TEXT_SCREEN_CONTROL_BLOCK; 637 638 typedef struct WINDOW_SCREEN_CONTROL_BLOCK_STRUCT 639 { 640 GX_WINDOW_MEMBERS_DECLARE 641 GX_WINDOW window_screen_window_5; 642 GX_WINDOW window_screen_window_6; 643 GX_WINDOW window_screen_window_8; 644 GX_WINDOW window_screen_scroll_frame_1; 645 GX_WINDOW window_screen_window_4; 646 GX_SCROLLBAR window_screen_hscroll_1; 647 GX_SCROLLBAR window_screen_vertical_scroll_1; 648 GX_VERTICAL_LIST window_screen_vertical_list; 649 GX_TEXT_BUTTON window_screen_button_1; 650 GX_TEXT_BUTTON window_screen_button_2; 651 GX_TEXT_BUTTON window_screen_button_3; 652 GX_TEXT_BUTTON window_screen_button_4; 653 GX_PROMPT window_screen_nested_label_1; 654 GX_PROMPT window_screen_frame_label_1; 655 GX_PROMPT window_screen_vlist_label_1; 656 GX_HORIZONTAL_LIST window_screen_horizontal_list_1; 657 GX_ICON_BUTTON window_screen_icon_button_1; 658 GX_ICON_BUTTON window_screen_icon_button_2; 659 GX_ICON_BUTTON window_screen_icon_button_3; 660 GX_ICON_BUTTON window_screen_icon_button_4; 661 GX_ICON_BUTTON window_screen_icon_button_5; 662 GX_PROMPT window_screen_hlist_label_1; 663 GX_TEXT_BUTTON window_screen_next_button_1; 664 GX_DROP_LIST window_screen_drop_list; 665 GX_BUTTON window_screen_button; 666 GX_PROMPT window_screen_hlist_label; 667 } WINDOW_SCREEN_CONTROL_BLOCK; 668 669 typedef struct BUTTON_SCREEN_CONTROL_BLOCK_STRUCT 670 { 671 GX_WINDOW_MEMBERS_DECLARE 672 GX_PROMPT button_screen_title_1; 673 GX_BUTTON button_screen_base_button_1; 674 GX_TEXT_BUTTON button_screen_text_button_1; 675 GX_CHECKBOX button_screen_checkbox1_1; 676 GX_RADIO_BUTTON button_screen_radio_button1_1; 677 GX_PIXELMAP_BUTTON button_screen_pixelmap_button1_1; 678 GX_ICON button_screen_icon; 679 GX_ICON_BUTTON button_screen_icon_button_6; 680 GX_PROMPT button_screen_button_label_1; 681 GX_PROMPT button_screen_radio_label_1; 682 GX_PROMPT button_screen_pixbutton_label_1; 683 GX_PROMPT button_screen_texbutton_label_1; 684 GX_PROMPT button_screen_checkbox_label_1; 685 GX_PROMPT button_screen_iconbutton_label_1; 686 GX_PROMPT button_screen_icon_label_1; 687 GX_TEXT_BUTTON button_screen_next_button; 688 } BUTTON_SCREEN_CONTROL_BLOCK; 689 690 691 /* extern statically defined control blocks */ 692 693 #ifndef GUIX_STUDIO_GENERATED_FILE 694 extern LINE_SCREEN_CONTROL_BLOCK line_screen; 695 extern RESIZE_SCREEN_CONTROL_BLOCK resize_screen; 696 extern IMAGE_CONVERT_SCREEN_CONTROL_BLOCK image_convert_screen; 697 extern MENU_SCREEN_CONTROL_BLOCK menu_screen; 698 extern ROTATE_SCREEN_CONTROL_BLOCK rotate_screen; 699 extern SPRITE_SCREEN_CONTROL_BLOCK sprite_screen; 700 extern SHAPES_SCREEN_CONTROL_BLOCK shapes_screen; 701 extern INDICATOR_SCREEN_CONTROL_BLOCK indicator_screen; 702 extern TEXT_SCREEN_CONTROL_BLOCK text_screen; 703 extern WINDOW_SCREEN_CONTROL_BLOCK window_screen; 704 extern BUTTON_SCREEN_CONTROL_BLOCK button_screen; 705 #endif 706 707 /* Declare event process functions, draw functions, and callback functions */ 708 709 UINT line_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 710 VOID line_win_draw(GX_WINDOW *widget); 711 UINT resize_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 712 VOID resize_window_draw(GX_WINDOW *widget); 713 UINT image_convert_screen_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 714 VOID png_to_4bit_gray_win_draw(GX_WINDOW *widget); 715 VOID jpeg_to_4bit_gray_win_draw(GX_WINDOW *widget); 716 UINT next_button_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 717 UINT scroll_wheel_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 718 UINT day_wheel_value_format(GX_NUMERIC_SCROLL_WHEEL *wheel, INT row, GX_STRING *string); 719 UINT rotate_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 720 VOID pixelmap_draw(GX_WINDOW *widget); 721 UINT sprite_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 722 VOID apple_window_draw(GX_WINDOW *widget); 723 UINT shapesscreen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 724 VOID graphics_draw(GX_WINDOW *widget); 725 VOID numeric_pixelmap_format_func(GX_NUMERIC_PIXELMAP_PROMPT *, INT); 726 VOID format_func(GX_NUMERIC_PROMPT *, INT); 727 UINT window_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 728 VOID drop_list_row_create(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 729 730 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 731 732 733 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 734 { 735 GX_CONST GX_CHAR *name; 736 GX_CONST GX_CHAR *canvas_name; 737 GX_CONST GX_THEME **theme_table; 738 GX_CONST GX_STRING **language_table; 739 USHORT theme_table_size; 740 USHORT language_table_size; 741 UINT string_table_size; 742 UINT x_resolution; 743 UINT y_resolution; 744 GX_DISPLAY *display; 745 GX_CANVAS *canvas; 746 GX_WINDOW_ROOT *root_window; 747 GX_COLOR *canvas_memory; 748 ULONG canvas_memory_size; 749 USHORT rotation_angle; 750 } GX_STUDIO_DISPLAY_INFO; 751 752 753 /* Declare Studio-generated functions for creating top-level widgets */ 754 755 UINT gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 756 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 757 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 758 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 759 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 760 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 761 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 762 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 763 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 764 UINT gx_studio_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 765 UINT gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 766 UINT gx_studio_sprite_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 767 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 768 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 769 UINT gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 770 UINT gx_studio_numeric_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 771 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 772 UINT gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 773 UINT gx_studio_horizontal_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 774 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 775 UINT gx_studio_string_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 776 UINT gx_studio_numeric_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 777 UINT gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 778 UINT gx_studio_multi_line_text_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 779 UINT gx_studio_multi_line_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 780 UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 781 UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 782 UINT gx_studio_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 783 UINT gx_studio_accordion_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 784 UINT gx_studio_tree_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 785 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 786 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 787 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 788 789 /* Determine if a C++ compiler is being used. If so, complete the standard 790 C conditional started above. */ 791 #ifdef __cplusplus 792 } 793 #endif 794 795 #endif /* sentry */ 796