History

Merge pull request #15562 from jherico/bugz-133

Sam Gateau committed 7 years ago

Commit 6b370782 parents cf5869f 6a0b4798 files · +160 −55Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 8 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.h+38−0
@@ -558,6 +558,44 @@ public slots: · 557 unmodified lines
558 */558 */
559 float domainLoadingProgress();559 float domainLoadingProgress();
560 560
561 /**jsdoc
562 * Return the number of display plugins currently available
563 * @function Window.getDisplayPluginCount
564 * @returns {int} The number of currently available display plugins
565 */
566 int getDisplayPluginCount();
567
568 /**jsdoc
569 * Return the human readable name of a display plugin
570 * @function Window.getDisplayPluginName
571 * @param {int} index - The index of the display plugin. Must be less than the value returned by {@link Window.getDisplayPluginCount|getDisplayPluginCount}.
572 * @returns {string} The name of the specified display plugin
573 */
574 QString getDisplayPluginName(int index);
575
576 /**jsdoc
577 * Return whether a given display plugin is an HMD
578 * @function Window.isDisplayPluginHmd
579 * @param {int} index - The index of the display plugin. Must be less than the value returned by {@link Window.getDisplayPluginCount|getDisplayPluginCount}.
580 * @returns {bool} True if the specified display plugin is a HMD
581 */
582 bool isDisplayPluginHmd(int index);
583
584 /**jsdoc
585 * Return the currently active display plugin
586 * @function Window.getActiveDisplayPlugin
587 * @returns {int} The index of the currently active display plugin
588 */
589 int getActiveDisplayPlugin();
590
591 /**jsdoc
592 * Return the currently active display plugin
593 * @function Window.setActiveDisplayPlugin
594 * @param {int} index - The index of the display plugin. Must be less than the value returned by {@link Window.getDisplayPluginCount|getDisplayPluginCount}.
595 */
596 void setActiveDisplayPlugin(int index);
597
598
561private slots:599private slots:
562 void onWindowGeometryChanged(const QRect& geometry);600 void onWindowGeometryChanged(const QRect& geometry);
563 void onMessageBoxSelected(int button);601 void onMessageBoxSelected(int button);