| Copyright | (C) 2012-2015 Edward Kmett |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Trustworthy |
| Language | Haskell2010 |
SDL.Internal.Vect
Description
Documentation
newtype Point (f :: Type -> Type) a Source #
A handy wrapper to help distinguish points from vectors at the type level
Constructors
| P (f a) |
Instances
| Generic1 (Point f :: Type -> Type) Source # | |||||
Defined in SDL.Internal.Vect Associated Types
| |||||
| Unbox (f a) => Vector Vector (Point f a) Source # | |||||
Defined in SDL.Internal.Vect Methods basicUnsafeFreeze :: Mutable Vector s (Point f a) -> ST s (Vector (Point f a)) basicUnsafeThaw :: Vector (Point f a) -> ST s (Mutable Vector s (Point f a)) basicLength :: Vector (Point f a) -> Int basicUnsafeSlice :: Int -> Int -> Vector (Point f a) -> Vector (Point f a) basicUnsafeIndexM :: Vector (Point f a) -> Int -> Box (Point f a) basicUnsafeCopy :: Mutable Vector s (Point f a) -> Vector (Point f a) -> ST s () | |||||
| Unbox (f a) => MVector MVector (Point f a) Source # | |||||
Defined in SDL.Internal.Vect Methods basicLength :: MVector s (Point f a) -> Int basicUnsafeSlice :: Int -> Int -> MVector s (Point f a) -> MVector s (Point f a) basicOverlaps :: MVector s (Point f a) -> MVector s (Point f a) -> Bool basicUnsafeNew :: Int -> ST s (MVector s (Point f a)) basicInitialize :: MVector s (Point f a) -> ST s () basicUnsafeReplicate :: Int -> Point f a -> ST s (MVector s (Point f a)) basicUnsafeRead :: MVector s (Point f a) -> Int -> ST s (Point f a) basicUnsafeWrite :: MVector s (Point f a) -> Int -> Point f a -> ST s () basicClear :: MVector s (Point f a) -> ST s () basicSet :: MVector s (Point f a) -> Point f a -> ST s () basicUnsafeCopy :: MVector s (Point f a) -> MVector s (Point f a) -> ST s () basicUnsafeMove :: MVector s (Point f a) -> MVector s (Point f a) -> ST s () basicUnsafeGrow :: MVector s (Point f a) -> Int -> ST s (MVector s (Point f a)) | |||||
| Applicative f => Applicative (Point f) Source # | |||||
| Functor f => Functor (Point f) Source # | |||||
| Monad f => Monad (Point f) Source # | |||||
| Foldable f => Foldable (Point f) Source # | |||||
Defined in SDL.Internal.Vect Methods fold :: Monoid m => Point f m -> m foldMap :: Monoid m => (a -> m) -> Point f a -> m foldMap' :: Monoid m => (a -> m) -> Point f a -> m foldr :: (a -> b -> b) -> b -> Point f a -> b foldr' :: (a -> b -> b) -> b -> Point f a -> b foldl :: (b -> a -> b) -> b -> Point f a -> b foldl' :: (b -> a -> b) -> b -> Point f a -> b foldr1 :: (a -> a -> a) -> Point f a -> a foldl1 :: (a -> a -> a) -> Point f a -> a elem :: Eq a => a -> Point f a -> Bool maximum :: Ord a => Point f a -> a minimum :: Ord a => Point f a -> a | |||||
| Traversable f => Traversable (Point f) Source # | |||||
| (Typeable f, Typeable a, Data (f a)) => Data (Point f a) Source # | |||||
Defined in SDL.Internal.Vect Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Point f a -> c (Point f a) gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Point f a) toConstr :: Point f a -> Constr dataTypeOf :: Point f a -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Point f a)) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Point f a)) gmapT :: (forall b. Data b => b -> b) -> Point f a -> Point f a gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Point f a -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Point f a -> r gmapQ :: (forall d. Data d => d -> u) -> Point f a -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Point f a -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Point f a -> m (Point f a) gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Point f a -> m (Point f a) gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Point f a -> m (Point f a) | |||||
| Storable (f a) => Storable (Point f a) Source # | |||||
Defined in SDL.Internal.Vect Methods peekElemOff :: Ptr (Point f a) -> Int -> IO (Point f a) pokeElemOff :: Ptr (Point f a) -> Int -> Point f a -> IO () peekByteOff :: Ptr b -> Int -> IO (Point f a) pokeByteOff :: Ptr b -> Int -> Point f a -> IO () | |||||
| Generic (Point f a) Source # | |||||
Defined in SDL.Internal.Vect Associated Types
| |||||
| Ix (f a) => Ix (Point f a) Source # | |||||
Defined in SDL.Internal.Vect Methods range :: (Point f a, Point f a) -> [Point f a] index :: (Point f a, Point f a) -> Point f a -> Int unsafeIndex :: (Point f a, Point f a) -> Point f a -> Int inRange :: (Point f a, Point f a) -> Point f a -> Bool rangeSize :: (Point f a, Point f a) -> Int unsafeRangeSize :: (Point f a, Point f a) -> Int | |||||
| Num (f a) => Num (Point f a) Source # | |||||
| Read (f a) => Read (Point f a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Fractional (f a) => Fractional (Point f a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Show (f a) => Show (Point f a) Source # | |||||
| Eq (f a) => Eq (Point f a) Source # | |||||
| Ord (f a) => Ord (Point f a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Unbox (f a) => Unbox (Point f a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| type Rep1 (Point f :: Type -> Type) Source # | |||||
Defined in SDL.Internal.Vect type Rep1 (Point f :: Type -> Type) = D1 ('MetaData "Point" "SDL.Internal.Vect" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'True) (C1 ('MetaCons "P" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec1 f))) | |||||
| data MVector s (Point f a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| type Rep (Point f a) Source # | |||||
Defined in SDL.Internal.Vect type Rep (Point f a) = D1 ('MetaData "Point" "SDL.Internal.Vect" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'True) (C1 ('MetaCons "P" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f a)))) | |||||
| data Vector (Point f a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
A 2-dimensional vector
>>>pure 1 :: V2 IntV2 1 1
>>>V2 1 2 + V2 3 4V2 4 6
>>>V2 1 2 * V2 3 4V2 3 8
>>>sum (V2 1 2)3
Constructors
| V2 !a !a |
Instances
| MonadZip V2 Source # | |||||
| Applicative V2 Source # | |||||
| Functor V2 Source # | |||||
| Monad V2 Source # | |||||
| MonadFix V2 Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Foldable V2 Source # | |||||
Defined in SDL.Internal.Vect Methods foldMap :: Monoid m => (a -> m) -> V2 a -> m foldMap' :: Monoid m => (a -> m) -> V2 a -> m foldr :: (a -> b -> b) -> b -> V2 a -> b foldr' :: (a -> b -> b) -> b -> V2 a -> b foldl :: (b -> a -> b) -> b -> V2 a -> b foldl' :: (b -> a -> b) -> b -> V2 a -> b foldr1 :: (a -> a -> a) -> V2 a -> a foldl1 :: (a -> a -> a) -> V2 a -> a | |||||
| Traversable V2 Source # | |||||
| Generic1 V2 Source # | |||||
Defined in SDL.Internal.Vect Associated Types
| |||||
| Unbox a => Vector Vector (V2 a) Source # | |||||
Defined in SDL.Internal.Vect Methods basicUnsafeFreeze :: Mutable Vector s (V2 a) -> ST s (Vector (V2 a)) basicUnsafeThaw :: Vector (V2 a) -> ST s (Mutable Vector s (V2 a)) basicLength :: Vector (V2 a) -> Int basicUnsafeSlice :: Int -> Int -> Vector (V2 a) -> Vector (V2 a) basicUnsafeIndexM :: Vector (V2 a) -> Int -> Box (V2 a) basicUnsafeCopy :: Mutable Vector s (V2 a) -> Vector (V2 a) -> ST s () | |||||
| Unbox a => MVector MVector (V2 a) Source # | |||||
Defined in SDL.Internal.Vect Methods basicLength :: MVector s (V2 a) -> Int basicUnsafeSlice :: Int -> Int -> MVector s (V2 a) -> MVector s (V2 a) basicOverlaps :: MVector s (V2 a) -> MVector s (V2 a) -> Bool basicUnsafeNew :: Int -> ST s (MVector s (V2 a)) basicInitialize :: MVector s (V2 a) -> ST s () basicUnsafeReplicate :: Int -> V2 a -> ST s (MVector s (V2 a)) basicUnsafeRead :: MVector s (V2 a) -> Int -> ST s (V2 a) basicUnsafeWrite :: MVector s (V2 a) -> Int -> V2 a -> ST s () basicClear :: MVector s (V2 a) -> ST s () basicSet :: MVector s (V2 a) -> V2 a -> ST s () basicUnsafeCopy :: MVector s (V2 a) -> MVector s (V2 a) -> ST s () basicUnsafeMove :: MVector s (V2 a) -> MVector s (V2 a) -> ST s () basicUnsafeGrow :: MVector s (V2 a) -> Int -> ST s (MVector s (V2 a)) | |||||
| Data a => Data (V2 a) Source # | |||||
Defined in SDL.Internal.Vect Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> V2 a -> c (V2 a) gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (V2 a) dataTypeOf :: V2 a -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (V2 a)) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (V2 a)) gmapT :: (forall b. Data b => b -> b) -> V2 a -> V2 a gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> V2 a -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> V2 a -> r gmapQ :: (forall d. Data d => d -> u) -> V2 a -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> V2 a -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> V2 a -> m (V2 a) gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> V2 a -> m (V2 a) gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> V2 a -> m (V2 a) | |||||
| Bounded a => Bounded (V2 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Floating a => Floating (V2 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Storable a => Storable (V2 a) Source # | |||||
Defined in SDL.Internal.Vect Methods peekElemOff :: Ptr (V2 a) -> Int -> IO (V2 a) pokeElemOff :: Ptr (V2 a) -> Int -> V2 a -> IO () peekByteOff :: Ptr b -> Int -> IO (V2 a) pokeByteOff :: Ptr b -> Int -> V2 a -> IO () | |||||
| Generic (V2 a) Source # | |||||
Defined in SDL.Internal.Vect Associated Types
| |||||
| Ix a => Ix (V2 a) Source # | |||||
| Num a => Num (V2 a) Source # | |||||
| Read a => Read (V2 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Fractional a => Fractional (V2 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Show a => Show (V2 a) Source # | |||||
| Eq a => Eq (V2 a) Source # | |||||
| Ord a => Ord (V2 a) Source # | |||||
| Unbox a => Unbox (V2 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| type Rep1 V2 Source # | |||||
Defined in SDL.Internal.Vect type Rep1 V2 = D1 ('MetaData "V2" "SDL.Internal.Vect" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'False) (C1 ('MetaCons "V2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1)) | |||||
| data MVector s (V2 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| type Rep (V2 a) Source # | |||||
Defined in SDL.Internal.Vect type Rep (V2 a) = D1 ('MetaData "V2" "SDL.Internal.Vect" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'False) (C1 ('MetaCons "V2" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a))) | |||||
| data Vector (V2 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
A 3-dimensional vector
Constructors
| V3 !a !a !a |
Instances
| MonadZip V3 Source # | |||||
| Applicative V3 Source # | |||||
| Functor V3 Source # | |||||
| Monad V3 Source # | |||||
| MonadFix V3 Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Foldable V3 Source # | |||||
Defined in SDL.Internal.Vect Methods foldMap :: Monoid m => (a -> m) -> V3 a -> m foldMap' :: Monoid m => (a -> m) -> V3 a -> m foldr :: (a -> b -> b) -> b -> V3 a -> b foldr' :: (a -> b -> b) -> b -> V3 a -> b foldl :: (b -> a -> b) -> b -> V3 a -> b foldl' :: (b -> a -> b) -> b -> V3 a -> b foldr1 :: (a -> a -> a) -> V3 a -> a foldl1 :: (a -> a -> a) -> V3 a -> a | |||||
| Traversable V3 Source # | |||||
| Generic1 V3 Source # | |||||
Defined in SDL.Internal.Vect Associated Types
| |||||
| Unbox a => Vector Vector (V3 a) Source # | |||||
Defined in SDL.Internal.Vect Methods basicUnsafeFreeze :: Mutable Vector s (V3 a) -> ST s (Vector (V3 a)) basicUnsafeThaw :: Vector (V3 a) -> ST s (Mutable Vector s (V3 a)) basicLength :: Vector (V3 a) -> Int basicUnsafeSlice :: Int -> Int -> Vector (V3 a) -> Vector (V3 a) basicUnsafeIndexM :: Vector (V3 a) -> Int -> Box (V3 a) basicUnsafeCopy :: Mutable Vector s (V3 a) -> Vector (V3 a) -> ST s () | |||||
| Unbox a => MVector MVector (V3 a) Source # | |||||
Defined in SDL.Internal.Vect Methods basicLength :: MVector s (V3 a) -> Int basicUnsafeSlice :: Int -> Int -> MVector s (V3 a) -> MVector s (V3 a) basicOverlaps :: MVector s (V3 a) -> MVector s (V3 a) -> Bool basicUnsafeNew :: Int -> ST s (MVector s (V3 a)) basicInitialize :: MVector s (V3 a) -> ST s () basicUnsafeReplicate :: Int -> V3 a -> ST s (MVector s (V3 a)) basicUnsafeRead :: MVector s (V3 a) -> Int -> ST s (V3 a) basicUnsafeWrite :: MVector s (V3 a) -> Int -> V3 a -> ST s () basicClear :: MVector s (V3 a) -> ST s () basicSet :: MVector s (V3 a) -> V3 a -> ST s () basicUnsafeCopy :: MVector s (V3 a) -> MVector s (V3 a) -> ST s () basicUnsafeMove :: MVector s (V3 a) -> MVector s (V3 a) -> ST s () basicUnsafeGrow :: MVector s (V3 a) -> Int -> ST s (MVector s (V3 a)) | |||||
| Data a => Data (V3 a) Source # | |||||
Defined in SDL.Internal.Vect Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> V3 a -> c (V3 a) gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (V3 a) dataTypeOf :: V3 a -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (V3 a)) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (V3 a)) gmapT :: (forall b. Data b => b -> b) -> V3 a -> V3 a gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> V3 a -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> V3 a -> r gmapQ :: (forall d. Data d => d -> u) -> V3 a -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> V3 a -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) | |||||
| Bounded a => Bounded (V3 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Floating a => Floating (V3 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Storable a => Storable (V3 a) Source # | |||||
Defined in SDL.Internal.Vect Methods peekElemOff :: Ptr (V3 a) -> Int -> IO (V3 a) pokeElemOff :: Ptr (V3 a) -> Int -> V3 a -> IO () peekByteOff :: Ptr b -> Int -> IO (V3 a) pokeByteOff :: Ptr b -> Int -> V3 a -> IO () | |||||
| Generic (V3 a) Source # | |||||
Defined in SDL.Internal.Vect Associated Types
| |||||
| Ix a => Ix (V3 a) Source # | |||||
| Num a => Num (V3 a) Source # | |||||
| Read a => Read (V3 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Fractional a => Fractional (V3 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Show a => Show (V3 a) Source # | |||||
| Eq a => Eq (V3 a) Source # | |||||
| Ord a => Ord (V3 a) Source # | |||||
| Unbox a => Unbox (V3 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| type Rep1 V3 Source # | |||||
Defined in SDL.Internal.Vect type Rep1 V3 = D1 ('MetaData "V3" "SDL.Internal.Vect" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'False) (C1 ('MetaCons "V3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1))) | |||||
| data MVector s (V3 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| type Rep (V3 a) Source # | |||||
Defined in SDL.Internal.Vect type Rep (V3 a) = D1 ('MetaData "V3" "SDL.Internal.Vect" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'False) (C1 ('MetaCons "V3" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))) | |||||
| data Vector (V3 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
A 4-dimensional vector.
Constructors
| V4 !a !a !a !a |
Instances
| MonadZip V4 Source # | |||||
| Applicative V4 Source # | |||||
| Functor V4 Source # | |||||
| Monad V4 Source # | |||||
| MonadFix V4 Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Foldable V4 Source # | |||||
Defined in SDL.Internal.Vect Methods foldMap :: Monoid m => (a -> m) -> V4 a -> m foldMap' :: Monoid m => (a -> m) -> V4 a -> m foldr :: (a -> b -> b) -> b -> V4 a -> b foldr' :: (a -> b -> b) -> b -> V4 a -> b foldl :: (b -> a -> b) -> b -> V4 a -> b foldl' :: (b -> a -> b) -> b -> V4 a -> b foldr1 :: (a -> a -> a) -> V4 a -> a foldl1 :: (a -> a -> a) -> V4 a -> a | |||||
| Traversable V4 Source # | |||||
| Generic1 V4 Source # | |||||
Defined in SDL.Internal.Vect Associated Types
| |||||
| Unbox a => Vector Vector (V4 a) Source # | |||||
Defined in SDL.Internal.Vect Methods basicUnsafeFreeze :: Mutable Vector s (V4 a) -> ST s (Vector (V4 a)) basicUnsafeThaw :: Vector (V4 a) -> ST s (Mutable Vector s (V4 a)) basicLength :: Vector (V4 a) -> Int basicUnsafeSlice :: Int -> Int -> Vector (V4 a) -> Vector (V4 a) basicUnsafeIndexM :: Vector (V4 a) -> Int -> Box (V4 a) basicUnsafeCopy :: Mutable Vector s (V4 a) -> Vector (V4 a) -> ST s () | |||||
| Unbox a => MVector MVector (V4 a) Source # | |||||
Defined in SDL.Internal.Vect Methods basicLength :: MVector s (V4 a) -> Int basicUnsafeSlice :: Int -> Int -> MVector s (V4 a) -> MVector s (V4 a) basicOverlaps :: MVector s (V4 a) -> MVector s (V4 a) -> Bool basicUnsafeNew :: Int -> ST s (MVector s (V4 a)) basicInitialize :: MVector s (V4 a) -> ST s () basicUnsafeReplicate :: Int -> V4 a -> ST s (MVector s (V4 a)) basicUnsafeRead :: MVector s (V4 a) -> Int -> ST s (V4 a) basicUnsafeWrite :: MVector s (V4 a) -> Int -> V4 a -> ST s () basicClear :: MVector s (V4 a) -> ST s () basicSet :: MVector s (V4 a) -> V4 a -> ST s () basicUnsafeCopy :: MVector s (V4 a) -> MVector s (V4 a) -> ST s () basicUnsafeMove :: MVector s (V4 a) -> MVector s (V4 a) -> ST s () basicUnsafeGrow :: MVector s (V4 a) -> Int -> ST s (MVector s (V4 a)) | |||||
| Data a => Data (V4 a) Source # | |||||
Defined in SDL.Internal.Vect Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> V4 a -> c (V4 a) gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (V4 a) dataTypeOf :: V4 a -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (V4 a)) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (V4 a)) gmapT :: (forall b. Data b => b -> b) -> V4 a -> V4 a gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> V4 a -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> V4 a -> r gmapQ :: (forall d. Data d => d -> u) -> V4 a -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> V4 a -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> V4 a -> m (V4 a) gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> V4 a -> m (V4 a) gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> V4 a -> m (V4 a) | |||||
| Bounded a => Bounded (V4 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Floating a => Floating (V4 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Storable a => Storable (V4 a) Source # | |||||
Defined in SDL.Internal.Vect Methods peekElemOff :: Ptr (V4 a) -> Int -> IO (V4 a) pokeElemOff :: Ptr (V4 a) -> Int -> V4 a -> IO () peekByteOff :: Ptr b -> Int -> IO (V4 a) pokeByteOff :: Ptr b -> Int -> V4 a -> IO () | |||||
| Generic (V4 a) Source # | |||||
Defined in SDL.Internal.Vect Associated Types
| |||||
| Ix a => Ix (V4 a) Source # | |||||
| Num a => Num (V4 a) Source # | |||||
| Read a => Read (V4 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Fractional a => Fractional (V4 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| Show a => Show (V4 a) Source # | |||||
| Eq a => Eq (V4 a) Source # | |||||
| Ord a => Ord (V4 a) Source # | |||||
| Unbox a => Unbox (V4 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| type Rep1 V4 Source # | |||||
Defined in SDL.Internal.Vect type Rep1 V4 = D1 ('MetaData "V4" "SDL.Internal.Vect" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'False) (C1 ('MetaCons "V4" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1 :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) Par1))) | |||||
| data MVector s (V4 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||
| type Rep (V4 a) Source # | |||||
Defined in SDL.Internal.Vect type Rep (V4 a) = D1 ('MetaData "V4" "SDL.Internal.Vect" "sdl2-2.5.5.1-AgF6e4ywebPJjPO67cQCnV" 'False) (C1 ('MetaCons "V4" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))) | |||||
| data Vector (V4 a) Source # | |||||
Defined in SDL.Internal.Vect | |||||