| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Potato.Flow.Deprecated.State
Synopsis
- data PFState = PFState {}
 - debugPrintPFState :: IsString a => PFState -> a
 - pFState_isValid :: PFState -> Bool
 - pFState_selectionIsValid :: PFState -> [LayerPos] -> Bool
 - pFState_copyElts :: PFState -> [LayerPos] -> [SEltLabel]
 - pFState_getSuperSEltByPos :: PFState -> LayerPos -> Maybe SuperSEltLabel
 - pFState_getSEltLabels :: PFState -> [REltId] -> REltIdMap (Maybe SEltLabel)
 - pFState_maxID :: PFState -> REltId
 - pFState_getLayerPosMap :: PFState -> LayerPosMap
 - sPotatoFlow_to_pFState :: SPotatoFlow -> PFState
 - pFState_to_sPotatoFlow :: PFState -> SPotatoFlow
 - pFState_toCanvasCoordinates :: PFState -> XY -> XY
 - pfState_layerPos_to_superSEltLabel :: PFState -> LayerPos -> SuperSEltLabel
 - pFState_to_superSEltLabelSeq :: PFState -> Seq SuperSEltLabel
 - emptyPFState :: PFState
 - do_newElts :: [SuperSEltLabel] -> PFState -> (PFState, SEltLabelChanges)
 - undo_newElts :: [SuperSEltLabel] -> PFState -> (PFState, SEltLabelChanges)
 - do_deleteElts :: [SuperSEltLabel] -> PFState -> (PFState, SEltLabelChanges)
 - undo_deleteElts :: [SuperSEltLabel] -> PFState -> (PFState, SEltLabelChanges)
 - do_move :: ([LayerPos], LayerPos) -> PFState -> (PFState, SEltLabelChanges)
 - undo_move :: ([LayerPos], LayerPos) -> PFState -> (PFState, SEltLabelChanges)
 - do_resizeCanvas :: DeltaLBox -> PFState -> PFState
 - undo_resizeCanvas :: DeltaLBox -> PFState -> PFState
 - do_manipulate :: ControllersWithId -> PFState -> (PFState, SEltLabelChanges)
 - undo_manipulate :: ControllersWithId -> PFState -> (PFState, SEltLabelChanges)
 
Documentation
Constructors
| PFState | |
Fields  | |
Instances
| FromJSON PFState Source # | |
| ToJSON PFState Source # | |
Defined in Potato.Flow.Deprecated.State  | |
| Generic PFState Source # | |
| Show PFState Source # | |
| NFData PFState Source # | |
Defined in Potato.Flow.Deprecated.State  | |
| Eq PFState Source # | |
| type Rep PFState Source # | |
Defined in Potato.Flow.Deprecated.State type Rep PFState = D1 ('MetaData "PFState" "Potato.Flow.Deprecated.State" "tinytools-0.1.0.0-DrleRpyeSqeBtRJXQdRmv7" 'False) (C1 ('MetaCons "PFState" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pFState_layers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq REltId)) :*: (S1 ('MetaSel ('Just "_pFState_directory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (REltIdMap SEltLabel)) :*: S1 ('MetaSel ('Just "_pFState_canvas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SCanvas))))  | |
debugPrintPFState :: IsString a => PFState -> a Source #
pFState_isValid :: PFState -> Bool Source #
pFState_maxID :: PFState -> REltId Source #
do_newElts :: [SuperSEltLabel] -> PFState -> (PFState, SEltLabelChanges) Source #
undo_newElts :: [SuperSEltLabel] -> PFState -> (PFState, SEltLabelChanges) Source #
do_deleteElts :: [SuperSEltLabel] -> PFState -> (PFState, SEltLabelChanges) Source #
undo_deleteElts :: [SuperSEltLabel] -> PFState -> (PFState, SEltLabelChanges) Source #
do_move :: ([LayerPos], LayerPos) -> PFState -> (PFState, SEltLabelChanges) Source #
(list of parents (assert no repeats), target (placed after or as first child if top owl (no parent))) do_move :: ([REltId], Maybe REltId) -> PFState -> (PFState, SEltLabelChanges) TODO assert selection has all children
do_manipulate :: ControllersWithId -> PFState -> (PFState, SEltLabelChanges) Source #
undo_manipulate :: ControllersWithId -> PFState -> (PFState, SEltLabelChanges) Source #