Tizen 2.0 Release
[apps/core/preloaded/ug-image-viewer-efl.git] / main / src / control / ivug-context.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://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 #ifndef __IVUG_CONTEXT_H__
19 #define __IVUG_CONTEXT_H__
20
21 #include "ivug-common.h"
22
23
24 #include "ivug-callback.h"
25
26 #include <ui-gadget.h>
27
28 /*
29         Managing context(instance)
30 */
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 bool
36 ivug_context_deinit(ui_gadget_h ug);
37
38 bool
39 ivug_context_init(ui_gadget_h ug);
40
41 void
42 ivug_context_destroy_me(const char *file, int line);
43
44 #define DESTROY_ME() \
45         do { \
46                 ivug_context_destroy_me(__FILE__, __LINE__); \
47         } while(0)
48
49 void
50 gSetRotationDegree(int degree);
51
52 Elm_Theme*
53 gGetSystemTheme(void);
54
55 int
56 gGetRotationDegree(void);
57
58 ui_gadget_h
59 gGetUGHandle(void);
60
61 Evas_Object *
62 gGetCurrentWindow(void);
63
64
65 callback_handle_t *
66 gGetCallbackHandle(void);
67
68 bool
69 gIsDesktopMode(void);
70
71 void
72 gSetDesktopMode(bool isDesktop);
73
74 int gGetScreenWidth();
75 int gGetScreenHeight();
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif //__IVUG_CONTEXT_H__