wumpus-basic-0.3.0: Common drawing utilities built on wumpus-core.
Source code
Contents
Index
Wumpus.Basic.Graphic.DrawingAttr
Portability
GHC with TypeFamilies and more
Stability
highly unstable
Maintainer
Stephen Tetley <stephen.tetley@gmail.com>
Contents
Drawing attributes
Description
Drawing attributes
Synopsis
data
DrawingAttr
=
DrawingAttr
{
line_width
::
Double
font_props
::
FontAttr
stroke_colour
::
DRGB
fill_colour
::
DRGB
}
standardAttr
::
FontSize
->
DrawingAttr
strokeAttr
::
DrawingAttr
-> (
DRGB
,
StrokeAttr
)
fillAttr
::
DrawingAttr
->
DRGB
textAttr
::
DrawingAttr
-> (
DRGB
,
FontAttr
)
markHeight
::
Fractional
u =>
DrawingAttr
-> u
textDimensions
::
Fractional
u =>
String
->
DrawingAttr
-> (u, u)
Drawing attributes
data
DrawingAttr
Source
Constructors
DrawingAttr
line_width
::
Double
font_props
::
FontAttr
stroke_colour
::
DRGB
fill_colour
::
DRGB
Instances
Eq
DrawingAttr
Show
DrawingAttr
standardAttr
::
FontSize
->
DrawingAttr
Source
strokeAttr
::
DrawingAttr
-> (
DRGB
,
StrokeAttr
)
Source
fillAttr
::
DrawingAttr
->
DRGB
Source
textAttr
::
DrawingAttr
-> (
DRGB
,
FontAttr
)
Source
markHeight
::
Fractional
u =>
DrawingAttr
-> u
Source
A Mark is consider to be the height of a lowercase letter in the current font.
textDimensions
::
Fractional
u =>
String
->
DrawingAttr
-> (u, u)
Source
textDimensions : text -> DrawingAttr -> (width,height)
Produced by
Haddock
version 2.6.1