849677897a127ea9ada3b406c2e7ea3ccb88930c
[apps/native/widget/widget.git] / include / binder.h
1 /*
2  * Copyright 2013  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.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 /**
18  * @brief
19  * Abstracted Data Type of Virtual Window
20  */
21 typedef struct virtual_window_info {
22         char *id; /**< Identification */
23         widget_buffer_h handle; /**< Livebox buffer handle */
24         enum win_type {
25                 VWIN_SW_BUF = 0x00, /**< S/W buffer */
26                 VWIN_GEM    = 0x01, /**< GEM buffer */
27                 VWIN_PIXMAP = 0x02, /**< PIXMAP */
28                 VWIN_ERROR  = 0x03  /**< Unknown */
29         } type;
30         Ecore_Evas *ee;
31         Evas *e;
32         int is_gbar;
33         int deleted;
34         int w;
35         int h;
36         unsigned int *resource_array;
37         int resource_cnt;
38
39         int pressed;
40
41         int orientation;
42 } *vwin_info_t;
43
44 extern int binder_widget_send_updated(const char *pkgname, const char *id, widget_buffer_h handle, int idx, int x, int y, int w, int h, int gbar, const char *descfile);
45 extern int binder_widget_update_extra_info(const char *id, const char *content, const char *title, const char *icon, const char *name);
46 extern const char *binder_widget_find_pkgname(const char *uri);
47 extern Ecore_Evas *binder_ecore_evas_new(vwin_info_t info);
48 extern int binder_widget_auto_align(void);
49
50 #define GL_ENGINE "opengl_x11"
51
52 /* End of a file */