2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __COMMON_UI_H__
18 #define __COMMON_UI_H__
20 #include <Elementary.h>
25 char *_get_timestr_from_milseconds(int mseconds);
26 void _set_object_text(Evas_Object *lbl, char *text, int size,
28 Evas_Object *_add_box(Evas_Object *base);
29 Evas_Object *_add_base(Evas_Object *win, const char *layout);
30 void _object_mouse_moved(void *dt, Evas *e, Evas_Object *obj, void *ei);
31 void _genlist_mouse_moved(void *dt, Evas *e, Evas_Object *obj, void *ei);
32 void _gengrid_mouse_moved(void *dt, Evas *e,
33 Evas_Object *obj, void *event_info);
34 void _update_playback_view(enum EAddType type,
35 Evas_Object *layout, Elm_Object_Item *focused_item);
36 void _create_message_box(Evas_Object *base, const char *msg);
37 Evas_Object *_create_remove_popup(Evas_Object *base, const char *msg,
38 Evas_Object_Event_Cb _close_cb, Evas_Smart_Cb _remove_cb,
39 Evas_Smart_Cb _cancel_cb, void *dt);
40 #endif /*__COMMON_UI_H__*/