024cfa9b62330a6865e799f4d0638dc336ba85fc
[platform/core/appfw/appcore-widget.git] / include / widget_app_internal.h
1 /*
2  * Copyright (c) 2015 - 2016 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 __TIZEN_APPFW_WIDGET_APP_INTERNAL_H__
18 #define __TIZEN_APPFW_WIDGET_APP_INTERNAL_H__
19
20 #include <widget_app.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /**
27  * For in-house applications
28  *
29  */
30 typedef struct {
31         struct __pointer {
32                 double x;
33                 double y;
34                 int down;
35         } pointer;
36
37         struct __part {
38                 double sx;
39                 double sy;
40                 double ex;
41                 double ey;
42         } part;
43
44 } widget_obj_event_info_s;
45
46 typedef int (*widget_instance_text_signal_cb)(widget_context_h context,
47                 const char *signal_name, const char *source,
48                 widget_obj_event_info_s *info, void *user_data);
49
50 typedef struct _widget_obj_private_ops {
51         widget_instance_text_signal_cb text_signal;
52 } widget_obj_private_ops_s;
53
54 typedef struct _widget_class_factory_full widget_class_factory_full_s;
55 typedef const widget_class_factory_full_s *(*widget_class_factory_override_text_signal)(widget_instance_text_signal_cb op);
56 typedef widget_class_h (*_widget_class_factory_operation_make)(widget_instance_lifecycle_callback_s callback);
57
58 struct _widget_class_factory_full {
59         widget_class_factory_override_text_signal override_text_signal;
60 };
61
62 const widget_class_factory_full_s *widget_app_get_class_factory(void);
63
64 #ifdef __cplusplus
65 }
66 #endif
67
68 #endif /* __TIZEN_APPFW_WIDGET_APP_INTERNAL_H__ */
69