gmlAttachableItem Class Reference

Detailed Description

GL canvas items that can be attached to handles. At most one binding can be created for each pointer-item pair.

Public Member Functions

constructor canvas args

canvas
The canvas in which the item should be created.
args
Passed to the canvas create subcommand to create the graphical item.

destructor

configure args

Wraps the itemconfigure canvas method.

cget args

Wraps the itemcget canvas method.

handleBind id x y

Process a binding event from pointer id.

handleUnbind id

Process an unbinding event for pointer id.

handleMotion id x y

Process a motion event from pointer id.

getCanvasId

Return the canvas id for the item.

raise

Raise the graphical item, and the binding markers, above all others in the canvas.