2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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.
19 #include "virtual-keyboard-impl.h"
26 #include <dali/public-api/common/vector-wrapper.h>
28 #include <dali/integration-api/debug.h>
31 #include <locale-utils.h>
32 #include <imf-manager-impl.h>
44 namespace VirtualKeyboard
47 void RotateTo(int angle)
49 // Get focus window used by Keyboard and rotate it
50 Display* display = XOpenDisplay(0);
56 XGetInputFocus(display, &focusWindow, &revert);
58 ecore_x_window_prop_property_set(focusWindow,
59 ECORE_X_ATOM_E_ILLUME_ROTATE_WINDOW_ANGLE,
60 ECORE_X_ATOM_CARDINAL, 32, &angle, 1);
61 XCloseDisplay(display);
65 } // namespace VirtualKeyboard
67 } // namespace Adaptor
69 } // namespace Internal