/*******************************************************************************/ /* 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:09 */ /*******************************************************************************/ #define GUIX_STUDIO_GENERATED_FILE #include #include "dynamic_menu_resources.h" #include "dynamic_menu_specifications.h" static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); GENRE_SCREEN_CONTROL_BLOCK genre_screen; ARTISTS_SCREEN_CONTROL_BLOCK artists_screen; TOP_MENU_CONTROL_BLOCK top_menu; GX_CONST GX_STUDIO_WIDGET second_level_derived_screen_define; GX_CONST GX_STUDIO_WIDGET playlist_screen_define; GX_CONST GX_STUDIO_WIDGET albums_screen_define; GX_CONST GX_STUDIO_WIDGET songs_screen_define; GX_DISPLAY Main_Display_control_block; GX_WINDOW_ROOT Main_Display_root_window; GX_CANVAS Main_Display_canvas_control_block; ULONG Main_Display_canvas_memory[76800]; extern GX_CONST GX_THEME *Main_Display_theme_table[]; extern GX_CONST GX_STRING *Main_Display_language_table[]; GX_STUDIO_DISPLAY_INFO dynamic_menu_display_table[1] = { { "Main_Display", "Main_Display_canvas", Main_Display_theme_table, Main_Display_language_table, MAIN_DISPLAY_THEME_TABLE_SIZE, MAIN_DISPLAY_LANGUAGE_TABLE_SIZE, MAIN_DISPLAY_STRING_TABLE_SIZE, 240, /* x resolution */ 320, /* y resolution */ &Main_Display_control_block, &Main_Display_canvas_control_block, &Main_Display_root_window, Main_Display_canvas_memory, /* canvas memory area */ 307200, /* 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_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_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_PIXELMAP_PROMPT *pix_prompt = (GX_PIXELMAP_PROMPT *) control_block; GX_PROMPT *prompt = (GX_PROMPT *) pix_prompt; GX_PIXELMAP_PROMPT_PROPERTIES *props = (GX_PIXELMAP_PROMPT_PROPERTIES *) info->properties; status = gx_pixelmap_prompt_create(pix_prompt, info->widget_name, parent, props->string_id, props->fill_map_id, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { gx_pixelmap_prompt_pixelmap_set(pix_prompt, props->left_map_id, props->fill_map_id, props->right_map_id, props->selected_left_map_id, props->selected_fill_map_id, props->selected_right_map_id); 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_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_VERTICAL_LIST *list = (GX_VERTICAL_LIST *) control_block; GX_VERTICAL_LIST_PROPERTIES *props = (GX_VERTICAL_LIST_PROPERTIES *) info->properties; status = gx_vertical_list_create(list, info->widget_name, parent, props->total_rows, props->callback, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { if (props->wallpaper_id) { gx_window_wallpaper_set((GX_WINDOW *) list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER); } } return status; } UINT gx_studio_template_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status = GX_SUCCESS; GX_STUDIO_WIDGET derived; GX_TEMPLATE_PROPERTIES *props = (GX_TEMPLATE_PROPERTIES *) info->properties; /* create base widget and children */ derived = *props->base_info; derived.widget_id = info->widget_id; derived.widget_name = info->widget_name; if (info->style & GX_STYLE_ENABLED) { derived.style |= GX_STYLE_ENABLED; } else { derived.style &= ~GX_STYLE_ENABLED; } if (info->status & GX_STATUS_ACCEPTS_FOCUS) { derived.status |= GX_STATUS_ACCEPTS_FOCUS; } else { derived.status &= ~GX_STATUS_ACCEPTS_FOCUS; } #if defined(GX_WIDGET_USER_DATA) derived.user_data = info->user_data; #endif control_block = gx_studio_widget_create((GX_BYTE *) control_block, &derived, parent); if (control_block) { if (info->style & GX_STYLE_DYNAMICALLY_ALLOCATED) { control_block->gx_widget_status |= GX_STATUS_DYNAMICALLY_ALLOCATED; } if (derived.size.gx_rectangle_left != info->size.gx_rectangle_left || derived.size.gx_rectangle_top != info->size.gx_rectangle_top) { gx_widget_shift(control_block, info->size.gx_rectangle_left - derived.size.gx_rectangle_left, info->size.gx_rectangle_top - derived.size.gx_rectangle_top, GX_FALSE); } } else { status = GX_FAILURE; } return status; } GX_WINDOW_PROPERTIES menu_screen_template_properties = { GX_PIXELMAP_ID_CHECKBOX_OFF /* wallpaper pixelmap id */ }; GX_TEXT_BUTTON_PROPERTIES menu_screen_template_back_button_properties = { GX_STRING_ID_STRING_46, /* 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_CONST GX_STUDIO_WIDGET menu_screen_template_back_button_define = { "back_button", GX_TYPE_TEXT_BUTTON, /* widget type */ IDB_BACK, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|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 */ {80, 272, 159, 303}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(MENU_SCREEN_TEMPLATE_CONTROL_BLOCK, menu_screen_template_back_button), /* control block */ (void *) &menu_screen_template_back_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET menu_screen_template_define = { "menu_screen_template", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TILE_WALLPAPER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(MENU_SCREEN_TEMPLATE_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ (UINT (*)(GX_WIDGET *, GX_EVENT *)) sub_menu_event, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &menu_screen_template_back_button_define, /* child widget */ 0, /* control block */ (void *) &menu_screen_template_properties /* extended properties */ }; GX_WINDOW_PROPERTIES top_menu_properties = { 0 /* wallpaper pixelmap id */ }; GX_PIXELMAP_PROMPT_PROPERTIES top_menu_albums_button_properties = { GX_STRING_ID_STRING_39, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_PIXELMAP_PROMPT_PROPERTIES top_menu_artists_button_properties = { GX_STRING_ID_STRING_40, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_PIXELMAP_PROMPT_PROPERTIES top_menu_genres_button_properties = { GX_STRING_ID_STRING_41, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_PIXELMAP_PROMPT_PROPERTIES top_menu_playlist_button_properties = { GX_STRING_ID_STRING_44, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_PIXELMAP_PROMPT_PROPERTIES top_menu_songs_button_properties = { GX_STRING_ID_STRING_43, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_PIXELMAP_PROMPT_PROPERTIES top_menu_settings_properties = { GX_STRING_ID_STRING_14, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_CONST GX_STUDIO_WIDGET top_menu_settings_define = { "settings", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ ID_SETTINGS, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {32, 251, 205, 288}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_settings), /* control block */ (void *) &top_menu_settings_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET top_menu_songs_button_define = { "songs_button", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ ID_SONGS, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {33, 204, 206, 241}, /* widget size */ &top_menu_settings_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_songs_button), /* control block */ (void *) &top_menu_songs_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET top_menu_playlist_button_define = { "playlist_button", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ ID_PLAYLISTS, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {33, 160, 206, 197}, /* widget size */ &top_menu_songs_button_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_playlist_button), /* control block */ (void *) &top_menu_playlist_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET top_menu_genres_button_define = { "genres_button", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ ID_GENRES, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {33, 116, 206, 153}, /* widget size */ &top_menu_playlist_button_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_genres_button), /* control block */ (void *) &top_menu_genres_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET top_menu_artists_button_define = { "artists_button", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ ID_ARTISTS, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {33, 72, 206, 109}, /* widget size */ &top_menu_genres_button_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_artists_button), /* control block */ (void *) &top_menu_artists_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET top_menu_albums_button_define = { "albums_button", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ ID_ALBUMS, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {33, 28, 206, 65}, /* widget size */ &top_menu_artists_button_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_albums_button), /* control block */ (void *) &top_menu_albums_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET top_menu_define = { "top_menu", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(TOP_MENU_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ (UINT (*)(GX_WIDGET *, GX_EVENT *)) top_menu_event, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &top_menu_albums_button_define, /* child widget */ 0, /* control block */ (void *) &top_menu_properties /* extended properties */ }; GX_TEMPLATE_PROPERTIES second_level_template_properties = { &menu_screen_template_define, /* base info */ gx_studio_window_create, /* base create function */ {0, 0, 239, 319} /* widget size */ }; GX_WINDOW_PROPERTIES second_level_template_second_level_template_child_properties = { 0 /* wallpaper pixelmap id */ }; GX_PROMPT_PROPERTIES second_level_template_prompt_5_properties = { GX_STRING_ID_STRING_14, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_CONST GX_STUDIO_WIDGET second_level_template_prompt_5_define = { "prompt_5", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* 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 */ {64, 36, 174, 60}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(SECOND_LEVEL_TEMPLATE_CONTROL_BLOCK, second_level_template_prompt_5), /* control block */ (void *) &second_level_template_prompt_5_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET second_level_template_second_level_template_child_define = { "second_level_template_child", GX_TYPE_WINDOW, /* 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_WINDOW), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {13, 14, 226, 173}, /* widget size */ GX_NULL, /* no next widget */ &second_level_template_prompt_5_define, /* child widget definition */ offsetof(SECOND_LEVEL_TEMPLATE_CONTROL_BLOCK, second_level_template_second_level_template_child), /* control block */ (void *) &second_level_template_second_level_template_child_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET second_level_template_define = { "second_level_template", GX_TYPE_TEMPLATE, /* 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(SECOND_LEVEL_TEMPLATE_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_template_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &second_level_template_second_level_template_child_define, /* child widget */ 0, /* control block */ (void *) &second_level_template_properties /* extended properties */ }; GX_TEMPLATE_PROPERTIES playlist_screen_properties = { &menu_screen_template_define, /* base info */ gx_studio_window_create, /* base create function */ {0, 0, 239, 319} /* widget size */ }; GX_PIXELMAP_PROMPT_PROPERTIES playlist_screen_prompt_4_properties = { GX_STRING_ID_STRING_44, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_VERTICAL_LIST_PROPERTIES playlist_screen_vertical_list_4_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 10 /* total rows */ }; GX_TEXT_BUTTON_PROPERTIES playlist_screen_button_17_1_properties = { GX_STRING_ID_STRING_7, /* 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_TEXT_BUTTON_PROPERTIES playlist_screen_button_18_1_properties = { GX_STRING_ID_STRING_8, /* 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_TEXT_BUTTON_PROPERTIES playlist_screen_button_19_1_properties = { GX_STRING_ID_STRING_9, /* 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_TEXT_BUTTON_PROPERTIES playlist_screen_button_10_3_properties = { GX_STRING_ID_STRING_10, /* 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_TEXT_BUTTON_PROPERTIES playlist_screen_button_11_3_properties = { GX_STRING_ID_STRING_11, /* 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_TEXT_BUTTON_PROPERTIES playlist_screen_button_12_3_properties = { GX_STRING_ID_STRING_12, /* 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_TEXT_BUTTON_PROPERTIES playlist_screen_button_13_3_properties = { GX_STRING_ID_STRING_13, /* 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_CONST GX_STUDIO_WIDGET playlist_screen_button_13_3_define = { "button_13_3", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 229, 223, 252}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &playlist_screen_button_13_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_button_12_3_define = { "button_12_3", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 205, 223, 228}, /* widget size */ &playlist_screen_button_13_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &playlist_screen_button_12_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_button_11_3_define = { "button_11_3", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 181, 223, 204}, /* widget size */ &playlist_screen_button_12_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &playlist_screen_button_11_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_button_10_3_define = { "button_10_3", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 157, 223, 180}, /* widget size */ &playlist_screen_button_11_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &playlist_screen_button_10_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_button_19_1_define = { "button_19_1", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 133, 223, 156}, /* widget size */ &playlist_screen_button_10_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &playlist_screen_button_19_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_button_18_1_define = { "button_18_1", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 109, 223, 132}, /* widget size */ &playlist_screen_button_19_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &playlist_screen_button_18_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_button_17_1_define = { "button_17_1", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 85, 223, 108}, /* widget size */ &playlist_screen_button_18_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &playlist_screen_button_17_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_vertical_list_4_define = { "vertical_list_4", GX_TYPE_VERTICAL_LIST, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_VERTICAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_vertical_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 84, 224, 254}, /* widget size */ GX_NULL, /* no next widget */ &playlist_screen_button_17_1_define, /* child widget definition */ 0, /* runtime control block */ (void *) &playlist_screen_vertical_list_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_prompt_4_define = { "prompt_4", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_TEXT, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 23, 208, 60}, /* widget size */ &playlist_screen_vertical_list_4_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &playlist_screen_prompt_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET playlist_screen_define = { "playlist_screen", GX_TYPE_TEMPLATE, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(PLAYLIST_SCREEN_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_template_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &playlist_screen_prompt_4_define, /* child widget */ 0, /* control block */ (void *) &playlist_screen_properties /* extended properties */ }; GX_TEMPLATE_PROPERTIES genre_screen_properties = { &menu_screen_template_define, /* base info */ gx_studio_window_create, /* base create function */ {0, 0, 239, 319} /* widget size */ }; GX_PIXELMAP_PROMPT_PROPERTIES genre_screen_prompt_3_properties = { GX_STRING_ID_STRING_41, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_VERTICAL_LIST_PROPERTIES genre_screen_vertical_list_3_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 10 /* total rows */ }; GX_TEXT_BUTTON_PROPERTIES genre_screen_button_17_properties = { GX_STRING_ID_STRING_45, /* 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_TEXT_BUTTON_PROPERTIES genre_screen_button_18_properties = { GX_STRING_ID_STRING_1, /* 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_TEXT_BUTTON_PROPERTIES genre_screen_button_19_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_TEXT_BUTTON_PROPERTIES genre_screen_button_10_2_properties = { GX_STRING_ID_STRING_3, /* 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_TEXT_BUTTON_PROPERTIES genre_screen_button_11_2_properties = { GX_STRING_ID_STRING_4, /* 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_TEXT_BUTTON_PROPERTIES genre_screen_button_12_2_properties = { GX_STRING_ID_STRING_5, /* 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_TEXT_BUTTON_PROPERTIES genre_screen_button_13_2_properties = { GX_STRING_ID_STRING_6, /* 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_CONST GX_STUDIO_WIDGET genre_screen_button_13_2_define = { "button_13_2", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 229, 223, 252}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &genre_screen_button_13_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_button_12_2_define = { "button_12_2", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 205, 223, 228}, /* widget size */ &genre_screen_button_13_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &genre_screen_button_12_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_button_11_2_define = { "button_11_2", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 181, 223, 204}, /* widget size */ &genre_screen_button_12_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &genre_screen_button_11_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_button_10_2_define = { "button_10_2", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 157, 223, 180}, /* widget size */ &genre_screen_button_11_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &genre_screen_button_10_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_button_19_define = { "button_19", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 133, 223, 156}, /* widget size */ &genre_screen_button_10_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &genre_screen_button_19_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_button_18_define = { "button_18", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 109, 223, 132}, /* widget size */ &genre_screen_button_19_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &genre_screen_button_18_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_button_17_define = { "button_17", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 85, 223, 108}, /* widget size */ &genre_screen_button_18_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &genre_screen_button_17_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_vertical_list_3_define = { "vertical_list_3", GX_TYPE_VERTICAL_LIST, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_VERTICAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_vertical_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 84, 224, 254}, /* widget size */ GX_NULL, /* no next widget */ &genre_screen_button_17_define, /* child widget definition */ 0, /* runtime control block */ (void *) &genre_screen_vertical_list_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_prompt_3_define = { "prompt_3", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 23, 208, 60}, /* widget size */ &genre_screen_vertical_list_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(GENRE_SCREEN_CONTROL_BLOCK, genre_screen_prompt_3), /* control block */ (void *) &genre_screen_prompt_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET genre_screen_define = { "genre_screen", GX_TYPE_TEMPLATE, /* 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(GENRE_SCREEN_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_template_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &genre_screen_prompt_3_define, /* child widget */ 0, /* control block */ (void *) &genre_screen_properties /* extended properties */ }; GX_TEMPLATE_PROPERTIES artists_screen_properties = { &menu_screen_template_define, /* base info */ gx_studio_window_create, /* base create function */ {0, 0, 239, 319} /* widget size */ }; GX_PIXELMAP_PROMPT_PROPERTIES artists_screen_prompt_2_properties = { GX_STRING_ID_STRING_40, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_VERTICAL_LIST_PROPERTIES artists_screen_vertical_list_2_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 10 /* total rows */ }; GX_TEXT_BUTTON_PROPERTIES artists_screen_button_14_properties = { GX_STRING_ID_STRING_62, /* 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_TEXT_BUTTON_PROPERTIES artists_screen_button_15_properties = { GX_STRING_ID_STRING_63, /* 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_TEXT_BUTTON_PROPERTIES artists_screen_button_16_properties = { GX_STRING_ID_STRING_64, /* 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_TEXT_BUTTON_PROPERTIES artists_screen_button_10_1_properties = { GX_STRING_ID_STRING_65, /* 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_TEXT_BUTTON_PROPERTIES artists_screen_button_11_1_properties = { GX_STRING_ID_STRING_66, /* 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_TEXT_BUTTON_PROPERTIES artists_screen_button_12_1_properties = { GX_STRING_ID_STRING_67, /* 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_TEXT_BUTTON_PROPERTIES artists_screen_button_13_1_properties = { GX_STRING_ID_STRING_68, /* 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_CONST GX_STUDIO_WIDGET artists_screen_button_13_1_define = { "button_13_1", GX_TYPE_TEXT_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_TEXT_LEFT, /* 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 */ {21, 229, 223, 252}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_13_1), /* control block */ (void *) &artists_screen_button_13_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_button_12_1_define = { "button_12_1", GX_TYPE_TEXT_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_TEXT_LEFT, /* 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 */ {21, 205, 223, 228}, /* widget size */ &artists_screen_button_13_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_12_1), /* control block */ (void *) &artists_screen_button_12_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_button_11_1_define = { "button_11_1", GX_TYPE_TEXT_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_TEXT_LEFT, /* 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 */ {21, 181, 223, 204}, /* widget size */ &artists_screen_button_12_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_11_1), /* control block */ (void *) &artists_screen_button_11_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_button_10_1_define = { "button_10_1", GX_TYPE_TEXT_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_TEXT_LEFT, /* 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 */ {21, 157, 223, 180}, /* widget size */ &artists_screen_button_11_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_10_1), /* control block */ (void *) &artists_screen_button_10_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_button_16_define = { "button_16", GX_TYPE_TEXT_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_TEXT_LEFT, /* 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 */ {21, 133, 223, 156}, /* widget size */ &artists_screen_button_10_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_16), /* control block */ (void *) &artists_screen_button_16_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_button_15_define = { "button_15", GX_TYPE_TEXT_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_TEXT_LEFT, /* 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 */ {21, 109, 223, 132}, /* widget size */ &artists_screen_button_16_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_15), /* control block */ (void *) &artists_screen_button_15_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_button_14_define = { "button_14", GX_TYPE_TEXT_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_TEXT_LEFT, /* 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 */ {21, 85, 223, 108}, /* widget size */ &artists_screen_button_15_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_14), /* control block */ (void *) &artists_screen_button_14_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_vertical_list_2_define = { "vertical_list_2", GX_TYPE_VERTICAL_LIST, /* 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_VERTICAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_vertical_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 84, 224, 254}, /* widget size */ GX_NULL, /* no next widget */ &artists_screen_button_14_define, /* child widget definition */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_vertical_list_2), /* control block */ (void *) &artists_screen_vertical_list_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_prompt_2_define = { "prompt_2", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 23, 208, 60}, /* widget size */ &artists_screen_vertical_list_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_prompt_2), /* control block */ (void *) &artists_screen_prompt_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET artists_screen_define = { "artists_screen", GX_TYPE_TEMPLATE, /* 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(ARTISTS_SCREEN_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_template_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &artists_screen_prompt_2_define, /* child widget */ 0, /* control block */ (void *) &artists_screen_properties /* extended properties */ }; GX_TEMPLATE_PROPERTIES albums_screen_properties = { &menu_screen_template_define, /* base info */ gx_studio_window_create, /* base create function */ {0, 0, 239, 319} /* widget size */ }; GX_PIXELMAP_PROMPT_PROPERTIES albums_screen_prompt_1_properties = { GX_STRING_ID_STRING_39, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_VERTICAL_LIST_PROPERTIES albums_screen_vertical_list_1_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 10 /* total rows */ }; GX_TEXT_BUTTON_PROPERTIES albums_screen_button_7_properties = { GX_STRING_ID_STRING_54, /* 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_TEXT_BUTTON_PROPERTIES albums_screen_button_8_properties = { GX_STRING_ID_STRING_55, /* 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_TEXT_BUTTON_PROPERTIES albums_screen_button_9_properties = { GX_STRING_ID_STRING_56, /* 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_TEXT_BUTTON_PROPERTIES albums_screen_button_10_properties = { GX_STRING_ID_STRING_58, /* 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_TEXT_BUTTON_PROPERTIES albums_screen_button_11_properties = { GX_STRING_ID_STRING_59, /* 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_TEXT_BUTTON_PROPERTIES albums_screen_button_12_properties = { GX_STRING_ID_STRING_60, /* 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_TEXT_BUTTON_PROPERTIES albums_screen_button_13_properties = { GX_STRING_ID_STRING_61, /* 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_CONST GX_STUDIO_WIDGET albums_screen_button_13_define = { "button_13", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 229, 223, 252}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &albums_screen_button_13_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_button_12_define = { "button_12", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 205, 223, 228}, /* widget size */ &albums_screen_button_13_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &albums_screen_button_12_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_button_11_define = { "button_11", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 181, 223, 204}, /* widget size */ &albums_screen_button_12_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &albums_screen_button_11_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_button_10_define = { "button_10", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 157, 223, 180}, /* widget size */ &albums_screen_button_11_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &albums_screen_button_10_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_button_9_define = { "button_9", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 133, 223, 156}, /* widget size */ &albums_screen_button_10_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &albums_screen_button_9_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_button_8_define = { "button_8", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 109, 223, 132}, /* widget size */ &albums_screen_button_9_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &albums_screen_button_8_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_button_7_define = { "button_7", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 85, 223, 108}, /* widget size */ &albums_screen_button_8_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &albums_screen_button_7_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_vertical_list_1_define = { "vertical_list_1", GX_TYPE_VERTICAL_LIST, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_VERTICAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_vertical_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 84, 224, 254}, /* widget size */ GX_NULL, /* no next widget */ &albums_screen_button_7_define, /* child widget definition */ 0, /* runtime control block */ (void *) &albums_screen_vertical_list_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_prompt_1_define = { "prompt_1", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 23, 208, 60}, /* widget size */ &albums_screen_vertical_list_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &albums_screen_prompt_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET albums_screen_define = { "albums_screen", GX_TYPE_TEMPLATE, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(ALBUMS_SCREEN_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_template_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &albums_screen_prompt_1_define, /* child widget */ 0, /* control block */ (void *) &albums_screen_properties /* extended properties */ }; GX_TEMPLATE_PROPERTIES songs_screen_properties = { &menu_screen_template_define, /* base info */ gx_studio_window_create, /* base create function */ {0, 0, 239, 319} /* widget size */ }; GX_PIXELMAP_PROMPT_PROPERTIES songs_screen_prompt_properties = { GX_STRING_ID_STRING_43, /* string id */ GX_FONT_ID_MENUFONT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT, /* disabled text color */ GX_PIXELMAP_ID_TFIELD_LEFT_SMALL, /* left pixelmap id */ GX_PIXELMAP_ID_TFIELD_FILL_SMALL, /* fill pixelmap id */ GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL, /* right pixelmap id */ 0, /* selected left pixelmap id */ 0, /* selected fill pixelmap id */ 0 /* selected right pixelmap id */ }; GX_VERTICAL_LIST_PROPERTIES songs_screen_vertical_list_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 10 /* total rows */ }; GX_TEXT_BUTTON_PROPERTIES songs_screen_button_properties = { GX_STRING_ID_STRING_47, /* 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_TEXT_BUTTON_PROPERTIES songs_screen_button_1_properties = { GX_STRING_ID_STRING_48, /* 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_TEXT_BUTTON_PROPERTIES songs_screen_button_2_properties = { GX_STRING_ID_STRING_49, /* 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_TEXT_BUTTON_PROPERTIES songs_screen_button_3_properties = { GX_STRING_ID_STRING_50, /* 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_TEXT_BUTTON_PROPERTIES songs_screen_button_4_properties = { GX_STRING_ID_STRING_51, /* 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_TEXT_BUTTON_PROPERTIES songs_screen_button_5_properties = { GX_STRING_ID_STRING_52, /* 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_TEXT_BUTTON_PROPERTIES songs_screen_button_6_properties = { GX_STRING_ID_STRING_53, /* 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_CONST GX_STUDIO_WIDGET songs_screen_button_6_define = { "button_6", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 229, 223, 252}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &songs_screen_button_6_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_button_5_define = { "button_5", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 205, 223, 228}, /* widget size */ &songs_screen_button_6_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &songs_screen_button_5_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_button_4_define = { "button_4", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 181, 223, 204}, /* widget size */ &songs_screen_button_5_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &songs_screen_button_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_button_3_define = { "button_3", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 157, 223, 180}, /* widget size */ &songs_screen_button_4_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &songs_screen_button_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_button_2_define = { "button_2", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 133, 223, 156}, /* widget size */ &songs_screen_button_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &songs_screen_button_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_button_1_define = { "button_1", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 109, 223, 132}, /* widget size */ &songs_screen_button_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &songs_screen_button_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_button_define = { "button", GX_TYPE_TEXT_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_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT, /* 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 */ {21, 85, 223, 108}, /* widget size */ &songs_screen_button_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &songs_screen_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_vertical_list_define = { "vertical_list", GX_TYPE_VERTICAL_LIST, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_VERTICAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_vertical_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {20, 84, 224, 254}, /* widget size */ GX_NULL, /* no next widget */ &songs_screen_button_define, /* child widget definition */ 0, /* runtime control block */ (void *) &songs_screen_vertical_list_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_prompt_define = { "prompt", GX_TYPE_PIXELMAP_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PIXELMAP_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_pixelmap_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 23, 208, 60}, /* widget size */ &songs_screen_vertical_list_define, /* next widget definition */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &songs_screen_prompt_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET songs_screen_define = { "songs_screen", GX_TYPE_TEMPLATE, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(SONGS_SCREEN_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_template_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &songs_screen_prompt_define, /* child widget */ 0, /* control block */ (void *) &songs_screen_properties /* extended properties */ }; GX_TEMPLATE_PROPERTIES second_level_derived_screen_properties = { &second_level_template_define, /* base info */ gx_studio_template_create, /* base create function */ {0, 0, 239, 319} /* widget size */ }; GX_WINDOW_PROPERTIES second_level_derived_screen_add_derived_child_properties = { 0 /* wallpaper pixelmap id */ }; GX_CONST GX_STUDIO_WIDGET second_level_derived_screen_add_derived_child_define = { "add_derived_child", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_WINDOW_BORDER, /* normal color id */ GX_COLOR_ID_WINDOW_BORDER, /* selected color id */ GX_COLOR_ID_WINDOW_BORDER, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {62, 192, 181, 252}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ 0, /* runtime control block */ (void *) &second_level_derived_screen_add_derived_child_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET second_level_derived_screen_define = { "second_level_derived_screen", GX_TYPE_TEMPLATE, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(SECOND_LEVEL_DERIVED_SCREEN_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_template_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 239, 319}, /* widget size */ GX_NULL, /* next widget */ &second_level_derived_screen_add_derived_child_define, /* child widget */ 0, /* control block */ (void *) &second_level_derived_screen_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET_ENTRY dynamic_menu_widget_table[] = { { &second_level_derived_screen_define, GX_NULL }, { &playlist_screen_define, GX_NULL }, { &genre_screen_define, (GX_WIDGET *) &genre_screen }, { &artists_screen_define, (GX_WIDGET *) &artists_screen }, { &albums_screen_define, GX_NULL }, { &songs_screen_define, GX_NULL }, { &top_menu_define, (GX_WIDGET *) &top_menu }, {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 = dynamic_menu_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 = &dynamic_menu_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