Source codeContentsIndex
Line
Description
HTk's line canvas item. A line object on a canvas widget.
Synopsis
module CanvasItem
data ArrowHead
= BothEnds
| LastEnd
| FirstEnd
| NoHead
data CapStyle
= CapRound
| CapProjecting
| CapButt
data JoinStyle
= JoinRound
| JoinMiter
| JoinBevel
data Line
createLine :: Canvas -> [Config Line] -> IO Line
arrowshape :: ArrowShape -> Config Line
getArrowshape :: Line -> IO ArrowShape
arrowstyle :: ArrowHead -> Config Line
getArrowstyle :: Line -> IO ArrowHead
capstyle :: CapStyle -> Config Line
getCapstyle :: Line -> IO CapStyle
joinstyle :: JoinStyle -> Config Line
getJoinstyle :: Line -> IO JoinStyle
Documentation
module CanvasItem
data ArrowHead
The ArrowHead datatype (see Line.arrowstyle).
Constructors
BothEnds
LastEnd
FirstEnd
NoHead
Instances
GUIValue ArrowHead
Read ArrowHead
Show ArrowHead
data CapStyle
Constructors
CapRound
CapProjecting
CapButt
Instances
GUIValue CapStyle
Read CapStyle
Show CapStyle
data JoinStyle
Constructors
JoinRound
JoinMiter
JoinBevel
Instances
GUIValue JoinStyle
Read JoinStyle
Show JoinStyle
data Line
The Line datatype.
createLine
:: Canvas the parent canvas.
-> [Config Line] the list of configuration options for this line item.
-> IO Line A line item.
Constructs a new line item.
arrowshape :: ArrowShape -> Config Line
Sets the shape of the arrows at the ends of a line.
getArrowshape :: Line -> IO ArrowShape
Gets the shape of the arrows at the end of a line.
arrowstyle :: ArrowHead -> Config Line
getArrowstyle :: Line -> IO ArrowHead
Gets the style of the arrows at the ends of a line.
capstyle :: CapStyle -> Config Line
Sets the capstyle at the ends of a line (butt, projecting or round).
getCapstyle :: Line -> IO CapStyle
Gets the capstyle at the ends of a line.
joinstyle :: JoinStyle -> Config Line
Sets the joinstyle between the line segments (bevel, miter or round).
getJoinstyle :: Line -> IO JoinStyle
Gets the joinstyle between the line segments.
Produced by Haddock version 0.3