HTk's line canvas item. A line object on a canvas widget.
- data ArrowHead
- data CapStyle
- = CapRound
- | CapProjecting
- | CapButt
- data JoinStyle
- 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
The ArrowHead
datatype (see Line.arrowstyle
).
The CapStyle
datatype (see Line.capstyle
).
The JoinStyle
datatype (see Line.joinstyle
).
The Line
datatype.
Eq Line | |
Destroyable Line | A line item can be destroyed. |
Synchronized Line | You can synchronize on a line item. |
GUIObject Line | Internal. |
HasSize Line | You can specify the width of the line. |
SegmentedCanvasItem Line | A line is a segmented canvas item. It has a splinesteps and smooth configuration. |
FilledCanvasItem Line | A line item has filling, outline width and stipple configurations. |
CanvasItem Line | A line item is a canvas item (any canvas item is an instance of the
abstract |
TaggedCanvasItem Line | A line item can have several tags (handlers for a set of canvas items). |
:: 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 LineSource
Sets the shape of the arrows at the ends of a line.
getArrowshape :: Line -> IO ArrowShapeSource
Gets the shape of the arrows at the end of a line.
arrowstyle :: ArrowHead -> Config LineSource
Sets the style of the arrows at the ends of a line.
getArrowstyle :: Line -> IO ArrowHeadSource
Gets the style of the arrows at the ends of a line.
capstyle :: CapStyle -> Config LineSource
Sets the capstyle at the ends of a line (butt, projecting or round).
getCapstyle :: Line -> IO CapStyleSource
Gets the capstyle at the ends of a line.
joinstyle :: JoinStyle -> Config LineSource
Sets the joinstyle between the line segments (bevel, miter or round).
getJoinstyle :: Line -> IO JoinStyleSource
Gets the joinstyle between the line segments.