Tizen release 1.0
[pkgs/u/ui-gadget.git] / include / ug-manager.h
1 /*
2  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * This file is part of the UI Gadget
5  * Written by Jayoun Lee <airjany@samsung.com>, Jinwoo Nam <jwoo.nam@samsung.com>
6  *
7  * PROPRIETARY/CONFIDENTIAL
8  *
9  * This software is the confidential and proprietary information of
10  * SAMSUNG ELECTRONICS (Confidential Information).
11  * You shall not disclose such Confidential Information and shall
12  * use it only in accordance with the terms of the license agreement
13  * you entered into with SAMSUNG ELECTRONICS.  SAMSUNG make no
14  * representations or warranties about the suitability
15  * of the software, either express or implied, including but not
16  * limited to the implied warranties of merchantability, fitness for a particular purpose, or non-
17  * infringement. SAMSUNG shall not be liable for any damages suffered by licensee as
18  * a result of using, modifying or distributing this software or its derivatives.
19  *
20  */
21
22 #ifndef __UG_MANAGER_H__
23 #define __UG_MANAGER_H__
24
25 #include <utilX.h>
26 #include "ug.h"
27
28 int ugman_ug_add(struct ui_gadget *parent, struct ui_gadget *ug);
29 struct ui_gadget *ugman_ug_load(struct ui_gadget *parent,
30                                 const char *name,
31                                 enum ug_mode mode,
32                                 bundle *data,
33                                 struct ug_cbs *cbs);
34 int ugman_ug_del(struct ui_gadget *ug);
35 int ugman_ug_del_all(void);
36
37 int ugman_init(Display *disp, Window xid, void *win, enum ug_option opt);
38 int ugman_resume(void);
39 int ugman_pause(void);
40 int ugman_send_event(enum ug_event event);
41 int ugman_send_key_event(enum ug_key_event event);
42 int ugman_send_message(struct ui_gadget *ug, bundle *msg);
43
44 void *ugman_get_window(void);
45
46 int ugman_ug_exist(struct ui_gadget *ug);
47
48 #endif                          /* __UG_MANAGER_H__ */