upload codes for TIZEN 2.0
[apps/home/clock.git] / clock-common / include / clock_fwk_widget.h
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18 #ifndef __CLK_FWK_WIDGET_H__
19 #define __CLK_FWK_WIDGET_H__
20
21 #include "clock_fwk_define.h"
22 #include <Elementary.h>
23 #include <alarm-engine.h>
24 #include <glib.h>
25 /**********************************************************************
26 ******************define, struct ,typedef, union, enum, global val *************************************
27 ***********************************************************************/
28
29 //******************define *************************************
30
31 //
32 typedef enum {
33         DG_SYTLE_TOP,
34         DG_SYTLE_MID,
35         DG_SYTLE_BOT,
36         DG_SYTLE_MAX,
37 } DialogueGroupStyle;
38 //******************typedef *************************************
39 typedef struct _RGBA_color RGBA_color;
40 typedef void (*EO_SMART_CB) (void *data, Evas_Object *obj, void *event_info);
41 //******************struct *************************************
42 struct _RGBA_color {
43         unsigned char r, g, b, a;
44 };
45 /**********************************************************************
46 ******************Global function ref*************************************
47 ***********************************************************************/
48 int widget_button_set(Evas_Object *btn, Eina_Bool bVisible, char *icon_path);
49
50 Elm_Object_Item *widget_naviframe_push(Evas_Object *navi_bar,
51                                        const char *title_label,
52                                        Evas_Object *prev_btn,
53                                        Evas_Object *next_btn,
54                                        Evas_Object *content,
55                                        const char *item_style,
56                                        Evas_Object *cbar);
57 Evas_Object *widget_create_controlbar(Evas_Object *parent, const char *style);
58
59 Evas_Object *widget_create_button(Evas_Object *parent, char *style,
60                                   const char *label, const char *icon_path,
61                                   EO_SMART_CB cb, void *cb_data);
62 Evas_Object *widget_create_slider(Evas_Object *parent, char *style,
63                                   char *indicator, double d_min, double d_max);
64 Evas_Object *widget_create_conformant(Evas_Object *win_main, char *style,
65                                       Evas_Object *content);
66 Evas_Object *widget_create_icon(Evas_Object *parent, const gchar *path);
67
68 Evas_Object *widget_create_box(Evas_Object *parent);
69 Evas_Object *widget_create_rectangle_blank(Evas_Object *obj,
70                                            Evas_Object *parent_box,
71                                            Evas_Coord minw, Evas_Coord minh);
72
73 Evas_Object *widget_create_layout(Evas_Object *parent);
74
75 Evas_Object *widget_create_editfield(Evas_Object *parent, gchar *title,
76                                      gchar *str, EO_SMART_CB clicked_cb,
77                                      void *data_clicked,
78                                      EO_SMART_CB unfocused_cb,
79                                      void *data_unfocused);
80
81 Evas_Object *widget_create_popup(Evas_Object *parent, char *content_str,
82                                  char *title_str, double timeout,
83                                  EO_SMART_CB response_cb, void *data);
84
85 Evas_Object *clk_widget_create_button(Evas_Object *parent,
86                                       const char *file, const char *group,
87                                       Edje_Color_Class *color_class,
88                                       Edje_Signal_Cb clicked_cb, void *data);
89
90 #endif                          //__CLK_FWK_WIDGET_H__