Source codeContentsIndex
CanvasItemAux
Synopsis
data Canvas
class HasCoords w where
coord :: Coord -> Config w
getCoord :: w -> IO Coord
class (GUIObject w) => CanvasItem w
createCanvasItem :: (CanvasItem w) => Canvas -> CanvasItemKind -> (GUIOBJECT -> w) -> [Config w] -> Coord -> IO w
itemGeo :: (CanvasItem w) => Geometry -> Config w
getGeo :: (CanvasItem w) => w -> IO Geometry
setGeo :: (CanvasItem w) => w -> Geometry -> IO w
itemWidth :: (CanvasItem w) => Distance -> Config w
getItemWidth :: (CanvasItem w) => w -> IO Distance
itemHeight :: (CanvasItem w) => Distance -> Config w
getItemHeight :: (CanvasItem w) => w -> IO Distance
itemSize :: (CanvasItem w) => Size -> Config w
getItemSize :: (CanvasItem w) => w -> IO (Distance, Distance)
itemPosition :: (CanvasItem w) => Position -> Config w
getItemPosition :: (CanvasItem w) => w -> IO (Distance, Distance)
itemPositionD2 :: (CanvasItem w) => Position -> Config w
getItemPositionD2 :: (CanvasItem w) => w -> IO (Distance, Distance)
Documentation
data Canvas
The Canvas datatype.
class HasCoords w where
You can set the coords (position / size) of a canvas item on the parent canvas.
Methods
coord :: Coord -> Config w
Sets the coord(s) of a canvas item on the parent canvas.
getCoord :: w -> IO Coord
Gets the coord(s) of a canvas item on the parent canvas.
Instances
(CanvasItem w) => HasCoords w
class (GUIObject w) => CanvasItem w
Any canvas item is an instance of the abstract class CanvasItem.
Instances
CanvasItem Arc
CanvasItem BitMapItem
CanvasItem CanvasTag
CanvasItem EmbeddedCanvasWin
CanvasItem ImageItem
CanvasItem Line
CanvasItem Oval
CanvasItem Polygon
CanvasItem Rectangle
CanvasItem TextItem
createCanvasItem :: (CanvasItem w) => Canvas -> CanvasItemKind -> (GUIOBJECT -> w) -> [Config w] -> Coord -> IO w
itemGeo :: (CanvasItem w) => Geometry -> Config w
getGeo :: (CanvasItem w) => w -> IO Geometry
setGeo :: (CanvasItem w) => w -> Geometry -> IO w
itemWidth :: (CanvasItem w) => Distance -> Config w
getItemWidth :: (CanvasItem w) => w -> IO Distance
itemHeight :: (CanvasItem w) => Distance -> Config w
getItemHeight :: (CanvasItem w) => w -> IO Distance
itemSize :: (CanvasItem w) => Size -> Config w
getItemSize :: (CanvasItem w) => w -> IO (Distance, Distance)
itemPosition :: (CanvasItem w) => Position -> Config w
getItemPosition :: (CanvasItem w) => w -> IO (Distance, Distance)
itemPositionD2 :: (CanvasItem w) => Position -> Config w
getItemPositionD2 :: (CanvasItem w) => w -> IO (Distance, Distance)
Produced by Haddock version 0.3