Download
slide1 n.
Skip this Video
Loading SlideShow in 5 Seconds..
GUI PowerPoint Presentation

GUI

166 Vues Download Presentation
Télécharger la présentation

GUI

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. GUI Fugui 2005/04/26

  2. Outline • GUI overview • GUIdescription • Use GUI • GUIprinciple

  3. 1. GUI overview • Screen • Menu • Message box • Public • Private • Component • Menu & MenuItem • Button & Scrollbar • InputBox & InlineEditBox • Other • Primitive

  4. 1.1.1 Scr – Menu

  5. 1.1.2 Scr – MsgBox

  6. 1.1.3 Scr – Public

  7. 1.1.4 Scr – Private

  8. 1.2.1 Comp – Menu & MenuItem ScrollBar Background

  9. 1.2.2 Comp – Button & Scrollbar STYLE 3 STYLE 2 STYLE 1

  10. 1.2.3 Comp – InputBox & InlineEditBox

  11. 1.2.4 Comp – Other Status bar 0 Status bar 2(SubLCD) Shortcut Title bar Information bar Status bar 1 Scrolling text Popup description Virtual keyboard Button bar Left softkey Right softkey Arrow indication

  12. 1.3 Primitive

  13. 2. GUIdescription • Primitive • LCD & Layer • Position & Area & Clip • Color & Transparent • String & Font • Image • Filled area • Theme • Component • Menu • MenuItem • Button • InputBox1 • InputBox2 • Scrollbar • StatusBar • Screen • Menu • Message box • Message box2 • Public • Private • private2

  14. 2.1.1 Prim – LCD & Layer Position: 0, 0 Size: 176, 220 Source key: FALSE Opacity: FALSE Screen LCD Layer list => Position: 18, 50 Size: 140, 100 Source key: FALSE Opacity: 128 (0–255) Position: –20, 70 Size: 200, 40 Source key: (0, 0, 255) Opacity: FALSE

  15. Layer Coordinate X axis Layer height Y axis LCD Coordinate Layer width X axis LCD height Y axis LCDr width 2.1.2 Prim – Coordinate & Clip Image position: 20 20 Layer => Clip: (30,30,130,60) Text position: 10 70 Text clip: (20,50,120,80) Screen <=

  16. 2.1.3 Prim – Color & Transparent Color table

  17. 2.1.4 Prim – String & Font

  18. 2.1.5 Prim – Image

  19. 2.1.6 Prim – Filled area Filled area = filled type + filled border +filled shadow

  20. 2.1.7 Prim – Theme

  21. 2.2.1 Comp – Menu

  22. 2.2.2 Comp – MenuItem

  23. 2.2.3 Comp – Button

  24. 2.2.4.1 Comp – InputBox1

  25. 2.2.4.2 Comp – InputBox2

  26. 2.2.5 Comp – Scrollbar

  27. 2.2.6 Comp – StatusBar

  28. 2.3.1 Scr – Menu

  29. 2.3.2.1 Scr – MsgBox

  30. 2.3.2.2 Scr – MsgBox2

  31. 2.3.3 Scr – Public

  32. 2.3.4.1 Scr – Private

  33. 2.3.4.2 Scr – Private2

  34. 3. Use GUI • Screen • Menu • Message box • Public • Component • Primitive

  35. 3.1.1.1.1 Scr – Menu – TextList • U8 subMenuData[MAX_SUB_MENUS][MAX_SUB_MENU_SIZE]; • U16 list_of_items[MAX_SUB_MENUS]; • U8 subHintData[MAX_SUB_MENUS][MAX_SUB_MENU_HINT_SIZE]; • S32 number_of_items = 0; • S32 default_highlighted_item = 0; • U8* guiBuffer; • S32 i = 0; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • number_of_items = GetNumOfChild( CURRENT_PARENT_ITEM_ID ); • GetSequenceStringIds(CURRENT_PARENT_ITEM_ID , list_of_items); • SetParentHandler(CURRENT_PARENT_ITEM_ID ); • RegisterHighlightHandler(ExecuteCurrHiliteHandler); • for (i=0;i<number_of_items;i++) • subMenuData[i]=(PU8)get_string(list_of_items[i]); • ShowCategory1Screen( title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • list_of_items, //List of text items • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer • ShowCategory6Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • subMenuData, //List of text items • subHintData, //list of descriptions • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer • ShowCategory55Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • list_of_items, //List of text items • subHintData, //list of descriptions • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer

  36. 3.1.1.2.1 Scr – Menu – IconTextList1 • U8 subMenuData[MAX_SUB_MENUS][MAX_SUB_MENU_SIZE]; • U16 list_of_items[MAX_SUB_MENUS]; • U16 list_of_icons[MAX_SUB_MENUS]; • U8 subHintData[MAX_SUB_MENUS][MAX_SUB_MENU_HINT_SIZE]; • S32 number_of_items = 0; • S32 default_highlighted_item = 0; • U8* guiBuffer; • S32 i = 0; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • number_of_items = GetNumOfChild( CURRENT_PARENT_ITEM_ID ); • GetSequenceStringIds(CURRENT_PARENT_ITEM_ID , list_of_items); • GetSequenceImageIds(CURRENT_PARENT_ITEM_ID , list_of_icons); • SetParentHandler(CURRENT_PARENT_ITEM_ID ); • RegisterHighlightHandler(ExecuteCurrHiliteHandler); • for (i=0;i<number_of_items;i++) • subMenuData[i]=(PU8)get_string(list_of_items[i]); • ShowCategory15Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • list_of_items, //List of text items • list_of_icons, //list of descriptions • LIST_MENU, //flags, LIST_MENU or MATRIX_MENU • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer • ShowCategory52Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • list_of_items, //List of text items • list_of_icons, //list of descriptions • subHintData, //list of descriptions • 0, //flags, unused • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer • ShowCategory53Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • subMenuData, //List of text items • list_of_icons, //list of descriptions • subHintData, //list of descriptions • 0, //flags, unused • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer

  37. 3.1.1.2.2 Scr – Menu – IconTextList2 • pBOOL get_item_func(S32 item_index, UI_string_type str_buff, UI_image_type* img_buff_p, U8 str_img_mask ) • { • pfnUnicodeStrcpy((S8*) str_buff, (S8*)g_my_items[store_index]); • *img_buff_p = g_my_icons[store_index]; • } • S32 get_hint_func( S32 item_index, UI_string_type *hint_array ) • { • pfnUnicodeStrcpy((S8*)hint_array[0], (S8*)g_my_hints[item_index]); • } • void MyHighlightHandler(S32 nIndex) • { • g_my_activate_item = nIndex; • } • S32 number_of_items = 0; • S32 default_highlighted_item = 0; • U8* guiBuffer; • S32 i = 0; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • number_of_items = 100; • RegisterHighlightHandler(MyHighlightHandler); • //Dynamic fixed list • ShowCategory184Screen( title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • get_item_func, //function pointer to get next displayed items • get_hint_func, //function pointer to get next displayed hint data • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer

  38. 3.1.1.3 Scr – Menu – RadioBoxList • void MyHighlightHandler(S32 nIndex) • { • g_my_activate_item = nIndex; • } • Void MyLeftSoftkeyFunction() • { • ………… //use g_my_activate_item • } • U8 subMenuData[MAX_SUB_MENUS][MAX_SUB_MENU_SIZE]; • U16 list_of_items[MAX_SUB_MENUS]; • S32 number_of_items = 0; • S32 default_highlighted_item = 0; • U8* guiBuffer; • S32 i = 0; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • number_of_items = GetNumOfChild( CURRENT_PARENT_ITEM_ID ); • GetSequenceStringIds(CURRENT_PARENT_ITEM_ID , list_of_items); • SetParentHandler(CURRENT_PARENT_ITEM_ID ); • RegisterHighlightHandler(MyHighlightHandler); • for (i=0;i<number_of_items;i++) • subMenuData[i]=(PU8)get_string(list_of_items[i]); • ShowCategory11Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • list_of_items, //List of text items • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer • ShowCategory36Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • subMenuData, //List of text items • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer • SetLeftSoftkeyFunction( MyLeftSoftkeyFunction, KEY_EVENT_UP);

  39. 3.1.1.4 Scr – Menu – CheckBoxList • void MyHighlightHandler(S32 nIndex) • { • g_my_activate_item = nIndex; • } • Void MyLeftSoftkeyFunction() • { • ………… //use g_my_activate_item • standard_check_list_handle_item_select(g_my_activate_item); • } • U16 list_of_items[MAX_SUB_MENUS]; • U8 list_of_status[MAX_SUB_MENUS]; • S32 number_of_items = 0; • S32 default_highlighted_item = 0; • U8* guiBuffer; • S32 i = 0; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • number_of_items = GetNumOfChild( CURRENT_PARENT_ITEM_ID ); • GetSequenceStringIds(CURRENT_PARENT_ITEM_ID , list_of_items); • SetParentHandler(CURRENT_PARENT_ITEM_ID ); • RegisterHighlightHandler(MyHighlightHandler); • ………………………… //Init list_of_status • ShowCategory13Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • list_of_items, //List of text items • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer); //history buffer • SetLeftSoftkeyFunction( MyLeftSoftkeyFunction, KEY_EVENT_UP);

  40. 3.1.1.4 Scr – Menu – SeveralColsList • U8 subMenuData[MAX_SUB_MENUS][MAX_SUB_MENU_SIZE]; • U16 list_of_items[MAX_SUB_MENUS]; • U16 list_of_icons1[MAX_SUB_MENUS]; • U16 list_of_icons2[MAX_SUB_MENUS]; • U8 subHintData[MAX_SUB_MENUS][MAX_SUB_MENU_HINT_SIZE]; • S32 number_of_items = 0; • S32 default_highlighted_item = 0; • U8* guiBuffer; • S32 i = 0; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • number_of_items = GetNumOfChild( CURRENT_PARENT_ITEM_ID ); • GetSequenceStringIds(CURRENT_PARENT_ITEM_ID , list_of_items); • SetParentHandler(CURRENT_PARENT_ITEM_ID ); • RegisterHighlightHandler(ExecuteCurrHiliteHandler); • for (i=0;i<number_of_items;i++) • subMenuData[i]=(PU8)get_string(list_of_items[i]); • ………………………… //Init list_of_icons1 and list_of_icons2 • ShowCategory73Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • subMenuData, //List of text items • list_of_icons1, //list of icons1 • list_of_icons2, //list of icons2 • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer, 0); //history buffer

  41. 3.1.1.5 Scr – Menu – InlineEditList • void MyHighlightHandler(S32 nIndex) • { • switch(nIndex) • { • Case 0: • …… • Default: • …… • } • } • U16 list_of_icons[MAX_SUB_MENUS]; • S32 number_of_items = 0; • S32 default_highlighted_item = 0; • U8* guiBuffer; • S32 i = 0; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • RegisterHighlightHandler(MyHighlightHandler); • SetInlineItemActivation((&wgui_inline_items[0]),INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT,0); • SetInlineItemDisplayOnly((&wgui_inline_items[0]),(U8*)my_string); • SetInlineItemActivation( (&wgui_inline_items[1]), INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT,0); • SetInlineItemTextEdit( (&wgui_inline_items[1]), (PU8)my_text_buffer, 3,INPUT_TYPE_NUMERIC); • ………………………………………..//more inline item see 3.2.7 • ShowCategory57Screen(title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • number_of_items, //Number of items • subMenuData, //List of text items • list_of_icons, //list of icons1 • wgui_inline_items, //See InlineItem structure • default_highlighted_item, //This is the default item that will be highlighted (if there is no history) • guiBuffer, 0); //history buffer

  42. 3.1.2 Scr – MsgBox • U16 message_string_id; • S8* message_string_buffer; • S8* message_string_buffer2; • U16 message_icon_id; • U8* guiBuffer; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • message_string_id = MY_MESSAGE_ID; • Message_icon_id = MY_MESSAGE_ICON_ID; • Message_string_buffer = GetString(MY_MESSAGE_ID); • Message_string_buffer2 = GetString(MY_MESSAGE_ID2); • ShowCategory8Screen( • title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • message_string_id, //Notification message • message_icon_id, //Notification image • guiBuffer); //history buffer • ShowCategory74Screen( • title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • message_string_buffer, //Notification message • 100, //Notification message size • guiBuffer); //history buffer • ShowCategory154Screen( • title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • message_string_buffer, //Notification message1 • message_string_buffer2, //Notification message2 • message_icon_id, //Notification image • guiBuffer); //history buffer

  43. 3.1.3 Scr – Public • S8 string_buffer[100]; • U16 message_icon_id; • U8* guiBuffer; • EntryNewScreen(NEW_SCREEN_ID, ExitFunction, Entryfunction, NULL); • guiBuffer = GetCurrGuiBuffer (NEW_SCREEN_ID); • ShowCategory5Screen( • title_id,title_icon_id,left_softkey_id,left_softkey_icon_id,right_softkey_id,right_softkey_icon_id, //Common screen data • INPUT_TYPE_ALPHANUMERIC_SENTENCECASE, //input_type, Type of input to use • string_buffer, //Buffer the input box should use.Size of the buffer • 100, //Size of the buffer • guiBuffer); //history buffer

  44. 3.2.1.1 Comp – Menu & Menuitems(WGUI) Menuitems related functions • Create menuitems • create_fixed_text_menuitems • create_fixed_icontext_menuitems • create_fixed_icontext_list_menuitems • create_fixed_twostate_menuitems • Add menuitem • add_fixed_icontext_item • add_fixed_icontext_items • add_location_fixed_icontext_item • add_fixed_text_item • add_fixed_text_items • add_location_fixed_text_item • add_fixed_twostate_item • add_fixed_twostate_items • add_location_fixed_twostate_item • add_fixed_icontext_list_item_icon • add_fixed_icontext_list_item_text • Set menuitems • resize_fixed_icontext_menuitems • resize_fixed_text_menuitems • resize_fixed_twostate_menuitems • resize_fixed_icontext_list_menuitems • set_fixed_icontext_positions • set_fixed_twostate_positions Menu related functions • Create menu • void create_fixed_list(void); • void create_fixed_matrix(void); • Associate menu and menuitems • associate_fixed_icontext_list • associate_fixed_icontext_list_list • associate_fixed_icontext_list_matrix • associate_fixed_icontext_matrix • associate_fixed_multirow_list_list • associate_fixed_text_list • associate_fixed_text_matrix • associate_fixed_twostate_list • associate_fixed_twostate_matrix • Register menu key handler • register_fixed_list_keys • register_fixed_list_shortcut_handler • register_fixed_matrix_keys • register_fixed_matrix_shortcut_handler • Register highlight handler • register_fixed_list_highlight_handler • register_fixed_list_unhighlight_handler • register_fixed_matrix_highlight_handler • Set menu • void move_fixed_list(s32 x,s32 y) • void move_fixed_matrix(s32 x,s32 y) • void resize_fixed_list(s32 width,s32 height) • void resize_fixed_matrix(s32 width,s32 height) • Show menu • void redraw_fixed_list(void) • void show_fixed_list(void) • void show_fixed_matrix(void)

  45. 3.2.1.2 Comp – Menu Example(WGUI) // Step 1, Create menu create_fixed_list(); // Step 2, Create menuitems create_fixed_icontext_menuitems(); // Step 3, Associate menu and menuitems associate_fixed_icontext_list(); // Step 4, Set menuitems data for(i=0;i<number_of_items;i++) add_fixed_icontext_item(list_of_items[i],list_of_icons[i]); // Step 5, Register menu key handler register_fixed_list_shortcut_handler(); register_fixed_list_keys(); // Step 6, Register menu highlight handler register_fixed_list_highlight_handler(standard_list_highlight_handler); // Step 7, Set menu move_fixed_list(0,(MMI_title_y+MMI_title_height)); resize_fixed_list(MMI_content_width,MMI_content_height); // Step 7, Set menuitems resize_fixed_icontext_menuitems(0,MMI_MENUITEM_HEIGHT); set_fixed_icontext_positions( MMI_ICONTEXT_MENUITEM_HEIGHT+2,0,1,0); // Step 8, Show menu Show_fixed_list();

  46. 3.2.1.3 Comp – Menu(GUI) Fixed matrix menu functions • Create menu • pixtel_UI_create_fixed_matrix_menu • Set menu • pixtel_UI_set_fixed_matrix_menu_current_theme • pixtel_UI_set_fixed_matrix_menu_theme • pixtel_UI_fixed_matrix_menu_auto_configure • pixtel_UI_fixed_matrix_menu_setup • pixtel_UI_resize_fixed_matrix_menu • pixtel_UI_move_fixed_matrix_menu • Menu goto functions • pixtel_UI_fixed_matrix_menu_locate_highlighted_item • pixtel_UI_fixed_matrix_menu_goto_next_item • pixtel_UI_fixed_matrix_menu_goto_previous_item • pixtel_UI_fixed_matrix_menu_goto_previous_row • pixtel_UI_fixed_matrix_menu_goto_next_row • pixtel_UI_fixed_matrix_menu_goto_previous_column • pixtel_UI_fixed_matrix_menu_goto_next_column • pixtel_UI_fixed_matrix_menu_goto_first_item • pixtel_UI_fixed_matrix_menu_goto_last_item • pixtel_UI_fixed_matrix_menu_goto_next_page • pixtel_UI_fixed_matrix_menu_goto_previous_page • pixtel_UI_fixed_matrix_menu_goto_item • Set menuitems functions • pixtel_UI_set_fixed_matrix_menu_item_functions • pixtel_UI_set_fixed_matrix_menu_common_item_data • Show menu • pixtel_UI_show_fixed_matrix_menu Fixed list menu functions • Create menu • pixtel_UI_create_fixed_list_menu • Set menu • pixtel_UI_set_fixed_list_menu_current_theme • pixtel_UI_set_fixed_list_menu_theme • pixtel_UI_resize_fixed_list_menu • pixtel_UI_move_fixed_list_menu • Menu goto functions • pixtel_UI_fixed_list_menu_goto_item • pixtel_UI_fixed_list_menu_goto_next_item • pixtel_UI_fixed_list_menu_goto_previous_item • pixtel_UI_fixed_list_menu_goto_next_page • pixtel_UI_fixed_list_menu_goto_previous_page • pixtel_UI_fixed_list_menu_goto_first_item • pixtel_UI_fixed_list_menu_goto_last_item • Set menuitems functions • pixtel_UI_set_fixed_list_menu_item_functions • pixtel_UI_set_fixed_list_menu_common_item_data • Show menu • pixtel_UI_show_fixed_list_menu

  47. 3.2.1.4 Comp – MenuItem(GUI) Icontext • Create • pixtel_UI_create_fixed_icontext_menuitem • Set • pixtel_UI_set_fixed_icontext_menuitem_current_theme • pixtel_UI_set_fixed_icontext_menuitem_theme • pixtel_UI_fixed_icontext_menuitem_set_text_position • pixtel_UI_fixed_icontext_menuitem_set_icon_position • pixtel_UI_resize_fixed_icontext_menuitem • Item functions • pixtel_UI_hide_fixed_icontext_menuitem • pixtel_UI_measure_fixed_icontext_menuitem • pixtel_UI_highlight_fixed_icontext_menuitem • pixtel_UI_remove_highlight_fixed_icontext_menuitem • Show • pixtel_UI_show_fixed_icontext_menuitem Text functions • Create • pixtel_UI_create_fixed_text_menuitem • Set • pixtel_UI_set_fixed_text_menuitem_theme • pixtel_UI_set_fixed_text_menuitem_current_theme • pixtel_UI_fixed_text_menuitem_set_text_position • pixtel_UI_resize_fixed_text_menuitem • Item functions • pixtel_UI_measure_fixed_text_menuitem • pixtel_UI_highlight_fixed_text_menuitem • pixtel_UI_remove_highlight_fixed_text_menuitem • Show • pixtel_UI_show_fixed_text_menuitem Icontext list • Create • pixtel_UI_create_fixed_icontext_list_menuitem • Set • pixtel_UI_set_fixed_icontext_list_menuitem_current_theme • pixtel_UI_set_fixed_icontext_list_menuitem_theme • pixtel_UI_fixed_icontext_list_menuitem_set_post_display • pixtel_UI_fixed_icontext_list_menuitem_set_text_coordinates • pixtel_UI_fixed_icontext_list_menuitem_set_icon_coordinates • pixtel_UI_resize_fixed_icontext_list_menuitem • Item functions • pixtel_UI_measure_fixed_icontext_list_menuitem • pixtel_UI_highlight_fixed_icontext_list_menuitem • pixtel_UI_remove_highlight_fixed_icontext_list_menuitem • Show • pixtel_UI_show_fixed_icontext_list_menuitem Twostate • Create • pixtel_UI_create_fixed_twostate_menuitem • Set • pixtel_UI_set_fixed_twostate_menuitem_current_theme • pixtel_UI_set_fixed_twostate_menuitem_theme • pixtel_UI_fixed_twostate_menuitem_set_text_position • pixtel_UI_fixed_twostate_menuitem_set_icon_position • pixtel_UI_fixed_twostate_menuitem_set_icons • pixtel_UI_resize_fixed_twostate_menuitem • Item functions • pixtel_UI_measure_fixed_twostate_menuitem • pixtel_UI_highlight_fixed_twostate_menuitem • pixtel_UI_remove_highlight_fixed_twostate_menuitem • Show • pixtel_UI_show_fixed_twostate_menuitem

  48. 3.2.1.5 Comp – Fixed list menu Example(GUI) fixed_text_menuitem common_item; // common item data fixed_text_menuitem_type item_list [10]; // 10 items in the list void * item_pointers [10]; // 10 item pointers for the 10 items fixed_list_menu demo_menu; // sample fixed menu /* Initialization */ … for( k=0; k<10; k++) { item_pointers[k]=(void*) item_list[k]; // initialize the list of pointers } … item_list[0].text=”one”; // add the items item_list[1].text=”two”; …. Item_list[9].text=”nine”; … /* Association with a fixed list menu */ pixtel_UI_create_fixed_list_menu(&demo_menu,0,0,120,120); demo_menu.n_items=10; demo_menu.items=item_pointers; demo_menu.common_item_data=&common_item; pixtel_UI_set_fixed_list_menu_item_functions(&demo_menu, pixtel_UI_show_fixed_text_menuitem, // Display function pixtel_UI_measure_fixed_text_menuitem, // Measure function pixtel_UI_highlight_fixed_text_menuitem, // Highlight function pixtel_UI_remove_highlight_fixed_text_menuitem, // Remove highlight function dummy_function); // Hide function (In this case a dummy) pixtel_UI_show_fixed_list_menu(&demo_menu); // Display the fixed menu

  49. 3.2.1.6 Comp – Fixed matrix menu Example(GUI) fixed_text_menuitem common_item; // common item data fixed_text_menuitem_type item_list [10]; // 10 items in the list void * item_pointers [10]; // 10 item pointers for the 10 items fixed_matrix_menu demo_menu; /* Initialization */ … for( k=0; k<10; k++) { item_pointers[k]=(void*) item_list[k]; // initialize the list of pointers } … item_list[0].text=”one”; // add the items item_list[1].text=”two”; …. Item_list[9].text=”nine”; … /* Association with the fixed matrix menu */ pixtel_UI_create_fixed_matrix_menu(&demo_menu,0,0,120,120); pixtel_UI_fixed_matrix_setup(&demo_menu,32,32,3,0); // 3 columns, n rows demo_menu.n_items=10; demo_menu.items=item_pointers; demo_menu.common_item_data=&common_item; pixtel_UI_set_fixed_matrix_menu_item_functions(&demo_menu, pixtel_UI_show_fixed_text_menuitem, // Display function pixtel_UI_measure_fixed_text_menuitem, // Measure function pixtel_UI_highlight_fixed_text_menuitem, // Highlight function pixtel_UI_remove_highlight_fixed_text_menuitem, // Remove highlight function dummy_function); // Hide function (In this case a dummy) pixtel_UI_show_fixed_matrix_menu(&demo_menu); // Display the fixed menu

  50. 3.2.2.1 Comp – Button(GUI) Text button functions • Create • pixtel_UI_create_text_button • Set • pixtel_UI_set_text_button_current_theme • pixtel_UI_set_text_button_theme • pixtel_UI_set_text_button_BG_theme • pixtel_UI_text_button_set_text_position • Show • pixtel_UI_show_text_button Button functions • Create • pixtel_UI_create_button • Set • pixtel_UI_set_button_current_theme • pixtel_UI_set_button_theme • Show • pixtel_UI_show_button Icon button functions • Create • pixtel_UI_create_icon_button • Set • pixtel_UI_set_icon_button_current_theme • pixtel_UI_set_icon_button_theme • pixtel_UI_set_icon_button_BG_theme • pixtel_UI_resize_icon_button • pixtel_UI_move_icon_button • pixtel_UI_icon_button_set_icon_positon • pixtel_UI_icon_button_set_icon • Show • pixtel_UI_show_icon_button Icontext button functions • Create • pixtel_UI_create_icontext_button • Set • pixtel_UI_set_icontext_button_current_theme • pixtel_UI_set_icontext_button_theme • pixtel_UI_set_icontext_button_BG_theme • pixtel_UI_resize_icontext_button • pixtel_UI_move_icontext_button • pixtel_UI_icontext_button_set_icon_positon • pixtel_UI_icontext_button_set_text_position • pixtel_UI_icontext_button_set_icon • Show • pixtel_UI_show_icontext_button