hoodle-core-0.10: Core library for hoodle

PortabilityGHC
Stabilityexperimental
MaintainerIan-Woo Kim <ianwookim@gmail.com>
Safe HaskellNone

Hoodle.Type.Canvas

Contents

Description

 

Synopsis

data types

data PenDraw Source

Constructors

PenDraw 

Fields

_points :: Seq (Double, Double)
 

Instances

data PenInfo Source

Instances

default constructor

defaultViewInfoSinglePage :: ViewInfo SinglePageSource

default view info with single page mode

defaultCanvasWidgets :: CanvasWidgetsSource

default hoodle widgets

lenses

points :: Simple Lens PenDraw (Seq (Double, Double))Source

lens for zoomMode

zoomMode :: Simple Lens (ViewInfo a) ZoomModeSource

lens for zoomMode

horizAdjConnId :: Simple Lens (CanvasInfo a) (Maybe (ConnectId Adjustment))Source

ConnectId for horizontal scrollbar value change event

vertAdjConnId :: Simple Lens (CanvasInfo a) (Maybe (ConnectId Adjustment))Source

ConnectId for vertical scrollbar value change event

variableWidthPen :: Simple Lens PenInfo BoolSource

lens for variableWidthPen

for box

unboxGet :: (forall a. ViewMode a => Simple Lens (CanvasInfo a) b) -> CanvasInfoBox -> bSource

fmap4CvsInfoBox :: (forall a. ViewMode a => CanvasInfo a -> r) -> CanvasInfoBox -> rSource

apply a funtion to Generic CanvasInfo

insideAction4CvsInfoBox :: (forall a. CanvasInfo a -> CanvasInfo a) -> CanvasInfoBox -> CanvasInfoBoxSource

fmap-like operation for box

insideAction4CvsInfoBoxF :: Functor f => (forall a. ViewMode a => CanvasInfo a -> f (CanvasInfo a)) -> CanvasInfoBox -> f CanvasInfoBoxSource

fmap-like operation for box

boxAction :: Monad m => (forall a. ViewMode a => CanvasInfo a -> m b) -> CanvasInfoBox -> m bSource

selectBoxAction :: Monad m => (CanvasInfo SinglePage -> m a) -> (CanvasInfo ContinuousPage -> m a) -> CanvasInfoBox -> m aSource

either-like operation

others