/*******************************************************************************/ /* This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this */ /* file by hand. Modifications to this file should only be made by running */ /* the Azure RTOS GUIX Studio application and re-generating the application */ /* specification file(s). For more information please refer to the Azure RTOS */ /* GUIX Studio User Guide, or visit our web site at azure.com/rtos */ /* */ /* GUIX Studio Revision 6.2.0.1 */ /* Date (dd.mm.yyyy): 31.10.2022 Time (hh:mm): 14:10 */ /*******************************************************************************/ #define GUIX_STUDIO_GENERATED_FILE #include #include "non_linear_animation_resources.h" #include "non_linear_animation_specifications.h" static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); MAIN_SCREEN_CONTROL_BLOCK main_screen; GX_DISPLAY Primary_control_block; GX_WINDOW_ROOT Primary_root_window; GX_CANVAS Primary_canvas_control_block; ULONG Primary_canvas_memory[320000]; extern GX_CONST GX_THEME *Primary_theme_table[]; extern GX_CONST GX_STRING *Primary_language_table[]; GX_STUDIO_DISPLAY_INFO non_linear_animation_display_table[1] = { { "Primary", "Primary_canvas", Primary_theme_table, Primary_language_table, PRIMARY_THEME_TABLE_SIZE, PRIMARY_LANGUAGE_TABLE_SIZE, PRIMARY_STRING_TABLE_SIZE, 800, /* x resolution */ 400, /* y resolution */ &Primary_control_block, &Primary_canvas_control_block, &Primary_root_window, Primary_canvas_memory, /* canvas memory area */ 1280000, /* canvas memory size in bytes */ 0 /* rotation angle */ } }; UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_TEXT_BUTTON *button = (GX_TEXT_BUTTON *) control_block; GX_TEXT_BUTTON_PROPERTIES *props = (GX_TEXT_BUTTON_PROPERTIES *) info->properties; status = gx_text_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { gx_text_button_font_set(button, props->font_id); #if defined(GUIX_5_4_0_COMPATIBILITY) gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id); #else gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id); #endif } return status; } UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_RADIO_BUTTON *button = (GX_RADIO_BUTTON *) control_block; GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button; GX_RADIO_BUTTON_PROPERTIES *props = (GX_RADIO_BUTTON_PROPERTIES *) info->properties; status = gx_radio_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { gx_text_button_font_set(text_button, props->font_id); #if defined(GUIX_5_4_0_COMPATIBILITY) gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id); #else gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id); #endif if (props->off_pixelmap_id || props->on_pixelmap_id || props->off_disabled_pixelmap_id || props->on_disabled_pixelmap_id) { gx_radio_button_pixelmap_set(button, props->off_pixelmap_id, props->on_pixelmap_id, props->off_disabled_pixelmap_id, props->on_disabled_pixelmap_id); } } return status; } UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_ICON_BUTTON *button = (GX_ICON_BUTTON *) control_block; GX_ICON_BUTTON_PROPERTIES *props = (GX_ICON_BUTTON_PROPERTIES *) info->properties; status = gx_icon_button_create(button, info->widget_name, parent, props->pixelmap_id, info->style, info->widget_id, &info->size); return status; } UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_PROMPT *prompt = (GX_PROMPT *) control_block; GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties; status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { gx_prompt_font_set(prompt, props->font_id); #if defined(GUIX_5_4_0_COMPATIBILITY) gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id); #else gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id); #endif } return status; } UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_WINDOW *window = (GX_WINDOW *) control_block; GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties; status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { if (props->wallpaper_id) { gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER); } } return status; } UINT gx_studio_line_chart_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_LINE_CHART *chart = (GX_LINE_CHART *) control_block; GX_LINE_CHART_INFO *chart_info = (GX_LINE_CHART_INFO *) info->properties; status = gx_line_chart_create(chart, info->widget_name, parent, chart_info, info->style, info->widget_id, &info->size); return status; } GX_WINDOW_PROPERTIES main_screen_properties = { 0 /* wallpaper pixelmap id */ }; GX_PROMPT_PROPERTIES main_screen_title_properties = { GX_STRING_ID_STRING_3, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_SELECTED_FILL, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_SELECTED_FILL /* disabled text color */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_properties = { GX_STRING_ID_STRING_86, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_1_properties = { GX_STRING_ID_STRING_84, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_2_properties = { GX_STRING_ID_STRING_85, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_3_properties = { GX_STRING_ID_STRING_87, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_4_properties = { GX_STRING_ID_STRING_88, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_5_properties = { GX_STRING_ID_STRING_90, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_6_properties = { GX_STRING_ID_STRING_89, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_7_properties = { GX_STRING_ID_STRING_91, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_8_properties = { GX_STRING_ID_STRING_92, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_9_properties = { GX_STRING_ID_STRING_93, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_11_properties = { GX_STRING_ID_STRING_94, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_12_properties = { GX_STRING_ID_STRING_95, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_13_properties = { GX_STRING_ID_STRING_96, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_14_properties = { GX_STRING_ID_STRING_97, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_15_properties = { GX_STRING_ID_STRING_98, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_16_properties = { GX_STRING_ID_STRING_99, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_17_properties = { GX_STRING_ID_STRING_100, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_18_properties = { GX_STRING_ID_STRING_101, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_19_properties = { GX_STRING_ID_STRING_102, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_21_properties = { GX_STRING_ID_STRING_103, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_22_properties = { GX_STRING_ID_STRING_104, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_23_properties = { GX_STRING_ID_STRING_105, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_24_properties = { GX_STRING_ID_STRING_106, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_25_properties = { GX_STRING_ID_STRING_107, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_26_properties = { GX_STRING_ID_STRING_108, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_27_properties = { GX_STRING_ID_STRING_109, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_28_properties = { GX_STRING_ID_STRING_110, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_29_properties = { GX_STRING_ID_STRING_111, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_21_1_properties = { GX_STRING_ID_STRING_112, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_22_1_properties = { GX_STRING_ID_STRING_115, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_RADIO_BUTTON_PROPERTIES main_screen_radio_button_23_1_properties = { GX_STRING_ID_STRING_116, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT, /* disabled text color */ 0, /* off pixelmap id */ 0, /* on pixelmap id */ 0, /* off disabled pixelmap id */ 0 /* on disabled pixelmap id */ }; GX_TEXT_BUTTON_PROPERTIES main_screen_button_properties = { GX_STRING_ID_STRING_2, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_ICON_BUTTON_PROPERTIES main_screen_icon_button_properties = { 0 /* pixelmap id */ }; GX_LINE_CHART_INFO main_screen_line_chart_properties = { 0, /* min data value */ 256, /* max data value */ GX_NULL, /* data pointer */ 10, /* left margin */ 52, /* top margin */ 10, /* right margin */ 50, /* bottom margin */ 41, /* max data items */ 0, /* active data items */ 3, /* axis line width */ 1, /* data line width */ GX_COLOR_ID_DEFAULT_BORDER, /* axis line color */ GX_COLOR_ID_SHINE /* data line color */ }; GX_CONST GX_STUDIO_WIDGET main_screen_line_chart_define = { "line_chart", GX_TYPE_LINE_CHART, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_LINE_CHART), /* control block size */ GX_COLOR_ID_TEXT, /* normal color id */ GX_COLOR_ID_TEXT, /* selected color id */ GX_COLOR_ID_TEXT, /* disabled color id */ gx_studio_line_chart_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {528, 118, 783, 389}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_line_chart), /* control block */ (void *) &main_screen_line_chart_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_icon_button_define = { "icon_button", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_ORANGE, /* normal color id */ GX_COLOR_ID_ORANGE, /* selected color id */ GX_COLOR_ID_ORANGE, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {492, 341, 522, 357}, /* widget size */ &main_screen_line_chart_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_icon_button), /* control block */ (void *) &main_screen_icon_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_button_define = { "button", GX_TYPE_TEXT_BUTTON, /* widget type */ ID_ANIMATION_START, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {699, 79, 782, 110}, /* widget size */ &main_screen_icon_button_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_button), /* control block */ (void *) &main_screen_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_23_1_define = { "radio_button_23_1", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_SINE_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {344, 176, 480, 199}, /* widget size */ &main_screen_button_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_23_1), /* control block */ (void *) &main_screen_radio_button_23_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_22_1_define = { "radio_button_22_1", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_SINE_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {344, 147, 480, 170}, /* widget size */ &main_screen_radio_button_23_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_22_1), /* control block */ (void *) &main_screen_radio_button_22_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_21_1_define = { "radio_button_21_1", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_SINE_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {344, 118, 455, 141}, /* widget size */ &main_screen_radio_button_22_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_21_1), /* control block */ (void *) &main_screen_radio_button_21_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_29_define = { "radio_button_29", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUINT_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {344, 89, 494, 112}, /* widget size */ &main_screen_radio_button_21_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_29), /* control block */ (void *) &main_screen_radio_button_29_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_28_define = { "radio_button_28", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUINT_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {344, 60, 476, 83}, /* widget size */ &main_screen_radio_button_29_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_28), /* control block */ (void *) &main_screen_radio_button_28_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_27_define = { "radio_button_27", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUINT_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {344, 31, 465, 54}, /* widget size */ &main_screen_radio_button_28_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_27), /* control block */ (void *) &main_screen_radio_button_27_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_26_define = { "radio_button_26", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUART_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 350, 329, 373}, /* widget size */ &main_screen_radio_button_27_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_26), /* control block */ (void *) &main_screen_radio_button_26_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_25_define = { "radio_button_25", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUART_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 321, 319, 344}, /* widget size */ &main_screen_radio_button_26_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_25), /* control block */ (void *) &main_screen_radio_button_25_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_24_define = { "radio_button_24", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUART_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 292, 304, 315}, /* widget size */ &main_screen_radio_button_25_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_24), /* control block */ (void *) &main_screen_radio_button_24_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_23_define = { "radio_button_23", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUAD_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 263, 335, 286}, /* widget size */ &main_screen_radio_button_24_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_23), /* control block */ (void *) &main_screen_radio_button_23_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_22_define = { "radio_button_22", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUAD_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 234, 322, 257}, /* widget size */ &main_screen_radio_button_23_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_22), /* control block */ (void *) &main_screen_radio_button_22_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_21_define = { "radio_button_21", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_QUAD_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 205, 297, 228}, /* widget size */ &main_screen_radio_button_22_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_21), /* control block */ (void *) &main_screen_radio_button_21_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_19_define = { "radio_button_19", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_EXPO_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 176, 329, 199}, /* widget size */ &main_screen_radio_button_21_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_19), /* control block */ (void *) &main_screen_radio_button_19_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_18_define = { "radio_button_18", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_EXPO_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 147, 318, 170}, /* widget size */ &main_screen_radio_button_19_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_18), /* control block */ (void *) &main_screen_radio_button_18_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_17_define = { "radio_button_17", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_EXPO_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 118, 297, 141}, /* widget size */ &main_screen_radio_button_18_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_17), /* control block */ (void *) &main_screen_radio_button_17_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_16_define = { "radio_button_16", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_ELASTIC_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 89, 341, 112}, /* widget size */ &main_screen_radio_button_17_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_16), /* control block */ (void *) &main_screen_radio_button_16_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_15_define = { "radio_button_15", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_ELASTIC_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 60, 322, 83}, /* widget size */ &main_screen_radio_button_16_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_15), /* control block */ (void *) &main_screen_radio_button_15_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_14_define = { "radio_button_14", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_ELASTIC_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {186, 31, 312, 54}, /* widget size */ &main_screen_radio_button_15_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_14), /* control block */ (void *) &main_screen_radio_button_14_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_13_define = { "radio_button_13", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_CUBIC_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 351, 161, 374}, /* widget size */ &main_screen_radio_button_14_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_13), /* control block */ (void *) &main_screen_radio_button_13_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_12_define = { "radio_button_12", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_CUBIC_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 322, 156, 345}, /* widget size */ &main_screen_radio_button_13_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_12), /* control block */ (void *) &main_screen_radio_button_12_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_11_define = { "radio_button_11", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_CUBIC_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 293, 137, 316}, /* widget size */ &main_screen_radio_button_12_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_11), /* control block */ (void *) &main_screen_radio_button_11_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_9_define = { "radio_button_9", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_CIRC_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 264, 157, 287}, /* widget size */ &main_screen_radio_button_11_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_9), /* control block */ (void *) &main_screen_radio_button_9_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_8_define = { "radio_button_8", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_CIRC_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 235, 139, 258}, /* widget size */ &main_screen_radio_button_9_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_8), /* control block */ (void *) &main_screen_radio_button_8_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_7_define = { "radio_button_7", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_CIRC_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 206, 131, 229}, /* widget size */ &main_screen_radio_button_8_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_7), /* control block */ (void *) &main_screen_radio_button_7_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_6_define = { "radio_button_6", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_BOUNCE_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 177, 180, 200}, /* widget size */ &main_screen_radio_button_7_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_6), /* control block */ (void *) &main_screen_radio_button_6_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_5_define = { "radio_button_5", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_BOUNCE_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 148, 184, 171}, /* widget size */ &main_screen_radio_button_6_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_5), /* control block */ (void *) &main_screen_radio_button_5_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_4_define = { "radio_button_4", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_BOUNCE_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 119, 157, 142}, /* widget size */ &main_screen_radio_button_5_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_4), /* control block */ (void *) &main_screen_radio_button_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_3_define = { "radio_button_3", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_BACK_EASE_IN_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 90, 162, 113}, /* widget size */ &main_screen_radio_button_4_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_3), /* control block */ (void *) &main_screen_radio_button_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_2_define = { "radio_button_2", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_BACK_EASE_OUT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 61, 146, 84}, /* widget size */ &main_screen_radio_button_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_2), /* control block */ (void *) &main_screen_radio_button_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_1_define = { "radio_button_1", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_BACK_EASE_IN, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 32, 147, 55}, /* widget size */ &main_screen_radio_button_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button_1), /* control block */ (void *) &main_screen_radio_button_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_radio_button_define = { "radio_button", GX_TYPE_RADIO_BUTTON, /* widget type */ ID_LINEAR, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_RADIO_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_radio_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {344, 205, 455, 228}, /* widget size */ &main_screen_radio_button_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_radio_button), /* control block */ (void *) &main_screen_radio_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_title_define = { "title", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ 0, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {607, 17, 782, 48}, /* widget size */ &main_screen_radio_button_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_title), /* control block */ (void *) &main_screen_title_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET main_screen_define = { "main_screen", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THICK, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(MAIN_SCREEN_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_SLIDER_GROOVE_TOP, /* normal color id */ GX_COLOR_ID_SLIDER_GROOVE_TOP, /* selected color id */ GX_COLOR_ID_SLIDER_GROOVE_TOP, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ (UINT (*)(GX_WIDGET *, GX_EVENT *)) main_screen_event_process, /* event function override */ {0, 0, 799, 399}, /* widget size */ GX_NULL, /* next widget */ &main_screen_title_define, /* child widget */ 0, /* control block */ (void *) &main_screen_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET_ENTRY non_linear_animation_widget_table[] = { { &main_screen_define, (GX_WIDGET *) &main_screen }, {GX_NULL, GX_NULL} }; static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent) { UINT status = GX_SUCCESS; GX_WIDGET *widget = GX_NULL; GX_VALUE list_count = 0; GX_VALUE list_total_count = 0; if(parent && (parent->gx_widget_type == GX_TYPE_MENU)) { list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count; } while(definition && status == GX_SUCCESS) { if (definition->create_function) { if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED) { status = gx_widget_allocate(&widget, definition->control_block_size); if (status != GX_SUCCESS) { return GX_NULL; } } else { if (control == GX_NULL) { return GX_NULL; } widget = (GX_WIDGET *) (control + definition->control_block_offset); } status = definition->create_function(definition, widget, parent); if(list_count < list_total_count) { gx_menu_insert((GX_MENU *)parent, widget); ((GX_MENU *)parent)->gx_menu_list_total_count--; list_count++; } if (status == GX_SUCCESS) { if (definition->widget_type != GX_TYPE_TEMPLATE) { #if defined(GUIX_5_4_0_COMPATIBILITY) gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id); #else gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id); #endif } if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS)) { gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS); } if (definition->draw_function) { gx_widget_draw_set(widget, definition->draw_function); } if (definition->event_function) { gx_widget_event_process_set(widget, definition->event_function); } #if defined(GX_WIDGET_USER_DATA) widget->gx_widget_user_data = definition->user_data; #endif if (definition->child_widget) { gx_studio_nested_widget_create(control, definition->child_widget, widget); } } definition = definition->next_widget; } } return widget; } GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent) { GX_WIDGET *widget; widget = gx_studio_nested_widget_create(control, definition, GX_NULL); if (parent && widget) { gx_widget_attach(parent, widget); } return widget; } UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget) { UINT status = GX_FAILURE; GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = non_linear_animation_widget_table; GX_WIDGET *widget = GX_NULL; while(entry->widget_information) { if (!strcmp(name, entry->widget_information->widget_name)) { widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent); if (widget) { status = GX_SUCCESS; } break; } entry++; } if (new_widget) { *new_widget = widget; } return status; } UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root) { GX_CONST GX_THEME *theme_ptr; GX_RECTANGLE size; GX_STUDIO_DISPLAY_INFO *display_info = &non_linear_animation_display_table[display]; /* create the requested display */ gx_display_create(display_info->display, display_info->name, driver, (GX_VALUE) display_info->x_resolution, (GX_VALUE) display_info->y_resolution); /* install the request theme */ if(display_info->theme_table) { theme_ptr = display_info->theme_table[theme]; if(theme_ptr) { gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size); /* install the color palette if required */ if (display_info->display->gx_display_driver_palette_set && theme_ptr->theme_palette != NULL) { display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size); } gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size); gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size); gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance); gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance); } } /* Install the language table. */ if(display_info->language_table) { gx_display_language_table_set_ext(display_info->display, display_info->language_table, (GX_UBYTE) display_info->language_table_size, display_info->string_table_size); gx_display_active_language_set(display_info->display, language); } /* Set screen rotation angle. */ display_info->display->gx_display_rotation_angle = display_info->rotation_angle; /* create the canvas for this display */ gx_canvas_create(display_info->canvas, display_info->canvas_name, display_info->display, GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE, display_info->x_resolution, display_info->y_resolution, display_info->canvas_memory, display_info->canvas_memory_size); /* Create the root window for this canvas */ gx_utility_rectangle_define(&size, 0, 0, (GX_VALUE) (display_info->x_resolution - 1), (GX_VALUE) (display_info->y_resolution - 1)); gx_window_root_create(display_info->root_window, display_info->name, display_info->canvas, GX_STYLE_NONE, 0, &size); if (return_root) { *return_root = display_info->root_window; } return GX_SUCCESS; } #undef GUIX_STUDIO_GENERATED_FILE