@nodert-win11/windows.gaming.ui
Version:
Use the Windows.Gaming.UI UWP API directly from Node.js
137 lines (105 loc) • 3.92 kB
JavaScript
GameChatOverlayContract = (function () {
var cls = function GameChatOverlayContract() {
};
return cls;
}) ();
exports.GameChatOverlayContract = GameChatOverlayContract;
GamingUIProviderContract = (function () {
var cls = function GamingUIProviderContract() {
};
return cls;
}) ();
exports.GamingUIProviderContract = GamingUIProviderContract;
_GameChatMessageOrigin = function () {
this.voice = 0;
this.text = 1;
}
exports.GameChatMessageOrigin = new _GameChatMessageOrigin();
_GameChatOverlayPosition = function () {
this.bottomCenter = 0;
this.bottomLeft = 1;
this.bottomRight = 2;
this.middleRight = 3;
this.middleLeft = 4;
this.topCenter = 5;
this.topLeft = 6;
this.topRight = 7;
}
exports.GameChatOverlayPosition = new _GameChatOverlayPosition();
GameBar = (function () {
var cls = function GameBar() {
};
cls.isInputRedirected = new Boolean();
cls.visible = new Boolean();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.GameBar = GameBar;
GameChatMessageReceivedEventArgs = (function () {
var cls = function GameChatMessageReceivedEventArgs() {
this.appDisplayName = new String();
this.appId = new String();
this.message = new String();
this.origin = new GameChatMessageOrigin();
this.senderName = new String();
};
return cls;
}) ();
exports.GameChatMessageReceivedEventArgs = GameChatMessageReceivedEventArgs;
GameChatOverlay = (function () {
var cls = function GameChatOverlay() {
this.desiredPosition = new GameChatOverlayPosition();
};
cls.prototype.addMessage = function addMessage(sender, message, origin) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="sender" type="String">A param.</param>
/// <param name="message" type="String">A param.</param>
/// <param name="origin" type="GameChatMessageOrigin">A param.</param>
/// </signature>
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="GameChatOverlay" />
/// </signature>
return new GameChatOverlay();
}
return cls;
}) ();
exports.GameChatOverlay = GameChatOverlay;
GameChatOverlayMessageSource = (function () {
var cls = function GameChatOverlayMessageSource() {
};
cls.prototype.setDelayBeforeClosingAfterMessageReceived = function setDelayBeforeClosingAfterMessageReceived(value) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="value" type="Number">A param.</param>
/// </signature>
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.GameChatOverlayMessageSource = GameChatOverlayMessageSource;
GameUIProviderActivatedEventArgs = (function () {
var cls = function GameUIProviderActivatedEventArgs() {
this.kind = new Number();
this.previousExecutionState = new Number();
this.splashScreen = new Object();
this.gameUIArgs = new Object();
};
cls.prototype.reportCompleted = function reportCompleted(results) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="results" type="Object">A param.</param>
/// </signature>
}
return cls;
}) ();
exports.GameUIProviderActivatedEventArgs = GameUIProviderActivatedEventArgs;