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_1BPP_SPECIFICATIONS_H_ 14 #define _ALL_WIDGETS_1BPP_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_RESIZE_SCREEN 1 26 #define ID_SLIDER_WIDTH 2 27 #define ID_WIDTH_DISPLAY 3 28 #define ID_RADIO_FOOT 4 29 #define ID_RADIO_FISH 5 30 #define ID_RADIO_FOOT_ALPHA 6 31 #define ID_SLIDER_HEIGHT 7 32 #define ID_HEIGHT_DISPLAY 8 33 #define IDB_NEXT 9 34 #define ID_IMAGE_CONVERT_SCREEN 10 35 #define ID_ALPHA 11 36 #define ID_COMPRESSED 12 37 #define ID_DITHER 13 38 #define ID_MENU_SCREEN 14 39 #define ID_SCROLL_WHEEL_SCREEN 15 40 #define ID_DAY_WHEEL 16 41 #define ID_MONTH_WHEEL 17 42 #define ID_YEAR_WHEEL 18 43 #define ID_DAY_SELECT 19 44 #define ID_DAY_INPUT 20 45 #define ID_PIC_SCREEN 21 46 #define ID_PIC_WINDOW 22 47 #define ID_COMPRESS 23 48 #define ID_TRANSPARENCY 24 49 #define ID_ROTATE_SCREEN 25 50 #define ID_RADIO_APPLE 26 51 #define ID_SLIDER_ANGLE 27 52 #define ID_ANGLE_DISPLAY 28 53 #define ID_DIRECT_ROTATE 29 54 #define ID_SPRITE_SCREEN 30 55 #define ID_ALPHA_SLIDER 31 56 #define ID_BIRD_SPRITE 32 57 #define ID_SHAPES_SCREEN 33 58 #define ID_CIRCLE 34 59 #define ID_ELLIPSE 35 60 #define ID_ARC 36 61 #define ID_PIE 37 62 #define ID_RECTANGLE 38 63 #define ID_POLYGON 39 64 #define ID_ANTI_ALIASED 40 65 #define ID_ROUND_END 41 66 #define ID_SOLID_FILL 42 67 #define ID_PIXELMAP_FILL 43 68 #define ID_RADIUS_SLIDER 44 69 #define ID_RADIUS_PROMPT 45 70 #define ID_BRUSH_WIDTH_PROMPT 46 71 #define ID_BRUSH_WIDTH 47 72 #define ID_TRANSPARENT 48 73 #define ID_INDICATOR_SCREEN 49 74 #define ID_SLIDER_HORIZONTAL 50 75 #define ID_SLIDER_1 51 76 #define ID_PIXELMAP_SLIDER_H 52 77 #define ID_PIXELMAP_SLIDER1 53 78 #define ID_TEXT_SCREEN 54 79 #define ID_PROMPT_1 55 80 #define ID_PROMPT_2 56 81 #define ID_PROMPT_3 57 82 #define ID_PROMPT_4 58 83 #define ID_WINDOW_SCREEN 59 84 #define ID_HORIZONTAL_SCROLLBAR 60 85 #define ID_VERTICAL_SCROLLBAR 61 86 #define ID_VERTICAL_LIST 62 87 #define ID_DROP_LIST 63 88 #define ID_BUTTON_SCREEN 64 89 #define ID_TEXT_BUTTON 65 90 #define ID_CHECKBOX 66 91 #define ID_RADIO_BUTTON 67 92 #define ID_PIXELMAP_BUTTON 68 93 #define ID_ICON 69 94 #define ID_ICON_BUTTON 70 95 #define ID_MULTI_LINE_TEXT_BUTTON 71 96 97 98 /* Define animation ids */ 99 100 #define GX_NEXT_ANIMATION_ID 1 101 102 103 /* Define user event ids */ 104 105 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 106 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_RESOURCE_ID string_id; 399 GX_RESOURCE_ID font_id; 400 GX_RESOURCE_ID normal_text_color_id; 401 GX_RESOURCE_ID selected_text_color_id; 402 GX_RESOURCE_ID disabled_text_color_id; 403 GX_RESOURCE_ID left_map_id; 404 GX_RESOURCE_ID fill_map_id; 405 GX_RESOURCE_ID right_map_id; 406 GX_RESOURCE_ID selected_left_map_id; 407 GX_RESOURCE_ID selected_fill_map_id; 408 GX_RESOURCE_ID selected_right_map_id; 409 GX_VALUE text_x_offset; 410 GX_VALUE text_y_offset; 411 GX_VALUE list_total_count; 412 } GX_MENU_PROPERTIES; 413 414 typedef struct 415 { 416 GX_RESOURCE_ID expand_map_id; 417 GX_RESOURCE_ID collapse_map_id; 418 GX_RESOURCE_ID root_line_color_id; 419 GX_VALUE indentation; 420 } GX_TREE_VIEW_PROPERTIES; 421 422 423 /* Declare top-level control blocks */ 424 425 typedef struct RESIZE_SCREEN_CONTROL_BLOCK_STRUCT 426 { 427 GX_WINDOW_MEMBERS_DECLARE 428 GX_PROMPT resize_screen_prompt_16; 429 GX_SLIDER resize_screen_slider_angle; 430 GX_PROMPT resize_screen_prompt_angle; 431 GX_WINDOW resize_screen_resize_window; 432 GX_RADIO_BUTTON resize_screen_radio_button_9; 433 GX_RADIO_BUTTON resize_screen_radio_button_10; 434 GX_RADIO_BUTTON resize_screen_radio_button_11; 435 GX_PROMPT resize_screen_prompt_17_3; 436 GX_PROMPT resize_screen_prompt_18; 437 GX_SLIDER resize_screen_slider_angle_1; 438 GX_PROMPT resize_screen_prompt_angle_1; 439 GX_TEXT_BUTTON resize_screen_next_button_10; 440 } RESIZE_SCREEN_CONTROL_BLOCK; 441 442 typedef struct IMAGE_CONVERT_SCREEN_CONTROL_BLOCK_STRUCT 443 { 444 GX_WINDOW_MEMBERS_DECLARE 445 GX_WINDOW image_convert_screen_png_to_1bpp_win; 446 GX_PROMPT image_convert_screen_prompt_17; 447 GX_WINDOW image_convert_screen_jpeg_to_1bpp_win; 448 GX_PROMPT image_convert_screen_prompt_17_1; 449 GX_PROMPT image_convert_screen_prompt_17_2; 450 GX_TEXT_BUTTON image_convert_screen_next_button_11; 451 GX_CHECKBOX image_convert_screen_checkbox_1; 452 GX_CHECKBOX image_convert_screen_checkbox_2; 453 GX_CHECKBOX image_convert_screen_checkbox_3; 454 } IMAGE_CONVERT_SCREEN_CONTROL_BLOCK; 455 456 typedef struct MENU_SCREEN_CONTROL_BLOCK_STRUCT 457 { 458 GX_WINDOW_MEMBERS_DECLARE 459 GX_PROMPT menu_screen_title_3; 460 GX_PROMPT menu_screen_title_4; 461 GX_ACCORDION_MENU menu_screen_one_level_accordion_2; 462 GX_MENU menu_screen_ola_menu_4; 463 GX_PROMPT menu_screen_prompt_25; 464 GX_NUMERIC_PROMPT menu_screen_prompt_26; 465 GX_MENU menu_screen_ola_menu; 466 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_3; 467 GX_TEXT_BUTTON menu_screen_ola_menu_1; 468 GX_MENU menu_screen_ola_menu_2; 469 GX_MENU menu_screen_item_1; 470 GX_MENU menu_screen_item_2; 471 GX_ACCORDION_MENU menu_screen_one_level_accordion_1; 472 GX_MENU menu_screen_ola_2_menu_3; 473 GX_PROMPT menu_screen_prompt_14_1; 474 GX_ACCORDION_MENU menu_screen_ola_2_menu; 475 GX_MENU menu_screen_ola_2_menu_1; 476 GX_PIXELMAP_PROMPT menu_screen_prompt_15_1; 477 GX_MENU menu_screen_ola_2_menu_2; 478 GX_NUMERIC_PIXELMAP_PROMPT menu_screen_numeric_pixelmap_prompt_1; 479 GX_MENU menu_screen_ola_2_menu_5; 480 GX_PROMPT menu_screen_prompt_10_3; 481 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_2; 482 GX_ACCORDION_MENU menu_screen_multi_level_accordion; 483 GX_MENU menu_screen_mla_menu_3; 484 GX_ACCORDION_MENU menu_screen_mla_menu_1_accordion; 485 GX_MENU menu_screen_mla_menu; 486 GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_4; 487 GX_MENU menu_screen_mla_menu_1; 488 GX_PROMPT menu_screen_prompt_15; 489 GX_MENU menu_screen_mla_menu_6; 490 GX_ACCORDION_MENU menu_screen_mla_menu_2_accordion; 491 GX_MENU menu_screen_mla_menu_4; 492 GX_ACCORDION_MENU menu_screen_mla_menu_2_1_accordion; 493 GX_MENU menu_screen_mla_menu_2; 494 GX_PROMPT menu_screen_prompt_11_1; 495 GX_MENU menu_screen_mla_menu_2_1; 496 GX_PROMPT menu_screen_prompt_12; 497 GX_MENU menu_screen_mla_menu_2_4; 498 GX_ACCORDION_MENU menu_screen_mla_menu_2_2_accordion; 499 GX_MENU menu_screen_mla_menu_2_3; 500 GX_PROMPT menu_screen_prompt_13; 501 GX_MENU menu_screen_mla_menu_2_2; 502 GX_PROMPT menu_screen_prompt_14; 503 GX_MENU menu_screen_mla_menu_7; 504 GX_PROMPT menu_screen_mla_menu_3_item_2; 505 GX_PROMPT menu_screen_mla_menu_3_item; 506 GX_ICON menu_screen_mla_menu_3_icon; 507 GX_PROMPT menu_screen_title_5; 508 GX_TREE_VIEW menu_screen_tree_view; 509 GX_MENU menu_screen_tree_menu_6; 510 GX_PROMPT menu_screen_tree_menu; 511 GX_PROMPT menu_screen_tree_menu_1; 512 GX_ICON menu_screen_icon_10_1; 513 GX_MENU menu_screen_tree_menu_7; 514 GX_MENU menu_screen_tree_menu_4; 515 GX_PROMPT menu_screen_tree_menu_2; 516 GX_PROMPT menu_screen_tree_menu_2_1; 517 GX_ICON menu_screen_icon_11_1; 518 GX_MENU menu_screen_tree_menu_2_4; 519 GX_MENU menu_screen_tree_menu_2_3; 520 GX_PROMPT menu_screen_tree_menu_2_2; 521 GX_PROMPT menu_screen_tree_menu_2_2_1; 522 GX_ICON menu_screen_icon_9; 523 GX_ICON menu_screen_icon_6; 524 GX_ICON menu_screen_icon_8; 525 GX_MENU menu_screen_tree_menu_8; 526 GX_PROMPT menu_screen_tree_menu_5; 527 GX_ICON menu_screen_icon_12_1; 528 GX_SCROLLBAR menu_screen_tree_hscroll; 529 GX_SCROLLBAR menu_screen_tree_vscroll; 530 GX_PROMPT menu_screen_prompt_16_1; 531 GX_MENU menu_screen_menu; 532 GX_PROMPT menu_screen_prompt_10_2; 533 GX_ICON menu_screen_icon_7; 534 GX_PROMPT menu_screen_title; 535 GX_TEXT_BUTTON menu_screen_next_button_9; 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 PIC_SCREEN_CONTROL_BLOCK_STRUCT 544 { 545 GX_WINDOW_MEMBERS_DECLARE 546 GX_WINDOW pic_screen_pic_window; 547 GX_CHECKBOX pic_screen_checkbox_compress; 548 GX_CHECKBOX pic_screen_checkbox_transparent; 549 GX_TEXT_BUTTON pic_screen_next_button_7; 550 } PIC_SCREEN_CONTROL_BLOCK; 551 552 typedef struct ROTATE_SCREEN_CONTROL_BLOCK_STRUCT 553 { 554 GX_WINDOW_MEMBERS_DECLARE 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 GX_TEXT_BUTTON rotate_screen_next_button_6; 564 } ROTATE_SCREEN_CONTROL_BLOCK; 565 566 typedef struct SPRITE_SCREEN_CONTROL_BLOCK_STRUCT 567 { 568 GX_WINDOW_MEMBERS_DECLARE 569 GX_WINDOW sprite_screen_apple_window; 570 GX_SLIDER sprite_screen_slider_2; 571 GX_SPRITE sprite_screen_sprite; 572 GX_TEXT_BUTTON sprite_screen_next_button_5; 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_WINDOW shapes_screen_window; 580 GX_RADIO_BUTTON shapes_screen_radio_button; 581 GX_RADIO_BUTTON shapes_screen_radio_button_1; 582 GX_RADIO_BUTTON shapes_screen_radio_button_2; 583 GX_RADIO_BUTTON shapes_screen_radio_button_3; 584 GX_RADIO_BUTTON shapes_screen_radio_button_4; 585 GX_RADIO_BUTTON shapes_screen_radio_button_5; 586 GX_PROMPT shapes_screen_prompt; 587 GX_CHECKBOX shapes_screen_checkbox_anti_alised; 588 GX_CHECKBOX shapes_screen_checkbox_round_end; 589 GX_CHECKBOX shapes_screen_checkbox_fill; 590 GX_CHECKBOX shapes_screen_checkbox_pixelmap_fill; 591 GX_PROMPT shapes_screen_prompt_5; 592 GX_PROMPT shapes_screen_prompt_6; 593 GX_SLIDER shapes_screen_radius_slider; 594 GX_PROMPT shapes_screen_prompt_7; 595 GX_PROMPT shapes_screen_prompt_8; 596 GX_SLIDER shapes_screen_brush_width_slider; 597 GX_WINDOW shapes_screen_window_1; 598 GX_CHECKBOX shapes_screen_transparent; 599 GX_CHECKBOX shapes_screen_compressed; 600 GX_TEXT_BUTTON shapes_screen_next_button_4; 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_PROGRESS_BAR indicator_screen_progress_bar_1; 614 GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_2; 615 GX_ICON indicator_screen_icon_3; 616 GX_ICON indicator_screen_icon_4; 617 GX_RADIAL_PROGRESS_BAR indicator_screen_radial_progress_bar_1; 618 GX_TEXT_BUTTON indicator_screen_next_button_3; 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_NUMERIC_PIXELMAP_PROMPT text_screen_numeric_pixelmap_prompt; 632 GX_NUMERIC_PROMPT text_screen_numeric_prompt; 633 GX_TEXT_BUTTON text_screen_next_button_2; 634 } TEXT_SCREEN_CONTROL_BLOCK; 635 636 typedef struct WINDOW_SCREEN_CONTROL_BLOCK_STRUCT 637 { 638 GX_WINDOW_MEMBERS_DECLARE 639 GX_WINDOW window_screen_window_5; 640 GX_WINDOW window_screen_window_6; 641 GX_WINDOW window_screen_window_8; 642 GX_WINDOW window_screen_scroll_frame_1; 643 GX_WINDOW window_screen_window_4; 644 GX_SCROLLBAR window_screen_hscroll_1; 645 GX_SCROLLBAR window_screen_vertical_scroll_1; 646 GX_VERTICAL_LIST window_screen_vertical_list; 647 GX_TEXT_BUTTON window_screen_button_1; 648 GX_TEXT_BUTTON window_screen_button_2; 649 GX_TEXT_BUTTON window_screen_button_3; 650 GX_TEXT_BUTTON window_screen_button_4; 651 GX_PROMPT window_screen_nested_label_1; 652 GX_PROMPT window_screen_frame_label_1; 653 GX_PROMPT window_screen_vlist_label_1; 654 GX_HORIZONTAL_LIST window_screen_horizontal_list_1; 655 GX_ICON_BUTTON window_screen_icon_button_1; 656 GX_ICON_BUTTON window_screen_icon_button_2; 657 GX_ICON_BUTTON window_screen_icon_button_3; 658 GX_ICON_BUTTON window_screen_icon_button_4; 659 GX_ICON_BUTTON window_screen_icon_button_5; 660 GX_PROMPT window_screen_hlist_label_1; 661 GX_DROP_LIST window_screen_drop_list; 662 GX_BUTTON window_screen_button; 663 GX_PROMPT window_screen_hlist_label; 664 GX_LINE_CHART window_screen_line_chart_1; 665 GX_TEXT_BUTTON window_screen_next_button_1; 666 } WINDOW_SCREEN_CONTROL_BLOCK; 667 668 typedef struct BUTTON_SCREEN_CONTROL_BLOCK_STRUCT 669 { 670 GX_WINDOW_MEMBERS_DECLARE 671 GX_PROMPT button_screen_title_1; 672 GX_BUTTON button_screen_base_button_1; 673 GX_TEXT_BUTTON button_screen_text_button_1; 674 GX_CHECKBOX button_screen_checkbox1_1; 675 GX_RADIO_BUTTON button_screen_radio_button1_1; 676 GX_PIXELMAP_BUTTON button_screen_pixelmap_button1_1; 677 GX_ICON button_screen_icon; 678 GX_ICON_BUTTON button_screen_icon_button_6; 679 GX_PROMPT button_screen_button_label_1; 680 GX_PROMPT button_screen_radio_label_1; 681 GX_PROMPT button_screen_pixbutton_label_1; 682 GX_PROMPT button_screen_texbutton_label_1; 683 GX_PROMPT button_screen_checkbox_label_1; 684 GX_PROMPT button_screen_iconbutton_label_1; 685 GX_PROMPT button_screen_icon_label_1; 686 GX_TEXT_BUTTON button_screen_next_button; 687 GX_MULTI_LINE_TEXT_BUTTON button_screen_multi_line_button; 688 GX_TEXT_BUTTON button_screen_text_button; 689 GX_MULTI_LINE_TEXT_BUTTON button_screen_multi_line_button_1; 690 } BUTTON_SCREEN_CONTROL_BLOCK; 691 692 693 /* extern statically defined control blocks */ 694 695 #ifndef GUIX_STUDIO_GENERATED_FILE 696 extern RESIZE_SCREEN_CONTROL_BLOCK resize_screen; 697 extern IMAGE_CONVERT_SCREEN_CONTROL_BLOCK image_convert_screen; 698 extern MENU_SCREEN_CONTROL_BLOCK menu_screen; 699 extern PIC_SCREEN_CONTROL_BLOCK pic_screen; 700 extern ROTATE_SCREEN_CONTROL_BLOCK rotate_screen; 701 extern SPRITE_SCREEN_CONTROL_BLOCK sprite_screen; 702 extern SHAPES_SCREEN_CONTROL_BLOCK shapes_screen; 703 extern INDICATOR_SCREEN_CONTROL_BLOCK indicator_screen; 704 extern TEXT_SCREEN_CONTROL_BLOCK text_screen; 705 extern WINDOW_SCREEN_CONTROL_BLOCK window_screen; 706 extern BUTTON_SCREEN_CONTROL_BLOCK button_screen; 707 #endif 708 709 /* Declare event process functions, draw functions, and callback functions */ 710 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_1bpp_win_draw(GX_WINDOW *widget); 715 VOID jpeg_to_1bpp_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 pic_screen_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 720 UINT rotate_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 721 VOID pixelmap_draw(GX_WINDOW *widget); 722 UINT sprite_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 723 VOID apple_window_draw(GX_WINDOW *widget); 724 UINT shapesscreen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 725 VOID graphics_draw(GX_WINDOW *widget); 726 VOID numeric_pixelmap_format_func(GX_NUMERIC_PIXELMAP_PROMPT *, INT); 727 VOID format_func(GX_NUMERIC_PROMPT *, INT); 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_multi_line_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 758 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 759 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 760 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 761 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 762 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 763 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 764 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 765 UINT gx_studio_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 766 UINT gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 767 UINT gx_studio_sprite_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 768 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 769 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 770 UINT gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 771 UINT gx_studio_numeric_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 772 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 773 UINT gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 774 UINT gx_studio_horizontal_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 775 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 776 UINT gx_studio_string_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 777 UINT gx_studio_numeric_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 778 UINT gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 779 UINT gx_studio_multi_line_text_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 780 UINT gx_studio_multi_line_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 781 UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 782 UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 783 UINT gx_studio_line_chart_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 784 UINT gx_studio_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 785 UINT gx_studio_accordion_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 786 UINT gx_studio_tree_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 787 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 788 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 789 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 790 791 /* Determine if a C++ compiler is being used. If so, complete the standard 792 C conditional started above. */ 793 #ifdef __cplusplus 794 } 795 #endif 796 797 #endif /* sentry */ 798