Manages the creation and destruction of windows for the application
- Copyright:
-
- Waterloo Aerial Robotics Group 2016
- Source:
Requires
- module:electron
- module:util/Logger
- module:root-path
Members
-
<private, inner> open_windows :ObjectHash
-
Stores all the currently open windows
Type:
- ObjectHash
- Source:
Methods
-
<inner> getFocusedWindowName()
-
Returns the unique name for the currently focused window
- Source:
Returns:
name The name of the window, or null if one wasn't found
- Type
- string | null
-
<inner> getWindowNameFromId(id)
-
Retrieves the hash key or window name for a window based on its BrowserWindow id
Parameters:
Name Type Description idint The id of the window
- Source:
Returns:
name The name of the window, or null if one wasn't found
- Type
- string | null
-
<inner> openWindow(window_file_name, options)
-
Opens a window by either creating it or focusing on an existing one
Parameters:
Name Type Description window_file_namestring The window template file name
optionsObject Parameters specific to electron.BrowserWindow
- Source: