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

Safe HaskellNone
LanguageHaskell98

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

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

createLine Source

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

arrowstyle :: ArrowHead -> Config Line Source

Sets the style of the arrows at the ends of a line.

getArrowstyle :: Line -> IO ArrowHead Source

Gets the style of the arrows at the ends of a line.

capstyle :: CapStyle -> Config Line Source

Sets the capstyle at the ends of a line (butt, projecting or round).

getCapstyle :: Line -> IO CapStyle Source

Gets the capstyle at the ends of a line.

joinstyle :: JoinStyle -> Config Line Source

Sets the joinstyle between the line segments (bevel, miter or round).

getJoinstyle :: Line -> IO JoinStyle Source

Gets the joinstyle between the line segments.