Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Defines the x and y coordinates of a point.
- newtype Point = Point (ForeignPtr Point)
- newZeroPoint :: MonadIO m => m Point
- noPoint :: Maybe Point
- pointReadX :: MonadIO m => Point -> m Int32
- pointWriteX :: MonadIO m => Point -> Int32 -> m ()
- pointX :: AttrLabelProxy "x"
- pointReadY :: MonadIO m => Point -> m Int32
- pointWriteY :: MonadIO m => Point -> Int32 -> m ()
- pointY :: AttrLabelProxy "y"
Exported types
(~) AttrOpTag tag AttrSet => Constructible Point tag | |
((~) * info (ResolvePointMethod t Point), MethodInfo * info Point p) => IsLabelProxy t (Point -> p) | |
type AttributeList Point |
newZeroPoint :: MonadIO m => m Point Source
Construct a Point
struct initialized to zero.
Properties
X
pointReadX :: MonadIO m => Point -> m Int32 Source
pointWriteX :: MonadIO m => Point -> Int32 -> m () Source
pointX :: AttrLabelProxy "x" Source
Y
pointReadY :: MonadIO m => Point -> m Int32 Source
pointWriteY :: MonadIO m => Point -> Int32 -> m () Source
pointY :: AttrLabelProxy "y" Source