action_menu: draw menu area using table object
[profile/tv/apps/native/air_mediahub.git] / include / util / util.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __AIR_MEDIAHUB_UTIL_H__
18 #define __AIR_MEDIAHUB_UTIL_H__
19
20 #include <media_content.h>
21 #include <app_media.h>
22
23 void util_set_alpha_color(Evas_Object *obj, int alpha);
24 Evas_Object *util_add_box(Evas_Object *base);
25 Evas_Object *util_add_gengrid(Evas_Object *base, int item_size_x,
26                         int item_size_y, Eina_Bool horizontal);
27 Evas_Object *util_add_genlist(Evas_Object *base);
28 Evas_Object *util_add_image(Evas_Object *base, const char *file);
29 Evas_Object *util_add_scroller(Evas_Object *base);
30 Evas_Object *util_add_table(Evas_Object *base, int padding_x, int padding_y);
31
32 void util_time_string(char *str, int size, unsigned int ms, bool full);
33 void util_up_string(char *str);
34
35 int util_get_media_index(Eina_List *list, void *info);
36 int util_get_media_index_from_id(Eina_List *list, const char *id);
37 app_media *util_find_media_info(Eina_List *list, const char *id);
38
39 #endif /* __AIR_MEDIAHUB_UTIL_H__ */