2 * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <appcore_base.h>
24 typedef struct _appcore_ui_base_window_ops {
25 void (*show)(int type, void *event, void *data);
26 void (*hide)(int type, void *event, void *data);
27 void (*lower)(int type, void *event, void *data);
28 void (*visibility)(int type, void *event, void *data);
29 } appcore_ui_base_window_ops;
31 typedef struct _appcore_ui_base_ops {
32 int (*pause) (void *data);
33 int (*resume) (void *data);
34 appcore_base_ops base;
35 appcore_ui_base_window_ops window;
36 } appcore_ui_base_ops;
42 enum appcore_ui_base_hint {
43 APPCORE_UI_BASE_HINT_WINDOW_GROUP_CONTROL = 0x1,
44 APPCORE_UI_BASE_HINT_WINDOW_STACK_CONTROL = 0x2,
45 APPCORE_UI_BASE_HINT_BG_LAUNCH_CONTROL = 0x4,
46 APPCORE_UI_BASE_HINT_HW_ACC_CONTROL = 0x8,
47 APPCORE_UI_BASE_HINT_WINDOW_AUTO_CONTROL = 0x10,
50 int appcore_ui_base_on_receive(aul_type type, bundle *b);
51 int appcore_ui_base_on_create(void);
52 int appcore_ui_base_on_terminate(void);
53 int appcore_ui_base_on_pause(void);
54 int appcore_ui_base_on_resume(void);
55 int appcore_ui_base_on_control(bundle *b);
56 void appcore_ui_base_window_on_show(int type, void *event);
57 void appcore_ui_base_window_on_hide(int type, void *event);
58 void appcore_ui_base_window_on_lower(int type, void *event);
59 void appcore_ui_base_window_on_visibility(int type, void *event);
60 int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **argv,
61 void *data, unsigned int hint);
62 void appcore_ui_base_fini(void);
63 appcore_ui_base_ops appcore_ui_base_get_default_ops(void);
64 void appcore_ui_base_pause(void);
65 void appcore_ui_base_resume(void);
66 bool appcore_ui_base_is_resumed(void);
67 void appcore_ui_base_exit(void);
68 void appcore_ui_base_group_add();
69 void appcore_ui_base_group_remove();
70 unsigned int appcore_ui_base_get_main_window(void);
71 unsigned int appcore_ui_base_get_main_surface(void);