check rotation lock and set rotation info when ug launch
[framework/appfw/ui-gadget-1.git] / include / ug-manager.h
1 /*
2  *  UI Gadget
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jayoun Lee <airjany@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
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(ui_gadget_h parent, ui_gadget_h ug);
29 ui_gadget_h ugman_ug_load(ui_gadget_h parent,
30                                 const char *name,
31                                 enum ug_mode mode,
32                                 service_h service,
33                                 struct ug_cbs *cbs);
34 int ugman_ug_del(ui_gadget_h 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(ui_gadget_h ug, service_h msg);
43
44 void *ugman_get_window(void);
45
46 int ugman_ug_exist(ui_gadget_h ug);
47
48 #endif                          /* __UG_MANAGER_H__ */