Replace focus out handler with evas function
[platform/core/uifw/libscl-core.git] / src / sclcoreui-efl.h
1 /*
2  * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
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 __SCL_CORE_UI_EFL_H__
19 #define __SCL_CORE_UI_EFL_H__
20
21 #include "sclcoreui.h"
22
23 #include <Ecore.h>
24
25 //SCL_BEGIN_DECLS
26
27 namespace scl
28 {
29
30 typedef struct {
31     sclwindow window;
32 } OptionWindowInfo;
33
34 class CSCLCoreUIEFL : public CSCLCoreUI
35 {
36 public:
37     CSCLCoreUIEFL();
38     ~CSCLCoreUIEFL();
39
40     virtual sclboolean init();
41     virtual void fini();
42
43     virtual void run(const sclchar *display);
44     virtual sclwindow get_main_window();
45     virtual void set_keyboard_size_hints(SclSize portrait, SclSize landscape);
46     virtual int get_screen_rotation_degree();
47
48     virtual sclwindow create_option_window(SCLOptionWindowType type);
49     virtual void destroy_option_window(sclwindow window);
50
51     void set_screen_rotation_degree(int degree);
52 private:
53     sclboolean m_initialized;
54
55     sclint m_rotation_degree;
56     sclwindow m_main_window;
57
58     OptionWindowInfo m_option_window_info[OPTION_WINDOW_TYPE_MAX];
59 };
60
61 }
62
63 //SCL_END_DECLS
64
65 #endif //__SCL_CORE_UI_EFL_H__