Showing the changes to interface/src/scripting/KeyboardScriptingInterface.cpp (1 of 131 files). Show all
Unified · Split
| @@ -0,0 +1,34 @@ | ||
| 1 | +// | |
| 2 | +// KeyboardScriptingInterface.cpp | |
| 3 | +// interface/src/scripting | |
| 4 | +// | |
| 5 | +// Created by Dante Ruiz on 2018-08-27. | |
| 6 | +// Copyright 2017 High Fidelity, Inc. | |
| 7 | +// | |
| 8 | +// Distributed under the Apache License, Version 2.0. | |
| 9 | +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
| 10 | +// | |
| 11 | + | |
| 12 | +#include "KeyboardScriptingInterface.h" | |
| 13 | +#include "ui/Keyboard.h" | |
| 14 | + | |
| 15 | +bool KeyboardScriptingInterface::isRaised() { | |
| 16 | + return DependencyManager::get<Keyboard>()->isRaised(); | |
| 17 | +} | |
| 18 | + | |
| 19 | +void KeyboardScriptingInterface::setRaised(bool raised) { | |
| 20 | + DependencyManager::get<Keyboard>()->setRaised(raised); | |
| 21 | +} | |
| 22 | + | |
| 23 | + | |
| 24 | +bool KeyboardScriptingInterface::isPassword() { | |
| 25 | + return DependencyManager::get<Keyboard>()->isPassword(); | |
| 26 | +} | |
| 27 | + | |
| 28 | +void KeyboardScriptingInterface::setPassword(bool password) { | |
| 29 | + DependencyManager::get<Keyboard>()->setPassword(password); | |
| 30 | +} | |
| 31 | + | |
| 32 | +void KeyboardScriptingInterface::loadKeyboardFile(const QString& keyboardFile) { | |
| 33 | + DependencyManager::get<Keyboard>()->loadKeyboardFile(keyboardFile); | |
| 34 | +} | |