Global Methods and properties added to the global JavaScript object. KWin::Options options Global property to all configuration values of KWin core. KWin::Workspace workspace Global property to the core wrapper of KWin. Q_SCRIPTABLE void void KWin::Scripting::print (QVariant ... values) print Prints all provided values to kDebug and as a D-Bus signal Q_SCRIPTABLE QVariant QVariant KWin::Scripting::readConfig (QString key, QVariant defaultValue = QVariant()) readConfig Reads the config value for key in the Script's configuration with the optional default value. If not providing a default value and no value stored in the configuration an undefined value is returned. Q_SCRIPTABLE bool bool KWin::Scripting::registerShortcut (QString title, QString text, QString keySequence, QScriptValue callback) registerShortcut Registers keySequence as a global shortcut. When the shortcut is invoked the callback will be called. Title and text are used to name the shortcut and make it available to the global shortcut configuration module. Q_SCRIPTABLE bool bool KWin::Scripting::assert (bool value, QString message = QString()) assert Aborts the execution of the script if value does not evaluate to true. If message is provided an error is thrown with the given message, if not provided an error with default message is thrown. Q_SCRIPTABLE bool bool KWin::Scripting::assertTrue (bool value, QString message = QString()) assertTrue Aborts the execution of the script if value does not evaluate to true. If message is provided an error is thrown with the given message, if not provided an error with default message is thrown. Q_SCRIPTABLE bool bool KWin::Scripting::assertFalse (bool value, QString message = QString()) assertFalse Aborts the execution of the script if value does not evaluate to false. If message is provided an error is thrown with the given message, if not provided an error with default message is thrown. Q_SCRIPTABLE bool bool KWin::Scripting::assertEquals (QVariant expected, QVariant actual, QString message = QString()) assertEquals Aborts the execution of the script if the actual value is not equal to the expected value. If message is provided an error is thrown with the given message, if not provided an error with default message is thrown. Q_SCRIPTABLE bool bool KWin::Scripting::assertNull (QVariant value, QString message = QString()) assertNull Aborts the execution of the script if value is not null. If message is provided an error is thrown with the given message, if not provided an error with default message is thrown. Q_SCRIPTABLE bool bool KWin::Scripting::assertNotNull (QVariant value, QString message = QString()) assertNotNull Aborts the execution of the script if value is null. If message is provided an error is thrown with the given message, if not provided an error with default message is thrown.