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

Safe HaskellNone
LanguageHaskell98

HTk.Canvasitems.CanvasTag

Synopsis

Documentation

data CanvasTag Source #

The CanvasTag datatype.

Instances

Eq CanvasTag Source # 
Destroyable CanvasTag Source #

A canvas tag can be destroyed.

Methods

destroy :: CanvasTag -> IO () #

Synchronized CanvasTag Source #

You can synchronize on a canvas tag.

Methods

synchronize :: CanvasTag -> IO b -> IO b #

GUIObject CanvasTag Source #

Internal.

CanvasItem CanvasTag Source #

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

class CanvasItem w => TaggedCanvasItem w where Source #

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

Methods

tags :: [CanvasTag] -> Config w Source #

Instances

TaggedCanvasItem EmbeddedCanvasWin Source #

An embedded canvas window can have several tags (handlers for a set of canvas items).

TaggedCanvasItem ImageItem Source #

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

TaggedCanvasItem Line Source #

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

Methods

tags :: [CanvasTag] -> Config Line Source #

TaggedCanvasItem Oval Source #

An oval item can have several tags (handlers for a set of canvas items).

Methods

tags :: [CanvasTag] -> Config Oval Source #

TaggedCanvasItem Polygon Source #

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

TaggedCanvasItem Rectangle Source #

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

TaggedCanvasItem TextItem Source #

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

TaggedCanvasItem BitMapItem Source #

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

TaggedCanvasItem Arc Source #

An arc item can have several tags (handlers for a set of canvas items).

Methods

tags :: [CanvasTag] -> Config Arc Source #

data SearchSpec Source #

The SearchSpec datatype (see addCanvasTag).

allItems Source #

Arguments

:: SearchSpec

A SearchSpec object.

Adds all objects in the canvas.

aboveItem Source #

Arguments

:: CanvasItem item 
=> item

the item below the item to add.

-> SearchSpec

A SearchSpec object.

Adds the item just above the given item in the display list.

belowItem Source #

Arguments

:: CanvasItem item 
=> item

the item above the item to add.

-> SearchSpec

A SearchSpec object.

Adds the item just below in the given item in the display list.

withTag Source #

Arguments

:: CanvasItem item 
=> item

the canvas item handler.

-> SearchSpec

A SearchSpec object.

Adds the item(s) identified by the given handler (which can also be another canvas tag).

closest Source #

Arguments

:: Position

the concerned position.

-> SearchSpec

A SearchSpec object.

Adds the item closest to the given position.

enclosed Source #

Arguments

:: Position

the upper left position of the region.

-> Position

the lower right position of the region.

-> SearchSpec

A SearchSpec object.

Adds the items enclosed in the specified region.

overlapping Source #

Arguments

:: Position

the upper left position of the region.

-> Position

the lower right position of the region.

-> SearchSpec

A SearchSpec object.

Adds the items overpalling the specified region.

createCanvasTag Source #

Arguments

:: Canvas

the parent canvas.

-> [Config CanvasTag]

the list of configuration options for this canvas tag.

-> IO CanvasTag

A canvas tag.

Constructs a new canvas tag.

addCanvasTag Source #

Arguments

:: SearchSpec

the search specification.

-> CanvasTag

the tag to add items to.

-> IO ()

None.

Adds the canvas items identified by the SearchSpec to the tag.

removeCanvasTag Source #

Arguments

:: CanvasItem i 
=> i

the item to remove from the tag.

-> CanvasTag

the tag to remove the item from.

-> IO ()

None.

Removes a canvas item from a canvas tag.

(&#&) infixr 3 Source #

Arguments

:: CanvasTag 
-> CanvasTag 
-> IO CanvasTag

new canvas tag corresponding to (t1&&t2)

Forms the conjunction of two canvas tags

(|#|) infixr 2 Source #

Arguments

:: CanvasTag 
-> CanvasTag 
-> IO CanvasTag

new canvas tag corresponding to (t1||t2)

Forms the disjunction of two canvas tags

(^#) infixr 2 Source #

Arguments

:: CanvasTag 
-> CanvasTag 
-> IO CanvasTag

new canvas tag corresponding to (t1^t2) equals (!t1&&t2)||(t1&&!t2)

Forms "either - or" of two canvas tags

tagNot Source #

Arguments

:: CanvasTag 
-> IO CanvasTag

new canvas tag corresponding to !t