electron-windows-osk
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -1,1 +0,29 @@ | ||
module.exports = require('./build/Release/addon'); | ||
const screen = require('electron').screen; | ||
const native = require('./build/Release/addon'); | ||
function OSK() { | ||
} | ||
OSK.prototype.show = function(x,y,width,height) { | ||
if (native.OSKClose()) { | ||
if (native.OSKSetPosition(x,y,width,height)) { | ||
return native.OSKShow(); | ||
} | ||
} | ||
return false; | ||
}; | ||
OSK.prototype.close = function() { | ||
return native.OSKClose(); | ||
}; | ||
OSK.prototype.getSystem = function() { | ||
return [ native.GetSystemTopBarThickness(), native.GetSystemBorderThickness(), native.GetSystemMenuHeight()]; | ||
}; | ||
const osk = new OSK(); | ||
module.exports = osk; | ||
@@ -51,3 +51,3 @@ // note that the compiled addon is placed under following path | ||
console.log(OSKClose()); | ||
console.log(OSKSetPosition(0,0,500,500)); | ||
console.log(OSKSetPosition(0,0,800,300)); | ||
console.log(OSKShow()); | ||
@@ -54,0 +54,0 @@ |
{ | ||
"name": "electron-windows-osk", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "export.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19104
74