8dbd13b8467c3f1177ba7caa9fd580ddf71dfde0
[apps/home/clock.git] / clock-common / include / clock_fwk_view.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 __CLK_FWK_VIEW_H__
18 #define __CLK_FWK_VIEW_H__
19
20 #include <Elementary.h>
21 #include "clock_fwk_define.h"
22 /**********************************************************************
23 ******************define, struct ,typedef, union, enum, global val *************************************
24 ***********************************************************************/
25
26 #define MAX_CLK_FWK_VIEW_LAYER (10)
27 //
28 typedef struct _clk_layout {
29         Evas_Object *ly_main;
30
31 } clk_layout;
32 //
33 typedef struct _clk_view {
34         int (*create) (void *cb);
35         int (*destroy) (void *cb);
36         int (*update) (void *cb);
37         int (*cleanup) (void *cb);
38
39         Eina_Bool is_create;    // EINA_TRUE:exist
40         int layer;              //layer
41
42 } clk_view;
43
44 /**********************************************************************
45 ******************Global function ref*************************************
46 ***********************************************************************/
47 int clk_view_node_set_cur_view(clk_view *view);
48 int clk_view_node_table_intialize();
49 int clk_view_node_table_register(clk_view *view, clk_view *topview);
50 int clk_view_cb_at_endKey(void *cb);
51
52 extern int clk_view_create(clk_view *view, void *cb);
53 extern int clk_view_update(clk_view *view, void *cb);
54 extern int clk_view_destroy(clk_view *view, void *cb);
55 extern int clk_view_cleanup(clk_view *view, void *cb);
56 extern int clk_view_change(clk_view *from_view, clk_view *to_view, void *cb);
57
58 #endif                          /* __CLK_FWK_VIEW_H__ */