WaveSimNavigation Module
All the code that determines which clock cycles are viewed in the simulator. basic functions are zooming and panning (moving + or - in time). Additional function is a sample-based zoom for viewing very long waveforms.. Also implement cursor control.
Functions and values
Function or value | Description |
Full Usage:
changeMultiplier newMultiplier ws
Parameters:
int
ws : WaveSimModel
Returns: WaveSimModel
|
|
Full Usage:
changeZoom wsModel zoomIn dispatch
Parameters:
WaveSimModel
zoomIn : bool
dispatch : Msg -> unit
|
|
Full Usage:
clkCycleButtons wsModel dispatch
Parameters:
WaveSimModel
dispatch : Msg -> unit
Returns: ReactElement
|
|
Full Usage:
generateScrollbarInfo wsm
Parameters:
WaveSimModel
-
Target WaveSimModel .
Returns: (type)
Anonymous record contaning the information to be updated: thumb width,
thumb position, and number of cycles the background represents.
|
Note:
|
Full Usage:
makeScrollbar wsm dispatch
Parameters:
WaveSimModel
-
Target WaveSimModel .
dispatch : Msg -> unit
-
Dispatch function to send messages with. Not used directly, but passed to tbMouseMoveOp .
Returns: ReactElement
React element to be placed in to DOM.
|
|
Full Usage:
multiplierMenuButton wsModel dispatch
Parameters:
WaveSimModel
dispatch : Msg -> unit
Returns: ReactElement
|
|
Full Usage:
setClkCycle wsModel dispatch newRealClkCycle
Parameters:
WaveSimModel
dispatch : Msg -> unit
newRealClkCycle : int
|
|
Full Usage:
setClkCycleMsg wsModel newRealClkCycle
Parameters:
WaveSimModel
newRealClkCycle : int
Returns: Msg
|
|
Full Usage:
setScrollbarLastX wsm dispatch isEmpty
Parameters:
WaveSimModel
-
Target WaveSimModel .
dispatch : Msg -> unit
-
Dispatch function to send messages with.
isEmpty : bool
-
Bool to be written to WaveSimModel.ScrollbarQueueIsEmpty .
|
|
Full Usage:
setScrollbarOffset wsm dispatch offset
Parameters:
WaveSimModel
-
Target WaveSimModel .
dispatch : Msg -> unit
-
Dispatch function to send messages with.
offset : float option
-
Offset option to be written to WaveSimModel.ScrollbarTbOffset .
|
|
Full Usage:
setScrollbarTbByCycs wsm dispatch moveByCycs
Parameters:
WaveSimModel
-
Target WaveSimModel .
dispatch : Msg -> unit
-
Dispatch function to send messages with.
moveByCycs : float
-
Number of non-integer cycles to move by.
|
Move waveform view window by closest integer number of cycles.
Current clock cycle (
|
Full Usage:
setViewerWidthInWaveSim w dispatch
Parameters:
int
dispatch : Msg -> unit
Modifiers: inline |
|
Full Usage:
updateScrollbar wsm dispatch cursor action
Parameters:
WaveSimModel
-
Target WaveSimModel .
dispatch : Msg -> unit
-
Dispatch function to send messages with, not used directly.
cursor : float
-
Cursor postion in relation to the screen, i.e. event.clientX .
action : ScrollbarMouseAction
-
Scrollbar action to do, see choices for more info, in type of ScrollbarMouseAction .
|
Note that
|
|
|
|
|
|
|
Full Usage:
zoomButtons wsModel dispatch
Parameters:
WaveSimModel
dispatch : Msg -> unit
Returns: ReactElement
|