Header menu logo issie

Renderer Module

Types

Type Description

Messages

Model

Functions and values

Function or value Description

addDebug dispatch msg

Full Usage: addDebug dispatch msg

Parameters:
    dispatch : Msg -> 'a
    msg : Msg

Returns: 'a
dispatch : Msg -> 'a
msg : Msg
Returns: 'a

attachExitHandler dispatch

Full Usage: attachExitHandler dispatch

Parameters:
    dispatch : Msg -> unit

dispatch : Msg -> unit

attachMenusAndKeyShortcuts dispatch

Full Usage: attachMenusAndKeyShortcuts dispatch

Parameters:
    dispatch : 'a

Returns: Cmd<Msg>
dispatch : 'a
Returns: Cmd<Msg>

editMenu dispatch'

Full Usage: editMenu dispatch'

Parameters:
    dispatch' : Msg -> unit

Returns: MenuItemConstructorOptions
dispatch' : Msg -> unit
Returns: MenuItemConstructorOptions

fileMenu dispatch

Full Usage: fileMenu dispatch

Parameters:
    dispatch : Msg -> unit

Returns: MenuItemConstructorOptions
dispatch : Msg -> unit
Returns: MenuItemConstructorOptions

firstPress

Full Usage: firstPress

Returns: bool
Returns: bool

getUserAppDir ()

Full Usage: getUserAppDir ()

Parameters:
    () : unit

Returns: string
() : unit
Returns: string

init ()

Full Usage: init ()

Parameters:
    () : unit

Returns: Model * Cmd<'a>
() : unit
Returns: Model * Cmd<'a>

isMac

Full Usage: isMac

Returns: bool
Returns: bool

keyPressListener initial

Full Usage: keyPressListener initial

Parameters:
    initial : 'a

Returns: Cmd<Msg>

Used to listen for pressing down of Ctrl for selection toggle

initial : 'a
Returns: Cmd<Msg>

makeCondItem cond label accelerator action

Full Usage: makeCondItem cond label accelerator action

Parameters:
    cond : bool
    label : string
    accelerator : string option
    action : KeyboardEvent -> unit

Returns: MenuItemConstructorOptions

make a conditional menu item from a condition, name, opt key to trigger, and action

cond : bool
label : string
accelerator : string option
action : KeyboardEvent -> unit
Returns: MenuItemConstructorOptions

makeCondRoleItem cond label accelerator role

Full Usage: makeCondRoleItem cond label accelerator role

Parameters:
    cond : bool
    label : string
    accelerator : string option
    role : MenuItemRole

Returns: MenuItemConstructorOptions

make conditional menu item from condition, name, opt key to trigger, and role

cond : bool
label : string
accelerator : string option
role : MenuItemRole
Returns: MenuItemConstructorOptions

makeDebugItem label accelerator option

Full Usage: makeDebugItem label accelerator option

Parameters:
    label : string
    accelerator : string option
    option : KeyboardEvent -> unit

Returns: MenuItemConstructorOptions

A menu item which is visible only if in debug mode (run dev or command line -D on binaries) and on windows.

label : string
accelerator : string option
option : KeyboardEvent -> unit
Returns: MenuItemConstructorOptions

makeElmItem label accelerator action

Full Usage: makeElmItem label accelerator action

Parameters:
    label : string
    accelerator : string
    action : unit -> unit

Returns: MenuItemConstructorOptions

Make

label : string
accelerator : string
action : unit -> unit
Returns: MenuItemConstructorOptions

makeItem label accelerator iAction

Full Usage: makeItem label accelerator iAction

Parameters:
    label : string
    accelerator : string option
    iAction : KeyboardEvent -> unit

Returns: MenuItemConstructorOptions

Make action menu item from name, opt key to trigger, and action.

label : string
accelerator : string option
iAction : KeyboardEvent -> unit
Returns: MenuItemConstructorOptions

makeMenu topLevel name table

Full Usage: makeMenu topLevel name table

Parameters:
Returns: MenuItemConstructorOptions

Make a new menu from a list of menu items

topLevel : bool
name : string
table : MenuItemConstructorOptions list
Returns: MenuItemConstructorOptions

makeMenuGen visible topLevel name table

Full Usage: makeMenuGen visible topLevel name table

Parameters:
Returns: MenuItemConstructorOptions

Make a new menu from a list of menu items

visible : bool
topLevel : bool
name : string
table : MenuItemConstructorOptions list
Returns: MenuItemConstructorOptions

makeRoleItem label accelerator role

Full Usage: makeRoleItem label accelerator role

Parameters:
    label : string
    accelerator : string option
    role : MenuItemRole

Returns: MenuItemConstructorOptions

Make role menu from name, opt key to trigger, and action.

label : string
accelerator : string option
role : MenuItemRole
Returns: MenuItemConstructorOptions

makeWinDebugItem label accelerator option

Full Usage: makeWinDebugItem label accelerator option

Parameters:
    label : string
    accelerator : string option
    option : KeyboardEvent -> unit

Returns: MenuItemConstructorOptions

A menu item which is visible only if in debug mode (run dev or command line -D on binaries) and on windows.

label : string
accelerator : string option
option : KeyboardEvent -> unit
Returns: MenuItemConstructorOptions

menuSeparator

Full Usage: menuSeparator

Returns: MenuItemConstructorOptions
Returns: MenuItemConstructorOptions

reRouteWires dispatch

Full Usage: reRouteWires dispatch

Parameters:
    dispatch : Msg -> 'a

Returns: 'a
dispatch : Msg -> 'a
Returns: 'a

reSeparateWires dispatch

Full Usage: reSeparateWires dispatch

Parameters:
    dispatch : Msg -> 'a

Returns: 'a
dispatch : Msg -> 'a
Returns: 'a

softInitialise model dispatch

Full Usage: softInitialise model dispatch

Parameters:
    model : 'a
    dispatch : 'b

model : 'a
dispatch : 'b

update msg model

Full Usage: update msg model

Parameters:
Returns: Model * Cmd<Msg>
msg : Msg
model : Model
Returns: Model * Cmd<Msg>

view model dispatch

Full Usage: view model dispatch

Parameters:
Returns: ReactElement
model : Model
dispatch : Msg -> unit
Returns: ReactElement

view' model dispatch

Full Usage: view' model dispatch

Parameters:
Returns: ReactElement
model : Model
dispatch : Msg -> unit
Returns: ReactElement

viewMenu dispatch

Full Usage: viewMenu dispatch

Parameters:
    dispatch : Msg -> unit

Returns: MenuItemConstructorOptions
dispatch : Msg -> unit
Returns: MenuItemConstructorOptions

Type something to start searching.