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

Safe HaskellNone
LanguageHaskell98

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 Source # 

Methods

(==) :: Canvas -> Canvas -> Bool #

(/=) :: Canvas -> Canvas -> Bool #

Destroyable Canvas Source #

A canvas widget can be destroyed.

Methods

destroy :: Canvas -> IO () #

Synchronized Canvas Source #

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

Methods

synchronize :: Canvas -> IO b -> IO b #

GUIObject Canvas Source #

Internal.

HasEnable Canvas Source #

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

HasBorder Canvas Source #

A canvas widget has a configureable border.

HasSize Canvas Source #

You can specify the size of a canvas.

HasColour Canvas Source #

A canvas widget has a foreground and background colour.

HasTooltip Canvas Source #

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

Widget Canvas Source #

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

Container Canvas Source #

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

HasPostscript Canvas Source #

The contents of a canvas is printable.

HasScroller Canvas Source #

A canvas is a scrollable widget.

GUIObject c => HasBBox Canvas c Source #

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 where Source #

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

Minimal complete definition

coord, getCoord

Methods

coord :: Coord -> Config w Source #

getCoord :: w -> IO Coord Source #

Instances

CanvasItem w => HasCoords w Source #

Any canvas item has coords on the parent canvas.

Methods

coord :: Coord -> Config w Source #

getCoord :: w -> IO Coord Source #

class GUIObject w => CanvasItem w Source #

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

Instances

CanvasItem CanvasTag Source #

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

CanvasItem EmbeddedCanvasWin Source #

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

CanvasItem ImageItem Source #

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

CanvasItem Line Source #

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

CanvasItem Oval Source #

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

CanvasItem Polygon Source #

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

CanvasItem Rectangle Source #

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

CanvasItem TextItem Source #

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

CanvasItem BitMapItem Source #

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

CanvasItem Arc Source #

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

class CanvasItem w => FilledCanvasItem w where Source #

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

Instances

FilledCanvasItem Line Source #

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

FilledCanvasItem Oval Source #

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

FilledCanvasItem Polygon Source #

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

FilledCanvasItem Rectangle Source #

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

FilledCanvasItem TextItem Source #

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

FilledCanvasItem BitMapItem Source #

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

FilledCanvasItem Arc Source #

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

class CanvasItem w => SegmentedCanvasItem w where Source #

Segmented canvas items have a splinesteps and smooth configuration.

Instances

SegmentedCanvasItem Line Source #

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

SegmentedCanvasItem Polygon Source #

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 :: IOError Source #

Exception raised by CanasItem.onSameCanvas.

declVar :: CanvasTagOrID -> TclScript Source #

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

declVarList :: CanvasTagOrID -> TclCmd Source #

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