Crate pn_editor_core

Source
Expand description

This contains the logic for editing petri nets. In order to use it, you need to implement the Renderer trait for your renderer. Then you can create a new Editor. Then you need to call the main events input, render and update repeatedly as specified. In order to call input, you need to create an InputEvent.

Structs§

CallableState
Indicates if some transition is callable.
Editor
This represents the editor you want to use to edit and display petri nets.
NodeSettings
Settings for the sizes of the nodes.

Enums§

ActionButton
Different buttons are used for different actions.
ArrowKind
Represents from which type of element to which type of element an arrow should be drawn.
CursorBoundary
Represents the cursor position at the start or end of a line or file.
FireDirection
The fire direction for firing transitions.
LineDirection
Represents the vertical direction for moving the text cursor.
LineScope
Represents the scope of lines affected by the cursor movement.
ViewMode
The view mode indicates how the petri net is displayed.

Traits§

Renderer
The renderer trait is used to display the elements of the petri net in a specific way.