From: Daniel Juyung Seo Date: Tue, 12 Jul 2011 02:00:23 +0000 (+0900) Subject: [SLP Merge] 2011/07/12 11:00 34a691da729cee2e39c71ad73eff4337c4a5402b X-Git-Tag: REL_F_I9200_20110722_1~8^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13b5647306b3e9f5703590129eebaaf4531ef840;p=framework%2Fuifw%2Felementary.git [SLP Merge] 2011/07/12 11:00 34a691da729cee2e39c71ad73eff4337c4a5402b --- 13b5647306b3e9f5703590129eebaaf4531ef840 diff --cc src/lib/Elementary.h.in index eb7013d,7a2def6..36c2d5f --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@@ -7979,264 -3455,6 +7979,262 @@@ extern "C" * segment item index. */ + EAPI Evas_Object *elm_grid_add(Evas_Object *parent); + EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h); + EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h); + EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, int x, int y, int w, int h); + EAPI void elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj); + EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear); + EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h); + EAPI void elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h); + + EAPI Evas_Object *elm_genscroller_add(Evas_Object *parent); + EAPI void elm_genscroller_world_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h); + + EAPI Evas_Object *elm_video_add(Evas_Object *parent); + EAPI void elm_video_file_set(Evas_Object *video, const char *filename); + EAPI void elm_video_uri_set(Evas_Object *video, const char *uri); + EAPI Evas_Object *elm_video_emotion_get(Evas_Object *video); + EAPI void elm_video_play(Evas_Object *video); + EAPI void elm_video_pause(Evas_Object *video); + EAPI void elm_video_stop(Evas_Object *video); + EAPI Eina_Bool elm_video_is_playing(Evas_Object *video); + EAPI Eina_Bool elm_video_is_seekable(Evas_Object *video); + EAPI Eina_Bool elm_video_audio_mute_get(Evas_Object *video); + EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute); + EAPI double elm_video_audio_level_get(Evas_Object *video); + EAPI void elm_video_audio_level_set(Evas_Object *video, double volume); + EAPI double elm_video_play_position_get(Evas_Object *video); + EAPI void elm_video_play_position_set(Evas_Object *video, double position); + EAPI double elm_video_play_length_get(Evas_Object *video); + EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember); + EAPI Eina_Bool elm_video_remember_position_get(Evas_Object *video); + EAPI const char *elm_video_title_get(Evas_Object *video); + + EAPI Evas_Object *elm_player_add(Evas_Object *parent); + EAPI void elm_player_video_set(Evas_Object *player, Evas_Object *video); + + /* datefield */ + typedef enum _Elm_Datefield_Layout + { + ELM_DATEFIELD_LAYOUT_TIME, + ELM_DATEFIELD_LAYOUT_DATE, + ELM_DATEFIELD_LAYOUT_DATEANDTIME + } Elm_Datefield_Layout; + + EAPI Evas_Object *elm_datefield_add(Evas_Object *parent); + EAPI void elm_datefield_layout_set(Evas_Object *obj, Elm_Datefield_Layout layout); + EAPI Elm_Datefield_Layout elm_datefield_layout_get(const Evas_Object *obj); + EAPI void elm_datefield_date_set(Evas_Object *obj, int year, int month, int day, int hour, int min); + EAPI void elm_datefield_date_get(const Evas_Object *obj, int *year, int *month, int *day, int *hour, int *min); + EAPI Eina_Bool elm_datefield_date_max_set(Evas_Object *obj, int year, int month, int day); + EAPI void elm_datefield_date_max_get(const Evas_Object *obj, int *year, int *month, int *day); + EAPI Eina_Bool elm_datefield_date_min_set(Evas_Object *obj, int year, int month, int day); + EAPI void elm_datefield_date_min_get(const Evas_Object *obj, int *year, int *month, int *day); + EAPI void elm_datefield_time_mode_set(Evas_Object *obj, Eina_Bool mode); + EAPI Eina_Bool elm_datefield_time_mode_get(const Evas_Object *obj); + EAPI void elm_datefield_date_format_set(Evas_Object *obj, const char *fmt); + EAPI const char *elm_datefield_date_format_get(const Evas_Object *obj); + EAPI void elm_datefield_input_panel_state_callback_add(Evas_Object *obj, void (*pEventCallbackFunc) (void *data, Evas_Object *obj, int value), void *data); + EAPI void elm_datefield_input_panel_state_callback_del(Evas_Object *obj, void (*pEventCallbackFunc) (void *data, Evas_Object *obj, int value)); + /* smart callbacks called: + * "changed" - when datefield entry is changed, this signal is sent. + */ + + /* popup */ + typedef enum _Elm_Popup_Response + { + ELM_POPUP_RESPONSE_NONE = -1, + ELM_POPUP_RESPONSE_TIMEOUT = -2, + ELM_POPUP_RESPONSE_OK = -3, + ELM_POPUP_RESPONSE_CANCEL = -4, + ELM_POPUP_RESPONSE_CLOSE = -5 + } Elm_Popup_Response; + + typedef enum _Elm_Popup_Mode + { + ELM_POPUP_TYPE_NONE = 0, + ELM_POPUP_TYPE_ALERT = (1 << 0) + } Elm_Popup_Mode; + + typedef enum _Elm_Popup_Orient + { + ELM_POPUP_ORIENT_TOP, + ELM_POPUP_ORIENT_CENTER, + ELM_POPUP_ORIENT_BOTTOM, + ELM_POPUP_ORIENT_LEFT, + ELM_POPUP_ORIENT_RIGHT, + ELM_POPUP_ORIENT_TOP_LEFT, + ELM_POPUP_ORIENT_TOP_RIGHT, + ELM_POPUP_ORIENT_BOTTOM_LEFT, + ELM_POPUP_ORIENT_BOTTOM_RIGHT + } Elm_Popup_Orient; + + /* smart callbacks called: + * "response" - when ever popup is closed, this signal is sent with appropriate response id.". + */ + + EAPI Evas_Object *elm_popup_add(Evas_Object *parent); + EAPI void elm_popup_desc_set(Evas_Object *obj, const char *text); + EAPI const char *elm_popup_desc_get(Evas_Object *obj); + EAPI void elm_popup_title_label_set(Evas_Object *obj, const char *text); + EAPI const char *elm_popup_title_label_get(Evas_Object *obj); + EAPI void elm_popup_title_icon_set(Evas_Object *obj, Evas_Object *icon); + EAPI Evas_Object *elm_popup_title_icon_get(Evas_Object *obj); + EAPI void elm_popup_content_set(Evas_Object *obj, Evas_Object *content); + EAPI Evas_Object *elm_popup_content_get(Evas_Object *obj); + EAPI void elm_popup_buttons_add(Evas_Object *obj,int no_of_buttons, const char *first_button_text, ...); + EAPI Evas_Object *elm_popup_with_buttons_add(Evas_Object *parent, const char *title, const char *desc_text,int no_of_buttons, const char *first_button_text, ... ); + EAPI void elm_popup_timeout_set(Evas_Object *obj, double timeout); + EAPI void elm_popup_mode_set(Evas_Object *obj, Elm_Popup_Mode mode); + EAPI void elm_popup_response(Evas_Object *obj, int response_id); + EAPI void elm_popup_orient_set(Evas_Object *obj, Elm_Popup_Orient orient); + EAPI int elm_popup_run(Evas_Object *obj); + + /* NavigationBar */ + typedef enum + { + ELM_NAVIGATIONBAR_FUNCTION_BUTTON1, + ELM_NAVIGATIONBAR_FUNCTION_BUTTON2, + ELM_NAVIGATIONBAR_FUNCTION_BUTTON3, + ELM_NAVIGATIONBAR_BACK_BUTTON + } Elm_Navi_Button_Type; + + EAPI Evas_Object *elm_navigationbar_add(Evas_Object *parent); + EAPI void elm_navigationbar_push(Evas_Object *obj, const char *title, Evas_Object *fn_btn1, Evas_Object *fn_btn2, Evas_Object *fn_btn3, Evas_Object *content); + EAPI void elm_navigationbar_pop(Evas_Object *obj); + EAPI void elm_navigationbar_to_content_pop(Evas_Object *obj, Evas_Object *content); + EAPI void elm_navigationbar_title_label_set(Evas_Object *obj, Evas_Object *content, const char *title); + EAPI const char *elm_navigationbar_title_label_get(Evas_Object *obj, Evas_Object *content); + EAPI void elm_navigationbar_title_object_add(Evas_Object *obj, Evas_Object *content, Evas_Object *title_obj); + EAPI Eina_List *elm_navigationbar_title_object_list_get(Evas_Object *obj, Evas_Object *content); + EAPI Evas_Object *elm_navigationbar_content_top_get(Evas_Object *obj); + EAPI Evas_Object *elm_navigationbar_content_bottom_get(Evas_Object *obj); + EAPI void elm_navigationbar_hidden_set(Evas_Object *obj, Eina_Bool hidden); + EAPI void elm_navigationbar_title_button_set(Evas_Object *obj, Evas_Object *content, Evas_Object *button, Elm_Navi_Button_Type button_type); + EAPI Evas_Object *elm_navigationbar_title_button_get(Evas_Object *obj, Evas_Object *content, Elm_Navi_Button_Type button_type); + EAPI const char *elm_navigationbar_subtitle_label_get(Evas_Object *obj, Evas_Object *content); + EAPI void elm_navigationbar_subtitle_label_set(Evas_Object *obj, Evas_Object *content, const char *subtitle); + EAPI void elm_navigationbar_title_object_list_unset(Evas_Object *obj, Evas_Object *content, Eina_List **list); + EAPI void elm_navigationbar_animation_disabled_set(Evas_Object *obj, Eina_Bool disable); + EAPI void elm_navigationbar_title_object_visible_set(Evas_Object *obj, Evas_Object *content, Eina_Bool visible); + Eina_Bool elm_navigationbar_title_object_visible_get(Evas_Object *obj, Evas_Object *content); + EAPI void elm_navigationbar_title_icon_set(Evas_Object *obj, Evas_Object *content, Evas_Object *icon); + EAPI Evas_Object *elm_navigationbar_title_icon_get(Evas_Object *obj, Evas_Object *content); + + /* NavigationBar */ + typedef enum + { + ELM_NAVIGATIONBAR_EX_BACK_BUTTON, + ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON1, + ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON2, + ELM_NAVIGATIONBAR_EX_FUNCTION_BUTTON3, + ELM_NAVIGATIONBAR_EX_MAX + } Elm_Navi_ex_Button_Type; + typedef struct _Elm_Navigationbar_ex_Item Elm_Navigationbar_ex_Item; + + EAPI Evas_Object *elm_navigationbar_ex_add(Evas_Object *parent); + EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_push(Evas_Object *obj, Evas_Object *content, const char *item_style); + EAPI void elm_navigationbar_ex_item_pop(Evas_Object *obj); + EAPI void elm_navigationbar_ex_item_promote(Elm_Navigationbar_ex_Item* item); + EAPI void elm_navigationbar_ex_to_item_pop(Elm_Navigationbar_ex_Item* item); + EAPI void elm_navigationbar_ex_item_title_label_set(Elm_Navigationbar_ex_Item *item, const char *title); + EAPI const char *elm_navigationbar_ex_item_title_label_get(Elm_Navigationbar_ex_Item* item); + EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_top_get(const Evas_Object *obj); + EAPI Elm_Navigationbar_ex_Item *elm_navigationbar_ex_item_bottom_get(const Evas_Object *obj); + EAPI void elm_navigationbar_ex_item_title_button_set(Elm_Navigationbar_ex_Item* item, char *btn_label, Evas_Object *icon, int button_type, Evas_Smart_Cb func, const void *data); + EAPI Evas_Object *elm_navigationbar_ex_item_title_button_get(Elm_Navigationbar_ex_Item* item, int button_type); + EAPI void elm_navigationbar_ex_item_title_object_set(Elm_Navigationbar_ex_Item* item, Evas_Object *title_obj); + EAPI Evas_Object *elm_navigationbar_ex_item_title_object_unset(Elm_Navigationbar_ex_Item* item); + EAPI void elm_navigationbar_ex_item_title_hidden_set(Elm_Navigationbar_ex_Item* item, Eina_Bool hidden); + EAPI Evas_Object *elm_navigationbar_ex_item_title_object_get(Elm_Navigationbar_ex_Item* item); + EAPI const char *elm_navigationbar_ex_item_subtitle_label_get(Elm_Navigationbar_ex_Item* item); + EAPI void elm_navigationbar_ex_item_subtitle_label_set( Elm_Navigationbar_ex_Item* item, const char *subtitle); + EAPI void elm_navigationbar_ex_item_style_set(Elm_Navigationbar_ex_Item* item, const char* item_style); + EAPI const char *elm_navigationbar_ex_item_style_get(Elm_Navigationbar_ex_Item* item); + EAPI Evas_Object *elm_navigationbar_ex_item_content_unset(Elm_Navigationbar_ex_Item* item); + EAPI Evas_Object *elm_navigationbar_ex_item_content_get(Elm_Navigationbar_ex_Item* item); + EAPI void elm_navigationbar_ex_delete_on_pop_set(Evas_Object *obj, Eina_Bool del_on_pop); + EAPI Evas_Object *elm_navigationbar_ex_item_icon_get(Elm_Navigationbar_ex_Item* item); + EAPI void elm_navigationbar_ex_item_icon_set(Elm_Navigationbar_ex_Item* item, Evas_Object *icon); + EAPI Evas_Object *elm_navigationbar_ex_item_title_button_unset(Elm_Navigationbar_ex_Item* item, int button_type); + EAPI void elm_navigationbar_ex_animation_disable_set(Evas_Object *obj, Eina_Bool disable); + EAPI void elm_navigationbar_ex_title_object_visible_set(Elm_Navigationbar_ex_Item* item, Eina_Bool visible); + Eina_Bool elm_navigationbar_ex_title_object_visible_get(Elm_Navigationbar_ex_Item* item); + + + /* Control Bar */ + #define CONTROLBAR_SYSTEM_ICON_ALBUMS "controlbar_albums" + #define CONTROLBAR_SYSTEM_ICON_ARTISTS "controlbar_artists" + #define CONTROLBAR_SYSTEM_ICON_SONGS "controlbar_songs" + #define CONTROLBAR_SYSTEM_ICON_PLAYLIST "controlbar_playlist" + #define CONTROLBAR_SYSTEM_ICON_MORE "controlbar_more" + #define CONTROLBAR_SYSTEM_ICON_CONTACTS "controlbar_contacts" + #define CONTROLBAR_SYSTEM_ICON_DIALER "controlbar_dialer" + #define CONTROLBAR_SYSTEM_ICON_FAVORITES "controlbar_favorites" + #define CONTROLBAR_SYSTEM_ICON_LOGS "controlbar_logs" + + typedef enum _Elm_Controlbar_Mode_Type + { + ELM_CONTROLBAR_MODE_DEFAULT = 0, + ELM_CONTROLBAR_MODE_TRANSLUCENCE, + ELM_CONTROLBAR_MODE_TRANSPARENCY, + ELM_CONTROLBAR_MODE_LARGE, + ELM_CONTROLBAR_MODE_SMALL, + ELM_CONTROLBAR_MODE_LEFT, + ELM_CONTROLBAR_MODE_RIGHT + } Elm_Controlbar_Mode_Type; + + typedef struct _Elm_Controlbar_Item Elm_Controlbar_Item; - + EAPI Evas_Object *elm_controlbar_add(Evas_Object *parent); + EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_append(Evas_Object *obj, const char *icon_path, const char *label, Evas_Object *view); + EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_prepend(Evas_Object *obj, const char *icon_path, const char *label, Evas_Object *view); + EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, const char *icon_path, const char *label, Evas_Object *view); + EAPI Elm_Controlbar_Item *elm_controlbar_tab_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, const char *icon_path, const char *label, Evas_Object *view); + EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_append(Evas_Object *obj, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data); + EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_prepend(Evas_Object *obj, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data); + EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data); + EAPI Elm_Controlbar_Item *elm_controlbar_tool_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, const char *icon_path, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), void *data); + EAPI Elm_Controlbar_Item *elm_controlbar_object_item_append(Evas_Object *obj, Evas_Object *obj_item, const int sel); + EAPI Elm_Controlbar_Item *elm_controlbar_object_item_prepend(Evas_Object *obj, Evas_Object *obj_item, const int sel); + EAPI Elm_Controlbar_Item *elm_controlbar_object_item_insert_before(Evas_Object *obj, Elm_Controlbar_Item *before, Evas_Object *obj_item, const int sel); + EAPI Elm_Controlbar_Item *elm_controlbar_object_item_insert_after(Evas_Object *obj, Elm_Controlbar_Item *after, Evas_Object *obj_item, const int sel); - EAPI Evas_Object *elm_controlbar_object_item_object_get(Elm_Controlbar_Item *it); ++ EAPI Evas_Object *elm_controlbar_object_item_object_get(const Elm_Controlbar_Item *it); + EAPI void elm_controlbar_item_del(Elm_Controlbar_Item *it); + EAPI void elm_controlbar_item_select(Elm_Controlbar_Item *it); + EAPI void elm_controlbar_item_visible_set(Elm_Controlbar_Item *it, Eina_Bool bar); - EAPI Eina_Bool elm_controlbar_item_visible_get(Elm_Controlbar_Item * it); ++ EAPI Eina_Bool elm_controlbar_item_visible_get(const Elm_Controlbar_Item * it); + EAPI void elm_controlbar_item_disabled_set(Elm_Controlbar_Item * it, Eina_Bool disabled); - EAPI Eina_Bool elm_controlbar_item_disabled_get(Elm_Controlbar_Item * it); ++ EAPI Eina_Bool elm_controlbar_item_disabled_get(const Elm_Controlbar_Item * it); + EAPI void elm_controlbar_item_icon_set(Elm_Controlbar_Item *it, const char *icon_path); - EAPI Evas_Object *elm_controlbar_item_icon_get(Elm_Controlbar_Item *it); ++ EAPI Evas_Object *elm_controlbar_item_icon_get(const Elm_Controlbar_Item *it); + EAPI void elm_controlbar_item_label_set(Elm_Controlbar_Item *it, const char *label); - EAPI const char *elm_controlbar_item_label_get(Elm_Controlbar_Item *it); - EAPI Elm_Controlbar_Item *elm_controlbar_selected_item_get(Evas_Object *obj); - EAPI Elm_Controlbar_Item *elm_controlbar_first_item_get(Evas_Object *obj); - EAPI Elm_Controlbar_Item *elm_controlbar_last_item_get(Evas_Object *obj); - EAPI Eina_List *elm_controlbar_items_get(Evas_Object *obj); ++ EAPI const char *elm_controlbar_item_label_get(const Elm_Controlbar_Item *it); ++ EAPI Elm_Controlbar_Item *elm_controlbar_selected_item_get(const Evas_Object *obj); ++ EAPI Elm_Controlbar_Item *elm_controlbar_first_item_get(const Evas_Object *obj); ++ EAPI Elm_Controlbar_Item *elm_controlbar_last_item_get(const Evas_Object *obj); ++ EAPI const Eina_List *elm_controlbar_items_get(const Evas_Object *obj); + EAPI Elm_Controlbar_Item *elm_controlbar_item_prev(Elm_Controlbar_Item *it); + EAPI Elm_Controlbar_Item *elm_controlbar_item_next(Elm_Controlbar_Item *it); + EAPI void elm_controlbar_item_view_set(Elm_Controlbar_Item *it, Evas_Object * view); - EAPI Evas_Object *elm_controlbar_item_view_get(Elm_Controlbar_Item *it); ++ EAPI Evas_Object *elm_controlbar_item_view_get(const Elm_Controlbar_Item *it); + EAPI Evas_Object *elm_controlbar_item_view_unset(Elm_Controlbar_Item *it); ++ EAPI Evas_Object *elm_controlbar_item_button_get(const Elm_Controlbar_Item *it); + EAPI void elm_controlbar_mode_set(Evas_Object *obj, int mode); + EAPI void elm_controlbar_alpha_set(Evas_Object *obj, int alpha); + EAPI void elm_controlbar_item_auto_align_set(Evas_Object *obj, Eina_Bool auto_align); + EAPI void elm_controlbar_vertical_set(Evas_Object *obj, Eina_Bool vertical); + - + /* SearchBar */ + EAPI Evas_Object *elm_searchbar_add(Evas_Object *parent); + EAPI void elm_searchbar_text_set(Evas_Object *obj, const char *entry); + EAPI const char *elm_searchbar_text_get(Evas_Object *obj); + EAPI Evas_Object *elm_searchbar_entry_get(Evas_Object *obj); + EAPI void elm_searchbar_cancel_button_animation_set(Evas_Object *obj, Eina_Bool cancel_btn_ani_flag); + EAPI void elm_searchbar_cancel_button_set(Evas_Object *obj, Eina_Bool visible); + EAPI void elm_searchbar_clear(Evas_Object *obj); + EAPI void elm_searchbar_boundary_rect_set(Evas_Object *obj, Eina_Bool boundary); + - #ifdef __cplusplus } #endif