2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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.
18 #ifndef __IVUG_CONTEXT_H__
19 #define __IVUG_CONTEXT_H__
21 #include "ivug-common.h"
24 #include "ivug-callback.h"
26 #include <ui-gadget.h>
29 Managing context(instance)
36 ivug_context_deinit(ui_gadget_h ug);
39 ivug_context_init(ui_gadget_h ug);
42 ivug_context_destroy_me(const char *file, int line);
44 #define DESTROY_ME() \
46 ivug_context_destroy_me(__FILE__, __LINE__); \
50 gSetRotationDegree(int degree);
53 gGetSystemTheme(void);
56 gGetRotationDegree(void);
62 gGetCurrentWindow(void);
66 gGetCallbackHandle(void);
72 gSetDesktopMode(bool isDesktop);
74 int gGetScreenWidth();
75 int gGetScreenHeight();
81 #endif //__IVUG_CONTEXT_H__