yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Region
Description
This module defines the Region ADT
Synopsis
data Region
emptyRegion :: Region
regionIsEmpty :: Region -> Bool
mkRegion :: Point -> Point -> Region
mkRegion' :: Direction -> Point -> Point -> Region
mkSizeRegion :: Point -> Size -> Region
regionStart :: Region -> Point
regionEnd :: Region -> Point
regionSize :: Region -> Size
regionDirection :: Region -> Direction
inRegion :: Point -> Region -> Bool
nearRegion :: Point -> Region -> Bool
includedRegion :: Region -> Region -> Bool
fmapRegion :: (Point -> Point) -> Region -> Region
intersectRegion :: Region -> Region -> Region
unionRegion :: Region -> Region -> Region
regionFirst :: Region -> Point
regionLast :: Region -> Point
regionsOverlap :: Bool -> Region -> Region -> Bool
Documentation
data Region Source
The region data type. The region is semi open: it includes the start but not the end bound. This allows simpler region-manipulation algorithms. Invariant : regionStart r <= regionEnd r
show/hide Instances
emptyRegion :: RegionSource
The empty region
regionIsEmpty :: Region -> BoolSource
mkRegion :: Point -> Point -> RegionSource
Construct a region from its bounds, emacs style: the right bound is excluded
mkRegion' :: Direction -> Point -> Point -> RegionSource
mkSizeRegion :: Point -> Size -> RegionSource
regionStart :: Region -> PointSource
regionEnd :: Region -> PointSource
regionSize :: Region -> SizeSource
regionDirection :: Region -> DirectionSource
inRegion :: Point -> Region -> BoolSource
True if the given point is inside the given region.
nearRegion :: Point -> Region -> BoolSource
True if the given point is inside the given region or at the end of it.
includedRegion :: Region -> Region -> BoolSource
Returns if a region (1st arg) is included in another (2nd arg)
fmapRegion :: (Point -> Point) -> Region -> RegionSource
intersectRegion :: Region -> Region -> RegionSource
Take the intersection of two regions
unionRegion :: Region -> Region -> RegionSource
Take the union of two regions (including what is between them)
regionFirst :: Region -> PointSource
regionLast :: Region -> PointSource
regionsOverlap :: Bool -> Region -> Region -> BoolSource
Produced by Haddock version 2.6.1