Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Customize 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.
- roundCornerFactor :: Double -> DrawingContextF
- textMargin :: Double -> Double -> DrawingContextF
- lineWidth :: Double -> DrawingContextF
- thick :: DrawingContextF
- ultrathick :: DrawingContextF
- thin :: DrawingContextF
- capButt :: DrawingContextF
- capRound :: DrawingContextF
- capSquare :: DrawingContextF
- joinMiter :: DrawingContextF
- joinRound :: DrawingContextF
- joinBevel :: DrawingContextF
- dashPattern :: DashPattern -> DrawingContextF
- unit_dash_pattern :: DashPattern
- phase :: Int -> DashPattern -> DashPattern
- dphase :: Int -> DashPattern -> DashPattern
- doublegaps :: DashPattern -> DashPattern
- doubledashes :: DashPattern -> DashPattern
- fontAttr :: FontFace -> Int -> DrawingContextF
- fontSize :: Int -> DrawingContextF
- fontFace :: FontFace -> DrawingContextF
- doublesize :: DrawingContextF
- halfsize :: DrawingContextF
- swapColours :: DrawingContextF
- bothStrokeColour :: DrawingContextF
- bothFillColour :: DrawingContextF
- strokeColour :: RGBi -> DrawingContextF
- fillColour :: RGBi -> DrawingContextF
Modifiers
textMargin :: Double -> Double -> DrawingContextFSource
textMargin
: xsep * ysep -> DrawingContextF
Line widths
thick :: DrawingContextFSource
Set the line width to a thick.
Note this context update is oblivious - operationally the
line width is set to exactly 2.0
.
Line caps
Line joins
Dash Pattern
phase :: Int -> DashPattern -> DashPatternSource
dphase :: Int -> DashPattern -> DashPatternSource
Font properties
fontAttr :: FontFace -> Int -> DrawingContextFSource
fontSize :: Int -> DrawingContextFSource
Font / mark drawing size
doublesize :: DrawingContextFSource
Set the font size to double the current size, note the font size also controls the size of dots, arrowsheads etc.
halfsize :: DrawingContextFSource
Set the font size to half the current size, note the font size also controls the size of dots, arrowsheads etc.
As fontsize is an integer this is not exact - half size of 15pt type is 7pt.