Safe Haskell | None |
---|---|
Language | Haskell98 |
The module CanvasItem
exports basic classes and
general functionality on canvas items.
- data Canvas
- class HasCoords w where
- class GUIObject w => CanvasItem w
- class CanvasItem w => FilledCanvasItem w where
- class CanvasItem w => SegmentedCanvasItem w where
- moveItem :: (Synchronized w, CanvasItem w) => w -> Distance -> Distance -> IO ()
- scaleItem :: (Synchronized w, CanvasItem w) => w -> Distance -> Distance -> Double -> Double -> IO ()
- raiseItem :: (CanvasItem ci, CanvasItem w) => ci -> w -> IO ()
- lowerItem :: (CanvasItem ci, CanvasItem w) => ci -> w -> IO ()
- putItemOnTop :: CanvasItem w => w -> IO ()
- putItemAtBottom :: CanvasItem ci => ci -> IO ()
- itemsNotOnSameCanvas :: IOError
- declVar :: CanvasTagOrID -> TclScript
- declVarList :: CanvasTagOrID -> TclCmd
Documentation
The Canvas
datatype.
Eq Canvas Source # | |
Destroyable Canvas Source # | A canvas widget can be destroyed. |
Synchronized Canvas Source # | You can synchronize on a canvas object (in JAVA style). |
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.
CanvasItem w => HasCoords w Source # | 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
.
CanvasItem CanvasTag Source # | A canvas tag is a canvas item (any canvas item is an instance of the
abstract |
CanvasItem EmbeddedCanvasWin Source # | An embedded canvas window is a canvas item (any canvas item is an
instance of the abstract |
CanvasItem ImageItem Source # | An image item is a canvas item (any canvas item is an instance of the
abstract |
CanvasItem Line Source # | A line item is a canvas item (any canvas item is an instance of the
abstract |
CanvasItem Oval Source # | An oval item is a canvas item (any canvas item is an instance of the
abstract |
CanvasItem Polygon Source # | A polygon item is a canvas item (any canvas item is an instance of the
abstract |
CanvasItem Rectangle Source # | A rectangle item is a canvas item (any canvas item is an instance of
the abstract |
CanvasItem TextItem Source # | A text item is a canvas item (any canvas item is an instance of the
abstract |
CanvasItem BitMapItem Source # | A bitmap item is a canvas item (any canvas item is an instance of the
abstract |
CanvasItem Arc Source # | An arc is a canvas item (any canvas item is an instance of the abstract
|
class CanvasItem w => FilledCanvasItem w where Source #
Any canvas item has a filling, outline, outline width and stipple configuration.
filling :: ColourDesignator c => c -> Config w Source #
getFilling :: w -> IO Colour Source #
outline :: ColourDesignator c => c -> Config w Source #
getOutline :: w -> IO Colour Source #
stipple :: BitMapHandle -> Config w Source #
getStipple :: w -> IO BitMapHandle Source #
outlinewidth :: Distance -> Config w Source #
getOutlineWidth :: w -> IO Distance Source #
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.
splinesteps :: Int -> Config w Source #
getSplinesteps :: w -> IO Int Source #
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