/* * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __UTILS_H__ #define __UTILS_H__ #include #define ELM_SCALE elm_config_scale_get() #define i18n_init() bindtextdomain(PACKAGE, LOCALEDIR) char *utils_get_translation_str(const char *msgid); Evas_Object *utils_add_btn(Evas_Object *parent, char *style, const char *text, Eina_Bool event); Evas_Object *utils_add_scroller(Evas_Object *base); Evas_Object *utils_add_box(Evas_Object *base); Evas_Object *utils_add_ctxpopup(Evas_Object *base, char *style); Evas_Object *utils_add_label(Evas_Object *base); Evas_Object *utils_add_entry(Evas_Object *parent); Evas_Object *utils_add_base(Evas_Object *parent); void utils_set_focus_directions(Eina_Array *btns, int cnt); #endif /* __UTILS_H__ */