Portability | GHC with TypeFamilies and more |
---|---|
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 {}
- standardContext :: FontSize -> DrawingContext
- thick :: DrawingContext -> DrawingContext
- ultrathick :: DrawingContext -> DrawingContext
- thin :: DrawingContext -> DrawingContext
- dashPattern :: DashPattern -> DrawingContext -> DrawingContext
- unit_dash_pattern :: DashPattern
- phase :: Int -> DashPattern -> DashPattern
- dphase :: Int -> DashPattern -> DashPattern
- doublegaps :: DashPattern -> DashPattern
- doubledashes :: DashPattern -> DashPattern
- fontsize :: Int -> DrawingContext -> DrawingContext
- fontface :: FontFace -> DrawingContext -> DrawingContext
- doublesize :: DrawingContext -> DrawingContext
- halfsize :: DrawingContext -> DrawingContext
- swapColours :: DrawingContext -> DrawingContext
- bothPrimary :: DrawingContext -> DrawingContext
- bothSecondary :: DrawingContext -> DrawingContext
- primaryColour :: RGBi -> DrawingContext -> DrawingContext
- secondaryColour :: RGBi -> DrawingContext -> DrawingContext
Drawing context
Modifiers
Line widths
thick :: DrawingContext -> DrawingContextSource
Set the line width to a thick.
Note this context update is oblivious - operationally the
line width is set to exactly 2.0
.
Dash Pattern
phase :: Int -> DashPattern -> DashPatternSource
dphase :: Int -> DashPattern -> DashPatternSource
Font properties
fontsize :: Int -> DrawingContext -> DrawingContextSource
Mark drawing size
doublesize :: DrawingContext -> DrawingContextSource
Set the font size to double the current size, note the font size also controls the size of dots, arrowsheads etc.
halfsize :: DrawingContext -> DrawingContextSource
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.