Go to the first, previous, next, last section, table of contents.

Glyph operators

* setPicture :: Glyph -> Picture -> IO ()
replaces the current picture displayed by the glyph, resizing the new picture to fit the glyph's current size.

* newPicture :: Glyph -> Picture -> IO ()
replaces the current picture and resizes the glyph such that it is at least the size of the new picture's bounding box in both directions.

* addPicture :: Glyph -> Picture -> IO ()
Adds a picture by overlaying it on top of the glyph's current picture. Overlay is done by matching up the origins of the two pictures. Resulting picture is resized to fit the current size of the Glyph.

* setResizeablePicture :: Glyph -> ResizeablePicture -> IO ()
replaces the glyph's picture with a `resizeable' one:

type ResizeablePicture = Size -> Picture

which will return the picture to display, given the current size of the glyph.
* newResizeablePicture :: Glyph -> ResizeablePicture -> Picture -> IO ()
Same as for setResizeablePicture, but in addition parameterised over the picture to use for computing the new natural size of the glyph. The glyph may resize as a result.
* resizeGlyph :: Glyph -> Size -> IO ()
change the current size of the glyph. If the glyph's current picture is a ResizablePicture, the new size will be applied to create the new picture to display. Otherwise, the glyph's current picture will be scaled to fit the new size.
* setGlyphSize :: Glyph -> Size -> CompassDirection -> IO ()
change the natural size of the glyph.
* getPicture :: Glyph -> IO Picture
Get glyph's current picture. If the glyph's picture is a ResizablePicture, the picture returned is the one displayed at the current size.

* getGlyphNatSize :: Glyph -> IO Size
returns the natural size of the glyph.

* getGlyphSize:: Glyph -> IO Size
returns the current size of the glyph.

Go to the first, previous, next, last section, table of contents.