Safe Haskell | None |
---|---|
Language | Haskell98 |
HTk's line canvas item. A line object on a canvas widget.
- data ArrowHead
- data CapStyle
- 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 Source # | |
Destroyable Line Source # | A line item can be destroyed. |
Synchronized Line Source # | You can synchronize on a line item. |
GUIObject Line Source # | Internal. |
HasSize Line Source # | You can specify the width of the line. |
SegmentedCanvasItem Line Source # | A line is a segmented canvas item. It has a splinesteps and smooth configuration. |
FilledCanvasItem Line Source # | A line item has filling, outline width and stipple configurations. |
CanvasItem Line Source # | A line item is a canvas item (any canvas item is an instance of the
abstract |
TaggedCanvasItem Line Source # | 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 Line Source #
Sets the shape of the arrows at the ends of a line.
getArrowshape :: Line -> IO ArrowShape Source #
Gets the shape of the arrows at the end of a line.
capstyle :: CapStyle -> Config Line Source #
Sets the capstyle at the ends of a line (butt, projecting or round).