@nodert-win11/windows.devices.lights
Version:
Use the Windows.Devices.Lights UWP API directly from Node.js
282 lines (220 loc) • 7.96 kB
JavaScript
Color = (function () {
var cls = function Color() {
};
return cls;
}) ();
exports.Color = Color;
Vector3 = (function () {
var cls = function Vector3() {
this.x = new Number();
this.y = new Number();
this.z = new Number();
};
return cls;
}) ();
exports.Vector3 = Vector3;
_LampArrayKind = function () {
this.undefined = 0;
this.keyboard = 1;
this.mouse = 2;
this.gameController = 3;
this.peripheral = 4;
this.scene = 5;
this.notification = 6;
this.chassis = 7;
this.wearable = 8;
this.furniture = 9;
this.art = 10;
}
exports.LampArrayKind = new _LampArrayKind();
_LampPurposes = function () {
this.undefined = 0;
this.control = 1;
this.accent = 2;
this.branding = 3;
this.status = 4;
this.illumination = 5;
this.presentation = 6;
}
exports.LampPurposes = new _LampPurposes();
Lamp = (function () {
var cls = function Lamp() {
this.isEnabled = new Boolean();
this.color = new Object();
this.brightnessLevel = new Number();
this.deviceId = new String();
this.isColorSettable = new Boolean();
};
cls.prototype.close = function close() {
}
cls.fromIdAsync = function fromIdAsync(deviceId, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="deviceId" type="String">A param.</param>
/// </signature>
}
cls.getDefaultAsync = function getDefaultAsync(callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.getDeviceSelector = function getDeviceSelector() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="String" />
/// </signature>
return new String();
}
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.Lamp = Lamp;
LampArray = (function () {
var cls = function LampArray() {
this.isEnabled = new Boolean();
this.brightnessLevel = new Number();
this.boundingBox = new Vector3();
this.deviceId = new String();
this.hardwareProductId = new Number();
this.hardwareVendorId = new Number();
this.hardwareVersion = new Number();
this.isConnected = new Boolean();
this.lampArrayKind = new LampArrayKind();
this.lampCount = new Number();
this.minUpdateInterval = new Number();
this.supportsVirtualKeys = new Boolean();
};
cls.prototype.sendMessageAsync = function sendMessageAsync(messageId, message, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="messageId" type="Number">A param.</param>
/// <param name="message" type="Object">A param.</param>
/// </signature>
}
cls.prototype.requestMessageAsync = function requestMessageAsync(messageId, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="messageId" type="Number">A param.</param>
/// </signature>
}
cls.prototype.getLampInfo = function getLampInfo(lampIndex) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="lampIndex" type="Number">A param.</param>
/// <returns type="LampInfo" />
/// </signature>
return new LampInfo();
}
cls.prototype.getIndicesForKey = function getIndicesForKey(key) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="key" type="Number">A param.</param>
/// <returns type="Array<Number>" />
/// </signature>
return new Array<Number>();
}
cls.prototype.getIndicesForPurposes = function getIndicesForPurposes(purposes) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="purposes" type="LampPurposes">A param.</param>
/// <returns type="Array<Number>" />
/// </signature>
return new Array<Number>();
}
cls.prototype.setColor = function setColor(desiredColor) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="desiredColor" type="Object">A param.</param>
/// </signature>
}
cls.prototype.setColorForIndex = function setColorForIndex(lampIndex, desiredColor) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="lampIndex" type="Number">A param.</param>
/// <param name="desiredColor" type="Object">A param.</param>
/// </signature>
}
cls.prototype.setSingleColorForIndices = function setSingleColorForIndices(desiredColor, lampIndexes) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="desiredColor" type="Object">A param.</param>
/// <param name="lampIndexes" type="Array<Number>">A param.</param>
/// </signature>
}
cls.prototype.setColorsForIndices = function setColorsForIndices(desiredColors, lampIndexes) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="desiredColors" type="Array<Object>">A param.</param>
/// <param name="lampIndexes" type="Array<Number>">A param.</param>
/// </signature>
}
cls.prototype.setColorsForKey = function setColorsForKey(desiredColor, key) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="desiredColor" type="Object">A param.</param>
/// <param name="key" type="Number">A param.</param>
/// </signature>
}
cls.prototype.setColorsForKeys = function setColorsForKeys(desiredColors, keys) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="desiredColors" type="Array<Object>">A param.</param>
/// <param name="keys" type="Array<Number>">A param.</param>
/// </signature>
}
cls.prototype.setColorsForPurposes = function setColorsForPurposes(desiredColor, purposes) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="desiredColor" type="Object">A param.</param>
/// <param name="purposes" type="LampPurposes">A param.</param>
/// </signature>
}
cls.fromIdAsync = function fromIdAsync(deviceId, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="deviceId" type="String">A param.</param>
/// </signature>
}
cls.getDeviceSelector = function getDeviceSelector() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="String" />
/// </signature>
return new String();
}
return cls;
}) ();
exports.LampArray = LampArray;
LampAvailabilityChangedEventArgs = (function () {
var cls = function LampAvailabilityChangedEventArgs() {
this.isAvailable = new Boolean();
};
return cls;
}) ();
exports.LampAvailabilityChangedEventArgs = LampAvailabilityChangedEventArgs;
LampInfo = (function () {
var cls = function LampInfo() {
this.blueLevelCount = new Number();
this.fixedColor = new Object();
this.gainLevelCount = new Number();
this.greenLevelCount = new Number();
this.index = new Number();
this.position = new Vector3();
this.purposes = new LampPurposes();
this.redLevelCount = new Number();
this.updateLatency = new Number();
};
cls.prototype.getNearestSupportedColor = function getNearestSupportedColor(desiredColor) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="desiredColor" type="Object">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.LampInfo = LampInfo;