taskbar-node
Version:
Get and control running apps, virtual desktop
47 lines • 1.16 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const lib = require("./nbind.node");
class Taskbar {
constructor() {
this.instance = new lib.Taskbar();
}
getAllApps(group = false) {
return this.instance.getAllApps(group);
}
bringAppToTop(hwnd) {
this.instance.bringAppToTop(hwnd);
}
destruct() {
if (this.instance.free) {
this.instance.free();
}
}
}
exports.Taskbar = Taskbar;
class Workspace {
constructor() {
this.instance = new lib.VirtualDesktop();
}
create() {
return this.instance.createDesktop();
}
destroy(index) {
this.instance.ex_destroyDesktop(index);
}
switchTo(index) {
this.instance.ex_switchToDesktop(index);
}
getCurrent() {
return this.instance.getCurrentDesktop();
}
getTotal() {
return this.instance.getDesktopCount();
}
destruct() {
if (this.instance.free) {
this.instance.free();
}
}
}
exports.Workspace = Workspace;
//# sourceMappingURL=index.js.map
;