Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Drawing attributes
** WARNING ** - this module needs systematic naming schemes both for update functions (primaryColour, ...) and for synthesized selectors (e.g. lowerxHeight). The current names will change.
- data DrawingContext = DrawingContext {}
- type DrawingContextF = DrawingContext -> DrawingContext
- standardContext :: FontSize -> DrawingContext
- metricsContext :: FontSize -> GlyphMetrics -> DrawingContext
- default_drawing_context :: DrawingContext
- class (Applicative m, Monad m) => DrawingCtxM m where
- askDC :: m DrawingContext
- localize :: (DrawingContext -> DrawingContext) -> m a -> m a
- asksDC :: DrawingCtxM m => (DrawingContext -> a) -> m a
- withFontMetrics :: (MetricsOps -> PtSize -> u) -> DrawingContext -> u
Drawing context
data DrawingContext Source
DrawingCtxM (reader) monad
class (Applicative m, Monad m) => DrawingCtxM m whereSource
askDC :: m DrawingContextSource
localize :: (DrawingContext -> DrawingContext) -> m a -> m aSource
DrawingCtxM CF | |
DrawingCtxM (CF1 r1) | |
DrawingCtxM (TraceDrawing u) | |
DrawingCtxM (CF2 r1 r2) | |
Monad m => DrawingCtxM (TraceDrawingT u m) | |
DrawingCtxM m => DrawingCtxM (TurtleT u m) | |
DrawingCtxM m => DrawingCtxM (ScalingT ux uy u m) |
asksDC :: DrawingCtxM m => (DrawingContext -> a) -> m aSource
Project a value out of a context.
Glyph metrics
withFontMetrics :: (MetricsOps -> PtSize -> u) -> DrawingContext -> uSource