2 * Copyright (c) 2014 - 2015 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.
20 #include "sclcoreui.h"
22 #include "sclcoreui-efl.h"
26 CSCLCoreUI::CSCLCoreUI()
28 m_backend_identifier = "undefined";
32 CSCLCoreUI::~CSCLCoreUI()
36 std::string CSCLCoreUI::get_backend_identifier()
38 return m_backend_identifier;
41 sclboolean CSCLCoreUI::init()
43 sclboolean ret = FALSE;
45 /* There could be other backend implementations.. */
46 m_impl = new CSCLCoreUIEFL;
54 void CSCLCoreUI::fini()
63 sclboolean CSCLCoreUI::create_main_window()
65 sclboolean ret = FALSE;
67 ret = m_impl->create_main_window();
72 void CSCLCoreUI::run(const sclchar *display)
79 void CSCLCoreUI::set_keyboard_size_hints(SclSize portrait, SclSize landscape)
82 m_impl->set_keyboard_size_hints(portrait, landscape);
86 sclwindow CSCLCoreUI::get_main_window()
88 sclwindow ret = SCLWINDOW_INVALID;
90 ret = m_impl->get_main_window();
95 void CSCLCoreUI::set_screen_rotation_degree(int degree)
98 m_impl->set_screen_rotation_degree(degree);
102 int CSCLCoreUI::get_screen_rotation_degree()
106 ret = m_impl->get_screen_rotation_degree();
111 sclwindow CSCLCoreUI::create_option_window(SCLOptionWindowType type)
113 sclwindow ret = SCLWINDOW_INVALID;
115 ret = m_impl->create_option_window(type);
120 bool CSCLCoreUI::show_option_window(SCLOptionWindowType type)
124 ret = m_impl->show_option_window(type);
129 void CSCLCoreUI::destroy_option_window(sclwindow window)
132 m_impl->destroy_option_window(window);
136 void CSCLCoreUI::process_keyboard_ui_state_change(KEYBOARD_UI_STATE state)
139 m_impl->process_keyboard_ui_state_change(state);
143 void CSCLCoreUI::set_floating_mode(sclboolean floating_mode)
146 m_impl->set_floating_mode(floating_mode);
150 void CSCLCoreUI::set_floating_drag_enabled(sclboolean enabled)
153 m_impl->set_floating_drag_enabled(enabled);
157 void CSCLCoreUI::update_keyboard_geometry(SclSize portrait, SclSize landscape)
160 m_impl->update_keyboard_geometry(portrait, landscape);
164 void CSCLCoreUI::get_keyboard_size(SclSize *portrait, SclSize *landscape)
167 m_impl->get_keyboard_size(portrait, landscape);