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

HTk.Canvasitems.CanvasItem

Description

The module CanvasItem exports basic classes and general functionality on canvas items.

Synopsis

Documentation

data Canvas Source

The Canvas datatype.

Instances

Eq Canvas 
Destroyable Canvas

A canvas widget can be destroyed.

Synchronized Canvas

You can synchronize on a canvas object (in JAVA style).

GUIObject Canvas

Internal.

HasEnable Canvas

A canvas widget is a stateful widget, it can be enabled or disabled.

HasBorder Canvas

A canvas widget has a configureable border.

HasSize Canvas

You can specify the size of a canvas.

HasColour Canvas

A canvas widget has a foreground and background colour.

HasTooltip Canvas

A canvas can have a tooltip (only displayed if you are using tixwish).

Widget Canvas

A canvas widget has standard widget properties (concerning focus, cursor).

HasPostscript Canvas

The contents of a canvas is printable.

Container Canvas

A canvas is also a container for widgets, because it can contain widgets in embedded windows.

HasScroller Canvas

A canvas is a scrollable widget.

GUIObject c => HasBBox Canvas c

You can request the bounding box size of a canvas item (use a canvas tag for the bounding box of a set of items).

class HasCoords w whereSource

You can set the coords (position / size) of a canvas item on the parent canvas.

Instances

CanvasItem w => HasCoords w

Any canvas item has coords on the parent canvas.

class GUIObject w => CanvasItem w Source

Any canvas item is an instance of the abstract class CanvasItem.

Instances

CanvasItem CanvasTag

A canvas tag is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem Arc

An arc is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem BitMapItem

A bitmap item is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem ImageItem

An image item is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem Line

A line item is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem Oval

An oval item is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem Polygon

A polygon item is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem Rectangle

A rectangle item is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem TextItem

A text item is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

CanvasItem EmbeddedCanvasWin

An embedded canvas window is a canvas item (any canvas item is an instance of the abstract class CanvasItem).

class CanvasItem w => FilledCanvasItem w whereSource

Any canvas item has a filling, outline, outline width and stipple configuration.

Instances

FilledCanvasItem Arc

An arc is a filled canvas item (it has filling, outline, outline width, and stipple configurations).

FilledCanvasItem BitMapItem

A bitmap item is a filled canvas item (it has filling, outline, outline width, and stipple configurations).

FilledCanvasItem Line

A line item has filling, outline width and stipple configurations.

FilledCanvasItem Oval

An oval item is a filled canvas item (it has filling, outline, outline width, and stipple configurations).

FilledCanvasItem Polygon

A polygon item is a filled canvas item (it has filling, outline, outline width, and stipple configurations).

FilledCanvasItem Rectangle

A rectangle item is a filled canvas item (it has filling, outline, outline width, and stipple configurations).

FilledCanvasItem TextItem

An oval item is a filled canvas item (it has filling, outline width, and stipple configurations).

class CanvasItem w => SegmentedCanvasItem w whereSource

Segmented canvas items have a splinesteps and smooth configuration.

Instances

SegmentedCanvasItem Line

A line is a segmented canvas item. It has a splinesteps and smooth configuration.

SegmentedCanvasItem Polygon

A line is a segmented canvas item. It has a splinesteps and smooth configuration.

moveItem :: (Synchronized w, CanvasItem w) => w -> Distance -> Distance -> IO ()Source

Moves a canvas item horizontally and vertically by the given distances.

scaleItem :: (Synchronized w, CanvasItem w) => w -> Distance -> Distance -> Double -> Double -> IO ()Source

Scales a canvas item horizontally and vertically by the given distances.

raiseItem :: (CanvasItem ci, CanvasItem w) => ci -> w -> IO ()Source

Moves an item above another item in the display list.

lowerItem :: (CanvasItem ci, CanvasItem w) => ci -> w -> IO ()Source

Moves an item below another item in the display list.

putItemOnTop :: CanvasItem w => w -> IO ()Source

Puts an item on top of the display list.

putItemAtBottom :: CanvasItem ci => ci -> IO ()Source

Puts an items at bottom of the display list.

itemsNotOnSameCanvas :: IOErrorSource

Exception raised by CanasItem.onSameCanvas.

declVar :: CanvasTagOrID -> TclScriptSource

Retrieve all tagnames in a complex tag expression and declare them global in form of a TclScript

declVarList :: CanvasTagOrID -> TclCmdSource

Retrieve all tagnames in a complex tag expression and declare them global in form of a TclCmd