apply FSL license
[pkgs/u/ui-gadget.git] / include / ug-manager.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
18
19
20
21 #ifndef __UG_MANAGER_H__
22 #define __UG_MANAGER_H__
23
24 #include <utilX.h>
25 #include "ug.h"
26
27 int ugman_ug_add(struct ui_gadget *parent, struct ui_gadget *ug);
28 struct ui_gadget *ugman_ug_load(struct ui_gadget *parent,
29                                 const char *name,
30                                 enum ug_mode mode,
31                                 bundle *data,
32                                 struct ug_cbs *cbs);
33 int ugman_ug_del(struct ui_gadget *ug);
34 int ugman_ug_del_all(void);
35
36 int ugman_init(Display *disp, Window xid, void *win, enum ug_option opt);
37 int ugman_resume(void);
38 int ugman_pause(void);
39 int ugman_send_event(enum ug_event event);
40 int ugman_send_key_event(enum ug_key_event event);
41 int ugman_send_message(struct ui_gadget *ug, bundle *msg);
42
43 void *ugman_get_window(void);
44
45 int ugman_ug_exist(struct ui_gadget *ug);
46
47 #endif                          /* __UG_MANAGER_H__ */