uni-htk-2.2.1.0: Graphical User Interface for Haskell Programs

HTk.Canvasitems.Line

Description

HTk's line canvas item. A line object on a canvas widget.

Synopsis

Documentation

data ArrowHead Source

The ArrowHead datatype (see Line.arrowstyle).

Constructors

BothEnds 
LastEnd 
FirstEnd 
NoHead 

data CapStyle Source

The CapStyle datatype (see Line.capstyle).

Instances

data JoinStyle Source

The JoinStyle datatype (see Line.joinstyle).

Constructors

JoinRound 
JoinMiter 
JoinBevel 

data Line Source

The Line datatype.

Instances

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 class CanvasItem).

TaggedCanvasItem Line

A line item can have several tags (handlers for a set of canvas items).

createLineSource

Arguments

:: 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.