Module: core/WindowManager

Manages the creation and destruction of windows for the application

Author:
  • Serge Babayan
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
id int

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_name string

The window template file name

options Object

Parameters specific to electron.BrowserWindow

Source: