2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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 __CLK_FWK_VIEW_H__
18 #define __CLK_FWK_VIEW_H__
20 #include <Elementary.h>
21 #include "clock_fwk_define.h"
22 /**********************************************************************
23 ******************define, struct ,typedef, union, enum, global val *************************************
24 ***********************************************************************/
26 #define MAX_CLK_FWK_VIEW_LAYER (10)
28 typedef struct _clk_layout {
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);
39 Eina_Bool is_create; // EINA_TRUE:exist
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);
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);
58 #endif /* __CLK_FWK_VIEW_H__ */