Header menu logo issie

Main Module

Functions and values

Function or value Description

addListeners window

Full Usage: addListeners window

Parameters:
Returns: BrowserWindow
window : BrowserWindow
Returns: BrowserWindow

argFlagIsOn flags

Full Usage: argFlagIsOn flags

Parameters:
    flags : string list

Returns: bool

Returns true if any of flags are present as command line argument.

flags : string list
Returns: bool

args

Full Usage: args

Returns: string list
Returns: string list

closeAfterSave

Full Usage: closeAfterSave

Returns: bool
Returns: bool

createMainWindow ()

Full Usage: createMainWindow ()

Parameters:
    () : unit

Returns: BrowserWindow
() : unit
Returns: BrowserWindow

debug

Full Usage: debug

Returns: bool
Returns: bool

dispatchToRenderer (arg1, arg2)

Full Usage: dispatchToRenderer (arg1, arg2)

Parameters:
    arg0 : string
    arg1 : string

arg0 : string
arg1 : string

electronRemote

Full Usage: electronRemote

Returns: RemoteMainInterface

Fix to access the deprecated @electron.remote module. This must be enabled from main.fs NB the interface used here is not precisely correct, because it exposes the original electron-remote API. The @electron.remote API is a bit reduced, but with some extra code to control access. electronRemote replaces electron.remote and renderer.remote in old interface

Returns: RemoteMainInterface

hasDebugArgs ()

Full Usage: hasDebugArgs ()

Parameters:
    () : unit

Returns: bool
() : unit
Returns: bool

isMacos

Full Usage: isMacos

Returns: bool
Returns: bool

isWin

Full Usage: isWin

Returns: bool
Returns: bool

loadAppIntoWidowWhenReady window

Full Usage: loadAppIntoWidowWhenReady window

Parameters:
Returns: EventEmitter
window : BrowserWindow
Returns: EventEmitter

mainWindow

Full Usage: mainWindow

Returns: BrowserWindow option
Returns: BrowserWindow option

printListeners ()

Full Usage: printListeners ()

Parameters:
    () : unit

() : unit

startRenderer doAfterReady

Full Usage: startRenderer doAfterReady

Parameters:
doAfterReady : BrowserWindow -> Unit

startup ()

Full Usage: startup ()

Parameters:
    () : unit

() : unit

staticDir ()

Full Usage: staticDir ()

Parameters:
    () : unit

Returns: string
() : unit
Returns: string

wait n cont

Full Usage: wait n cont

Parameters:
    n : int
    cont : unit -> unit

n : int
cont : unit -> unit

Type something to start searching.