// // KeyboardScriptingInterface.h // interface/src/scripting // // Created by Dante Ruiz on 2018-08-27. // Copyright 2017 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_KeyboardScriptingInterface_h #define hifi_KeyboardScriptingInterface_h #include #include "DependencyManager.h" /**jsdoc * The Keyboard API provides facilities to use 3D Physical keyboard. * @namespace Keyboard * * @hifi-interface * @hifi-client-entity * * @property {bool} raised - true If the keyboard is visible false otherwise * @property {bool} password - true Will show * instead of characters in the text display false otherwise */ class KeyboardScriptingInterface : public QObject, public Dependency { Q_OBJECT Q_PROPERTY(bool raised READ isRaised WRITE setRaised) Q_PROPERTY(bool password READ isPassword WRITE setPassword) public: Q_INVOKABLE void loadKeyboardFile(const QString& string); private: bool isRaised(); void setRaised(bool raised); bool isPassword(); void setPassword(bool password); }; #endif