mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-07 03:32:15 +08:00
38 lines
775 B
JavaScript
38 lines
775 B
JavaScript
/*
|
|
_ __ _ __
|
|
| | / /___ _(_) /____
|
|
| | /| / / __ `/ / / ___/
|
|
| |/ |/ / /_/ / / (__ )
|
|
|__/|__/\__,_/_/_/____/
|
|
The electron alternative for Go
|
|
(c) Lea Anthony 2019-present
|
|
*/
|
|
|
|
/* jshint esversion: 9 */
|
|
|
|
/**
|
|
* The Screens API provides methods to interact with the system screens/monitors.
|
|
*/
|
|
export const Screens = {
|
|
/**
|
|
* Get the primary screen
|
|
* @returns {Promise<Screen>}
|
|
*/
|
|
GetPrimary: () => {
|
|
return wails.Screens.GetPrimary();
|
|
},
|
|
/**
|
|
* Get all screens
|
|
* @returns {Promise<Screen[]>}
|
|
*/
|
|
GetAll: () => {
|
|
return wails.Screens.GetAll();
|
|
},
|
|
/**
|
|
* Get the current screen
|
|
* @returns {Promise<Screen>}
|
|
*/
|
|
GetCurrent: () => {
|
|
return wails.Screens.GetCurrent();
|
|
},
|
|
}; |