Go to the first, previous, next, last section, table of contents.
moveViewport :: Viewport -> Coord -> IO Coord
-
set the lower lefthand corner of the viewport to new point within
the viewed component. Moving the viewport rectangle outside the extent
of the viewed component is not allowed. Attempts at doing so will cause
the coordinate to be translated such that the bounding box will remain
within the current bounding box of viewed component. The operation
returns the actual position the viewport area was moved to.
translateViewport :: Viewport -> Translation -> IO Translation
-
moves the viewport area relatively. The same restrictions regarding
moving the viewport area outside the viewed component's extent apply
here.
resizeViewport :: Viewport -> Size -> IO
-
setViewportSize :: Viewport -> Size -> IO ()
-
change the size of the viewport area. If new size causes the area to
extend beyond the boundaries of the viewed component, the position of
the area is translated to try to fit the new area within the component's
extent. If this is not possible, the viewed component is resized.
setViewportBBox :: Viewport -> Rectangle -> IO ()
-
set new position and size of the viewport rectangle.
getViewportBBox :: Viewport -> IO Rectangle
-
returns extent of viewport area.
getViewportSize :: Viewport -> IO Size
-
returns the size of the viewport area.
getViewSize :: Viewport -> IO Size
-
returns the current size of the viewed component.
Go to the first, previous, next, last section, table of contents.