sdl2-2.4.1.0: Both high- and low-level bindings to the SDL library (version 2.0.4+).

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

Synopsis

- newtype Point f a = P (f a)
- data V2 a = V2 !a !a
- data V3 a = V3 !a !a !a
- data V4 a = V4 !a !a !a !a

# Documentation

newtype Point f a Source #

A handy wrapper to help distinguish points from vectors at the type level

Constructors

P (f a) |

Instances

Unbox (f a) => Vector Vector (Point f a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (Point f a) -> m (Vector (Point f a)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (Point f a) -> m (Mutable Vector (PrimState m) (Point f a)) Source #

basicLength :: Vector (Point f a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (Point f a) -> Vector (Point f a) Source #

basicUnsafeIndexM :: Monad m => Vector (Point f a) -> Int -> m (Point f a) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (Point f a) -> Vector (Point f a) -> m () Source #

elemseq :: Vector (Point f a) -> Point f a -> b -> b Source #

Unbox (f a) => MVector MVector (Point f a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

basicLength :: MVector s (Point f a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (Point f a) -> MVector s (Point f a) Source #

basicOverlaps :: MVector s (Point f a) -> MVector s (Point f a) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (Point f a)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (Point f a) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> Point f a -> m (MVector (PrimState m) (Point f a)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (Point f a) -> Int -> m (Point f a) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (Point f a) -> Int -> Point f a -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (Point f a) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (Point f a) -> Point f a -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (Point f a) -> MVector (PrimState m) (Point f a) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (Point f a) -> MVector (PrimState m) (Point f a) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (Point f a) -> Int -> m (MVector (PrimState m) (Point f a)) Source #

Monad f => Monad (Point f) Source # |
Instance details Defined in SDL.Internal.Vect Methods (>>=) :: Point f a -> (a -> Point f b) -> Point f b Source # (>>) :: Point f a -> Point f b -> Point f b Source # return :: a -> Point f a Source # fail :: String -> Point f a Source #
Functor f => Functor (Point f) Source # |
Instance details Defined in SDL.Internal.Vect Methods fmap :: (a -> b) -> Point f a -> Point f b Source # (<$) :: a -> Point f b -> Point f a Source #
Applicative f => Applicative (Point f) Source # |
Instance details Defined in SDL.Internal.Vect Methods pure :: a -> Point f a Source # (<*>) :: Point f (a -> b) -> Point f a -> Point f b Source # liftA2 :: (a -> b -> c) -> Point f a -> Point f b -> Point f c Source # (*>) :: Point f a -> Point f b -> Point f b Source # (<*) :: Point f a -> Point f b -> Point f a Source #
Foldable f => Foldable (Point f) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

fold :: Monoid m => Point f m -> m Source #

foldMap :: Monoid m => (a -> m) -> Point f a -> m Source #

foldr :: (a -> b -> b) -> b -> Point f a -> b Source #

foldr' :: (a -> b -> b) -> b -> Point f a -> b Source #

foldl :: (b -> a -> b) -> b -> Point f a -> b Source #

foldl' :: (b -> a -> b) -> b -> Point f a -> b Source #

foldr1 :: (a -> a -> a) -> Point f a -> a Source #

foldl1 :: (a -> a -> a) -> Point f a -> a Source #

toList :: Point f a -> [a] Source #

null :: Point f a -> Bool Source #

length :: Point f a -> Int Source #

elem :: Eq a => a -> Point f a -> Bool Source #

maximum :: Ord a => Point f a -> a Source #

minimum :: Ord a => Point f a -> a Source #

sum :: Num a => Point f a -> a Source #

product :: Num a => Point f a -> a Source #

Traversable f => Traversable (Point f) Source # |
Instance details Defined in SDL.Internal.Vect Methods traverse :: Applicative f0 => (a -> f0 b) -> Point f a -> f0 (Point f b) Source # sequenceA :: Applicative f0 => Point f (f0 a) -> f0 (Point f a) Source # mapM :: Monad m => (a -> m b) -> Point f a -> m (Point f b) Source # sequence :: Monad m => Point f (m a) -> m (Point f a) Source #
Generic1 (Point f :: Type -> Type) Source # |
Instance details Defined in SDL.Internal.Vect Associated Types type Rep1 (Point f) :: k -> Type Source # Methods from1 :: Point f a -> Rep1 (Point f) a Source # to1 :: Rep1 (Point f) a -> Point f a Source #
Eq (f a) => Eq (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (==) :: Point f a -> Point f a -> Bool Source # (/=) :: Point f a -> Point f a -> Bool Source #
Fractional (f a) => Fractional (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (/) :: Point f a -> Point f a -> Point f a Source # recip :: Point f a -> Point f a Source # fromRational :: Rational -> Point f a Source #
(Typeable f, Typeable a, Data (f a)) => Data (Point f a) Source # |

Instance details

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) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Point f a) Source #

toConstr :: Point f a -> Constr Source #

dataTypeOf :: Point f a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Point f a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Point f a)) Source #

gmapT :: (forall b. Data b => b -> b) -> Point f a -> Point f a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Point f a -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Point f a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Point f a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Point f a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Point f a -> m (Point f a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Point f a -> m (Point f a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Point f a -> m (Point f a) Source #

Num (f a) => Num (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (+) :: Point f a -> Point f a -> Point f a Source # (-) :: Point f a -> Point f a -> Point f a Source # (*) :: Point f a -> Point f a -> Point f a Source # negate :: Point f a -> Point f a Source # abs :: Point f a -> Point f a Source # signum :: Point f a -> Point f a Source # fromInteger :: Integer -> Point f a Source #
Ord (f a) => Ord (Point f a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

compare :: Point f a -> Point f a -> Ordering Source #

(<) :: Point f a -> Point f a -> Bool Source #

(<=) :: Point f a -> Point f a -> Bool Source #

(>) :: Point f a -> Point f a -> Bool Source #

(>=) :: Point f a -> Point f a -> Bool Source #

max :: Point f a -> Point f a -> Point f a Source #

min :: Point f a -> Point f a -> Point f a Source #

Read (f a) => Read (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect Methods readsPrec :: Int -> ReadS (Point f a) Source # readList :: ReadS [Point f a] Source # readPrec :: ReadPrec (Point f a) Source # readListPrec :: ReadPrec [Point f a] Source #
Show (f a) => Show (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect Methods showsPrec :: Int -> Point f a -> ShowS Source # show :: Point f a -> String Source # showList :: [Point f a] -> ShowS Source #
Ix (f a) => Ix (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect Methods range :: (Point f a, Point f a) -> [Point f a] Source # index :: (Point f a, Point f a) -> Point f a -> Int Source # unsafeIndex :: (Point f a, Point f a) -> Point f a -> Int inRange :: (Point f a, Point f a) -> Point f a -> Bool Source # rangeSize :: (Point f a, Point f a) -> Int Source # unsafeRangeSize :: (Point f a, Point f a) -> Int
Generic (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect Associated Types type Rep (Point f a) :: Type -> Type Source # Methods from :: Point f a -> Rep (Point f a) x Source # to :: Rep (Point f a) x -> Point f a Source #
Storable (f a) => Storable (Point f a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

sizeOf :: Point f a -> Int Source #

alignment :: Point f a -> Int Source #

peekElemOff :: Ptr (Point f a) -> Int -> IO (Point f a) Source #

pokeElemOff :: Ptr (Point f a) -> Int -> Point f a -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO (Point f a) Source #

pokeByteOff :: Ptr b -> Int -> Point f a -> IO () Source #

peek :: Ptr (Point f a) -> IO (Point f a) Source #

poke :: Ptr (Point f a) -> Point f a -> IO () Source #

Unbox (f a) => Unbox (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect
data MVector s (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect data MVector s (Point f a) = MV_P !(MVector s (f a))
type Rep1 (Point f :: Type -> Type) Source # |
Instance details Defined in SDL.Internal.Vect type Rep1 (Point f :: Type -> Type) = D1 (MetaData "Point" "SDL.Internal.Vect" "sdl2-2.4.1.0-6o74Vl5oJciK9nOaeyWqit" True) (C1 (MetaCons "P" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec1 f)))
type Rep (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect type Rep (Point f a) = D1 (MetaData "Point" "SDL.Internal.Vect" "sdl2-2.4.1.0-6o74Vl5oJciK9nOaeyWqit" True) (C1 (MetaCons "P" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f a))))
data Vector (Point f a) Source # |
Instance details Defined in SDL.Internal.Vect data Vector (Point f a) = V_P !(Vector (f a))

data V2 a Source #

A 2-dimensional vector

    >>> pure 1 :: V2 Int
    V2 1 1

    >>> V2 1 2 + V2 3 4
    V2 4 6

    >>> V2 1 2 * V2 3 4
    V2 3 8

    >>> sum (V2 1 2)
    3

Constructors

V2 !a !a |

Instances

Monad V2 Source # |
Instance details Defined in SDL.Internal.Vect Methods (>>=) :: V2 a -> (a -> V2 b) -> V2 b Source # (>>) :: V2 a -> V2 b -> V2 b Source # return :: a -> V2 a Source # fail :: String -> V2 a Source #
Functor V2 Source # |
Instance details Defined in SDL.Internal.Vect Methods fmap :: (a -> b) -> V2 a -> V2 b Source # (<$) :: a -> V2 b -> V2 a Source #
MonadFix V2 Source # |
Instance details Defined in SDL.Internal.Vect Methods mfix :: (a -> V2 a) -> V2 a Source #
Applicative V2 Source # |
Instance details Defined in SDL.Internal.Vect Methods pure :: a -> V2 a Source # (<*>) :: V2 (a -> b) -> V2 a -> V2 b Source # liftA2 :: (a -> b -> c) -> V2 a -> V2 b -> V2 c Source # (*>) :: V2 a -> V2 b -> V2 b Source # (<*) :: V2 a -> V2 b -> V2 a Source #
Foldable V2 Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

fold :: Monoid m => V2 m -> m Source #

foldMap :: Monoid m => (a -> m) -> V2 a -> m Source #

foldr :: (a -> b -> b) -> b -> V2 a -> b Source #

foldr' :: (a -> b -> b) -> b -> V2 a -> b Source #

foldl :: (b -> a -> b) -> b -> V2 a -> b Source #

foldl' :: (b -> a -> b) -> b -> V2 a -> b Source #

foldr1 :: (a -> a -> a) -> V2 a -> a Source #

foldl1 :: (a -> a -> a) -> V2 a -> a Source #

toList :: V2 a -> [a] Source #

null :: V2 a -> Bool Source #

length :: V2 a -> Int Source #

elem :: Eq a => a -> V2 a -> Bool Source #

maximum :: Ord a => V2 a -> a Source #

minimum :: Ord a => V2 a -> a Source #

sum :: Num a => V2 a -> a Source #

product :: Num a => V2 a -> a Source #

Traversable V2 Source # |
Instance details Defined in SDL.Internal.Vect Methods traverse :: Applicative f => (a -> f b) -> V2 a -> f (V2 b) Source # sequenceA :: Applicative f => V2 (f a) -> f (V2 a) Source # mapM :: Monad m => (a -> m b) -> V2 a -> m (V2 b) Source # sequence :: Monad m => V2 (m a) -> m (V2 a) Source #
MonadZip V2 Source # |
Instance details Defined in SDL.Internal.Vect Methods mzip :: V2 a -> V2 b -> V2 (a, b) Source # mzipWith :: (a -> b -> c) -> V2 a -> V2 b -> V2 c Source # munzip :: V2 (a, b) -> (V2 a, V2 b) Source #
Unbox a => Vector Vector (V2 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (V2 a) -> m (Vector (V2 a)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (V2 a) -> m (Mutable Vector (PrimState m) (V2 a)) Source #

basicLength :: Vector (V2 a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (V2 a) -> Vector (V2 a) Source #

basicUnsafeIndexM :: Monad m => Vector (V2 a) -> Int -> m (V2 a) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (V2 a) -> Vector (V2 a) -> m () Source #

elemseq :: Vector (V2 a) -> V2 a -> b -> b Source #

Unbox a => MVector MVector (V2 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

basicLength :: MVector s (V2 a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (V2 a) -> MVector s (V2 a) Source #

basicOverlaps :: MVector s (V2 a) -> MVector s (V2 a) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (V2 a)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (V2 a) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> V2 a -> m (MVector (PrimState m) (V2 a)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (V2 a) -> Int -> m (V2 a) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (V2 a) -> Int -> V2 a -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (V2 a) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (V2 a) -> V2 a -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (V2 a) -> MVector (PrimState m) (V2 a) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (V2 a) -> MVector (PrimState m) (V2 a) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (V2 a) -> Int -> m (MVector (PrimState m) (V2 a)) Source #

Bounded a => Bounded (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods minBound :: V2 a Source # maxBound :: V2 a Source #
Eq a => Eq (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (==) :: V2 a -> V2 a -> Bool Source # (/=) :: V2 a -> V2 a -> Bool Source #
Floating a => Floating (V2 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

pi :: V2 a Source #

exp :: V2 a -> V2 a Source #

log :: V2 a -> V2 a Source #

sqrt :: V2 a -> V2 a Source #

(**) :: V2 a -> V2 a -> V2 a Source #

logBase :: V2 a -> V2 a -> V2 a Source #

sin :: V2 a -> V2 a Source #

cos :: V2 a -> V2 a Source #

tan :: V2 a -> V2 a Source #

asin :: V2 a -> V2 a Source #

acos :: V2 a -> V2 a Source #

atan :: V2 a -> V2 a Source #

sinh :: V2 a -> V2 a Source #

cosh :: V2 a -> V2 a Source #

tanh :: V2 a -> V2 a Source #

asinh :: V2 a -> V2 a Source #

acosh :: V2 a -> V2 a Source #

atanh :: V2 a -> V2 a Source #

log1p :: V2 a -> V2 a Source #

expm1 :: V2 a -> V2 a Source #

log1pexp :: V2 a -> V2 a Source #

log1mexp :: V2 a -> V2 a Source #

Fractional a => Fractional (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (/) :: V2 a -> V2 a -> V2 a Source # recip :: V2 a -> V2 a Source # fromRational :: Rational -> V2 a Source #
Data a => Data (V2 a) Source # |

Instance details

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) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (V2 a) Source #

toConstr :: V2 a -> Constr Source #

dataTypeOf :: V2 a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (V2 a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (V2 a)) Source #

gmapT :: (forall b. Data b => b -> b) -> V2 a -> V2 a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> V2 a -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> V2 a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> V2 a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> V2 a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> V2 a -> m (V2 a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> V2 a -> m (V2 a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> V2 a -> m (V2 a) Source #

Num a => Num (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (+) :: V2 a -> V2 a -> V2 a Source # (-) :: V2 a -> V2 a -> V2 a Source # (*) :: V2 a -> V2 a -> V2 a Source # negate :: V2 a -> V2 a Source # abs :: V2 a -> V2 a Source # signum :: V2 a -> V2 a Source # fromInteger :: Integer -> V2 a Source #
Ord a => Ord (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods compare :: V2 a -> V2 a -> Ordering Source # (<) :: V2 a -> V2 a -> Bool Source # (<=) :: V2 a -> V2 a -> Bool Source # (>) :: V2 a -> V2 a -> Bool Source # (>=) :: V2 a -> V2 a -> Bool Source # max :: V2 a -> V2 a -> V2 a Source # min :: V2 a -> V2 a -> V2 a Source #
Read a => Read (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods readsPrec :: Int -> ReadS (V2 a) Source # readList :: ReadS [V2 a] Source # readPrec :: ReadPrec (V2 a) Source # readListPrec :: ReadPrec [V2 a] Source #
Show a => Show (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods showsPrec :: Int -> V2 a -> ShowS Source # show :: V2 a -> String Source # showList :: [V2 a] -> ShowS Source #
Ix a => Ix (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods range :: (V2 a, V2 a) -> [V2 a] Source # index :: (V2 a, V2 a) -> V2 a -> Int Source # unsafeIndex :: (V2 a, V2 a) -> V2 a -> Int inRange :: (V2 a, V2 a) -> V2 a -> Bool Source # rangeSize :: (V2 a, V2 a) -> Int Source # unsafeRangeSize :: (V2 a, V2 a) -> Int
Generic (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect Associated Types type Rep (V2 a) :: Type -> Type Source # Methods from :: V2 a -> Rep (V2 a) x Source # to :: Rep (V2 a) x -> V2 a Source #
Storable a => Storable (V2 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

sizeOf :: V2 a -> Int Source #

alignment :: V2 a -> Int Source #

peekElemOff :: Ptr (V2 a) -> Int -> IO (V2 a) Source #

pokeElemOff :: Ptr (V2 a) -> Int -> V2 a -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO (V2 a) Source #

pokeByteOff :: Ptr b -> Int -> V2 a -> IO () Source #

peek :: Ptr (V2 a) -> IO (V2 a) Source #

poke :: Ptr (V2 a) -> V2 a -> IO () Source #

Unbox a => Unbox (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect
Generic1 V2 Source # |
Instance details Defined in SDL.Internal.Vect Associated Types type Rep1 V2 :: k -> Type Source # Methods from1 :: V2 a -> Rep1 V2 a Source # to1 :: Rep1 V2 a -> V2 a Source #
data MVector s (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect data MVector s (V2 a) = MV_V2 !Int !(MVector s a)
type Rep (V2 a) Source # |
Instance details Defined in SDL.Internal.Vect type Rep (V2 a) = D1 (MetaData "V2" "SDL.Internal.Vect" "sdl2-2.4.1.0-6o74Vl5oJciK9nOaeyWqit" 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 # |
Instance details Defined in SDL.Internal.Vect data Vector (V2 a) = V_V2 !Int !(Vector a)
type Rep1 V2 Source # |
Instance details Defined in SDL.Internal.Vect type Rep1 V2 = D1 (MetaData "V2" "SDL.Internal.Vect" "sdl2-2.4.1.0-6o74Vl5oJciK9nOaeyWqit" 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 V3 a Source #

A 3-dimensional vector

Constructors

V3 !a !a !a |

Instances

Monad V3 Source # |
Instance details Defined in SDL.Internal.Vect Methods (>>=) :: V3 a -> (a -> V3 b) -> V3 b Source # (>>) :: V3 a -> V3 b -> V3 b Source # return :: a -> V3 a Source # fail :: String -> V3 a Source #
Functor V3 Source # |
Instance details Defined in SDL.Internal.Vect Methods fmap :: (a -> b) -> V3 a -> V3 b Source # (<$) :: a -> V3 b -> V3 a Source #
MonadFix V3 Source # |
Instance details Defined in SDL.Internal.Vect Methods mfix :: (a -> V3 a) -> V3 a Source #
Applicative V3 Source # |
Instance details Defined in SDL.Internal.Vect Methods pure :: a -> V3 a Source # (<*>) :: V3 (a -> b) -> V3 a -> V3 b Source # liftA2 :: (a -> b -> c) -> V3 a -> V3 b -> V3 c Source # (*>) :: V3 a -> V3 b -> V3 b Source # (<*) :: V3 a -> V3 b -> V3 a Source #
Foldable V3 Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

fold :: Monoid m => V3 m -> m Source #

foldMap :: Monoid m => (a -> m) -> V3 a -> m Source #

foldr :: (a -> b -> b) -> b -> V3 a -> b Source #

foldr' :: (a -> b -> b) -> b -> V3 a -> b Source #

foldl :: (b -> a -> b) -> b -> V3 a -> b Source #

foldl' :: (b -> a -> b) -> b -> V3 a -> b Source #

foldr1 :: (a -> a -> a) -> V3 a -> a Source #

foldl1 :: (a -> a -> a) -> V3 a -> a Source #

toList :: V3 a -> [a] Source #

null :: V3 a -> Bool Source #

length :: V3 a -> Int Source #

elem :: Eq a => a -> V3 a -> Bool Source #

maximum :: Ord a => V3 a -> a Source #

minimum :: Ord a => V3 a -> a Source #

sum :: Num a => V3 a -> a Source #

product :: Num a => V3 a -> a Source #

Traversable V3 Source # |
Instance details Defined in SDL.Internal.Vect Methods traverse :: Applicative f => (a -> f b) -> V3 a -> f (V3 b) Source # sequenceA :: Applicative f => V3 (f a) -> f (V3 a) Source # mapM :: Monad m => (a -> m b) -> V3 a -> m (V3 b) Source # sequence :: Monad m => V3 (m a) -> m (V3 a) Source #
MonadZip V3 Source # |
Instance details Defined in SDL.Internal.Vect Methods mzip :: V3 a -> V3 b -> V3 (a, b) Source # mzipWith :: (a -> b -> c) -> V3 a -> V3 b -> V3 c Source # munzip :: V3 (a, b) -> (V3 a, V3 b) Source #
Unbox a => Vector Vector (V3 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (V3 a) -> m (Vector (V3 a)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (V3 a) -> m (Mutable Vector (PrimState m) (V3 a)) Source #

basicLength :: Vector (V3 a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (V3 a) -> Vector (V3 a) Source #

basicUnsafeIndexM :: Monad m => Vector (V3 a) -> Int -> m (V3 a) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (V3 a) -> Vector (V3 a) -> m () Source #

elemseq :: Vector (V3 a) -> V3 a -> b -> b Source #

Unbox a => MVector MVector (V3 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

basicLength :: MVector s (V3 a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (V3 a) -> MVector s (V3 a) Source #

basicOverlaps :: MVector s (V3 a) -> MVector s (V3 a) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (V3 a)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (V3 a) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> V3 a -> m (MVector (PrimState m) (V3 a)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (V3 a) -> Int -> m (V3 a) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (V3 a) -> Int -> V3 a -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (V3 a) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (V3 a) -> V3 a -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (V3 a) -> MVector (PrimState m) (V3 a) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (V3 a) -> MVector (PrimState m) (V3 a) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (V3 a) -> Int -> m (MVector (PrimState m) (V3 a)) Source #

Bounded a => Bounded (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods minBound :: V3 a Source # maxBound :: V3 a Source #
Eq a => Eq (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (==) :: V3 a -> V3 a -> Bool Source # (/=) :: V3 a -> V3 a -> Bool Source #
Floating a => Floating (V3 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

pi :: V3 a Source #

exp :: V3 a -> V3 a Source #

log :: V3 a -> V3 a Source #

sqrt :: V3 a -> V3 a Source #

(**) :: V3 a -> V3 a -> V3 a Source #

logBase :: V3 a -> V3 a -> V3 a Source #

sin :: V3 a -> V3 a Source #

cos :: V3 a -> V3 a Source #

tan :: V3 a -> V3 a Source #

asin :: V3 a -> V3 a Source #

acos :: V3 a -> V3 a Source #

atan :: V3 a -> V3 a Source #

sinh :: V3 a -> V3 a Source #

cosh :: V3 a -> V3 a Source #

tanh :: V3 a -> V3 a Source #

asinh :: V3 a -> V3 a Source #

acosh :: V3 a -> V3 a Source #

atanh :: V3 a -> V3 a Source #

log1p :: V3 a -> V3 a Source #

expm1 :: V3 a -> V3 a Source #

log1pexp :: V3 a -> V3 a Source #

log1mexp :: V3 a -> V3 a Source #

Fractional a => Fractional (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (/) :: V3 a -> V3 a -> V3 a Source # recip :: V3 a -> V3 a Source # fromRational :: Rational -> V3 a Source #
Data a => Data (V3 a) Source # |

Instance details

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) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (V3 a) Source #

toConstr :: V3 a -> Constr Source #

dataTypeOf :: V3 a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (V3 a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (V3 a)) Source #

gmapT :: (forall b. Data b => b -> b) -> V3 a -> V3 a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> V3 a -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> V3 a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> V3 a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> V3 a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> V3 a -> m (V3 a) Source #

Num a => Num (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (+) :: V3 a -> V3 a -> V3 a Source # (-) :: V3 a -> V3 a -> V3 a Source # (*) :: V3 a -> V3 a -> V3 a Source # negate :: V3 a -> V3 a Source # abs :: V3 a -> V3 a Source # signum :: V3 a -> V3 a Source # fromInteger :: Integer -> V3 a Source #
Ord a => Ord (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods compare :: V3 a -> V3 a -> Ordering Source # (<) :: V3 a -> V3 a -> Bool Source # (<=) :: V3 a -> V3 a -> Bool Source # (>) :: V3 a -> V3 a -> Bool Source # (>=) :: V3 a -> V3 a -> Bool Source # max :: V3 a -> V3 a -> V3 a Source # min :: V3 a -> V3 a -> V3 a Source #
Read a => Read (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods readsPrec :: Int -> ReadS (V3 a) Source # readList :: ReadS [V3 a] Source # readPrec :: ReadPrec (V3 a) Source # readListPrec :: ReadPrec [V3 a] Source #
Show a => Show (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods showsPrec :: Int -> V3 a -> ShowS Source # show :: V3 a -> String Source # showList :: [V3 a] -> ShowS Source #
Ix a => Ix (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods range :: (V3 a, V3 a) -> [V3 a] Source # index :: (V3 a, V3 a) -> V3 a -> Int Source # unsafeIndex :: (V3 a, V3 a) -> V3 a -> Int inRange :: (V3 a, V3 a) -> V3 a -> Bool Source # rangeSize :: (V3 a, V3 a) -> Int Source # unsafeRangeSize :: (V3 a, V3 a) -> Int
Generic (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect Associated Types type Rep (V3 a) :: Type -> Type Source # Methods from :: V3 a -> Rep (V3 a) x Source # to :: Rep (V3 a) x -> V3 a Source #
Storable a => Storable (V3 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

sizeOf :: V3 a -> Int Source #

alignment :: V3 a -> Int Source #

peekElemOff :: Ptr (V3 a) -> Int -> IO (V3 a) Source #

pokeElemOff :: Ptr (V3 a) -> Int -> V3 a -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO (V3 a) Source #

pokeByteOff :: Ptr b -> Int -> V3 a -> IO () Source #

peek :: Ptr (V3 a) -> IO (V3 a) Source #

poke :: Ptr (V3 a) -> V3 a -> IO () Source #

Unbox a => Unbox (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect
Generic1 V3 Source # |
Instance details Defined in SDL.Internal.Vect Associated Types type Rep1 V3 :: k -> Type Source # Methods from1 :: V3 a -> Rep1 V3 a Source # to1 :: Rep1 V3 a -> V3 a Source #
data MVector s (V3 a) Source # |
Instance details Defined in SDL.Internal.Vect data MVector s (V3 a) = MV_V3 !Int !(MVector s a)
type Rep (V3 a) Source # |

Instance details

Defined in SDL.Internal.Vect

type Rep (V3 a) = D1 (MetaData "V3" "SDL.Internal.Vect" "sdl2-2.4.1.0-6o74Vl5oJciK9nOaeyWqit" 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 # |
Instance details Defined in SDL.Internal.Vect data Vector (V3 a) = V_V3 !Int !(Vector a)
type Rep1 V3 Source # |

Instance details

Defined in SDL.Internal.Vect

type Rep1 V3 = D1 (MetaData "V3" "SDL.Internal.Vect" "sdl2-2.4.1.0-6o74Vl5oJciK9nOaeyWqit" 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 V4 a Source #

A 4-dimensional vector.

Constructors

V4 !a !a !a !a |

Instances

Monad V4 Source # |
Instance details Defined in SDL.Internal.Vect Methods (>>=) :: V4 a -> (a -> V4 b) -> V4 b Source # (>>) :: V4 a -> V4 b -> V4 b Source # return :: a -> V4 a Source # fail :: String -> V4 a Source #
Functor V4 Source # |
Instance details Defined in SDL.Internal.Vect Methods fmap :: (a -> b) -> V4 a -> V4 b Source # (<$) :: a -> V4 b -> V4 a Source #
MonadFix V4 Source # |
Instance details Defined in SDL.Internal.Vect Methods mfix :: (a -> V4 a) -> V4 a Source #
Applicative V4 Source # |
Instance details Defined in SDL.Internal.Vect Methods pure :: a -> V4 a Source # (<*>) :: V4 (a -> b) -> V4 a -> V4 b Source # liftA2 :: (a -> b -> c) -> V4 a -> V4 b -> V4 c Source # (*>) :: V4 a -> V4 b -> V4 b Source # (<*) :: V4 a -> V4 b -> V4 a Source #
Foldable V4 Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

fold :: Monoid m => V4 m -> m Source #

foldMap :: Monoid m => (a -> m) -> V4 a -> m Source #

foldr :: (a -> b -> b) -> b -> V4 a -> b Source #

foldr' :: (a -> b -> b) -> b -> V4 a -> b Source #

foldl :: (b -> a -> b) -> b -> V4 a -> b Source #

foldl' :: (b -> a -> b) -> b -> V4 a -> b Source #

foldr1 :: (a -> a -> a) -> V4 a -> a Source #

foldl1 :: (a -> a -> a) -> V4 a -> a Source #

toList :: V4 a -> [a] Source #

null :: V4 a -> Bool Source #

length :: V4 a -> Int Source #

elem :: Eq a => a -> V4 a -> Bool Source #

maximum :: Ord a => V4 a -> a Source #

minimum :: Ord a => V4 a -> a Source #

sum :: Num a => V4 a -> a Source #

product :: Num a => V4 a -> a Source #

Traversable V4 Source # |
Instance details Defined in SDL.Internal.Vect Methods traverse :: Applicative f => (a -> f b) -> V4 a -> f (V4 b) Source # sequenceA :: Applicative f => V4 (f a) -> f (V4 a) Source # mapM :: Monad m => (a -> m b) -> V4 a -> m (V4 b) Source # sequence :: Monad m => V4 (m a) -> m (V4 a) Source #
MonadZip V4 Source # |
Instance details Defined in SDL.Internal.Vect Methods mzip :: V4 a -> V4 b -> V4 (a, b) Source # mzipWith :: (a -> b -> c) -> V4 a -> V4 b -> V4 c Source # munzip :: V4 (a, b) -> (V4 a, V4 b) Source #
Unbox a => Vector Vector (V4 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (V4 a) -> m (Vector (V4 a)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (V4 a) -> m (Mutable Vector (PrimState m) (V4 a)) Source #

basicLength :: Vector (V4 a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (V4 a) -> Vector (V4 a) Source #

basicUnsafeIndexM :: Monad m => Vector (V4 a) -> Int -> m (V4 a) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (V4 a) -> Vector (V4 a) -> m () Source #

elemseq :: Vector (V4 a) -> V4 a -> b -> b Source #

Unbox a => MVector MVector (V4 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

basicLength :: MVector s (V4 a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (V4 a) -> MVector s (V4 a) Source #

basicOverlaps :: MVector s (V4 a) -> MVector s (V4 a) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (V4 a)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (V4 a) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> V4 a -> m (MVector (PrimState m) (V4 a)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (V4 a) -> Int -> m (V4 a) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (V4 a) -> Int -> V4 a -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (V4 a) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (V4 a) -> V4 a -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (V4 a) -> MVector (PrimState m) (V4 a) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (V4 a) -> MVector (PrimState m) (V4 a) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (V4 a) -> Int -> m (MVector (PrimState m) (V4 a)) Source #

Bounded a => Bounded (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods minBound :: V4 a Source # maxBound :: V4 a Source #
Eq a => Eq (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (==) :: V4 a -> V4 a -> Bool Source # (/=) :: V4 a -> V4 a -> Bool Source #
Floating a => Floating (V4 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

pi :: V4 a Source #

exp :: V4 a -> V4 a Source #

log :: V4 a -> V4 a Source #

sqrt :: V4 a -> V4 a Source #

(**) :: V4 a -> V4 a -> V4 a Source #

logBase :: V4 a -> V4 a -> V4 a Source #

sin :: V4 a -> V4 a Source #

cos :: V4 a -> V4 a Source #

tan :: V4 a -> V4 a Source #

asin :: V4 a -> V4 a Source #

acos :: V4 a -> V4 a Source #

atan :: V4 a -> V4 a Source #

sinh :: V4 a -> V4 a Source #

cosh :: V4 a -> V4 a Source #

tanh :: V4 a -> V4 a Source #

asinh :: V4 a -> V4 a Source #

acosh :: V4 a -> V4 a Source #

atanh :: V4 a -> V4 a Source #

log1p :: V4 a -> V4 a Source #

expm1 :: V4 a -> V4 a Source #

log1pexp :: V4 a -> V4 a Source #

log1mexp :: V4 a -> V4 a Source #

Fractional a => Fractional (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (/) :: V4 a -> V4 a -> V4 a Source # recip :: V4 a -> V4 a Source # fromRational :: Rational -> V4 a Source #
Data a => Data (V4 a) Source # |

Instance details

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) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (V4 a) Source #

toConstr :: V4 a -> Constr Source #

dataTypeOf :: V4 a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (V4 a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (V4 a)) Source #

gmapT :: (forall b. Data b => b -> b) -> V4 a -> V4 a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> V4 a -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> V4 a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> V4 a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> V4 a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> V4 a -> m (V4 a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> V4 a -> m (V4 a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> V4 a -> m (V4 a) Source #

Num a => Num (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods (+) :: V4 a -> V4 a -> V4 a Source # (-) :: V4 a -> V4 a -> V4 a Source # (*) :: V4 a -> V4 a -> V4 a Source # negate :: V4 a -> V4 a Source # abs :: V4 a -> V4 a Source # signum :: V4 a -> V4 a Source # fromInteger :: Integer -> V4 a Source #
Ord a => Ord (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods compare :: V4 a -> V4 a -> Ordering Source # (<) :: V4 a -> V4 a -> Bool Source # (<=) :: V4 a -> V4 a -> Bool Source # (>) :: V4 a -> V4 a -> Bool Source # (>=) :: V4 a -> V4 a -> Bool Source # max :: V4 a -> V4 a -> V4 a Source # min :: V4 a -> V4 a -> V4 a Source #
Read a => Read (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods readsPrec :: Int -> ReadS (V4 a) Source # readList :: ReadS [V4 a] Source # readPrec :: ReadPrec (V4 a) Source # readListPrec :: ReadPrec [V4 a] Source #
Show a => Show (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods showsPrec :: Int -> V4 a -> ShowS Source # show :: V4 a -> String Source # showList :: [V4 a] -> ShowS Source #
Ix a => Ix (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Methods range :: (V4 a, V4 a) -> [V4 a] Source # index :: (V4 a, V4 a) -> V4 a -> Int Source # unsafeIndex :: (V4 a, V4 a) -> V4 a -> Int inRange :: (V4 a, V4 a) -> V4 a -> Bool Source # rangeSize :: (V4 a, V4 a) -> Int Source # unsafeRangeSize :: (V4 a, V4 a) -> Int
Generic (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect Associated Types type Rep (V4 a) :: Type -> Type Source # Methods from :: V4 a -> Rep (V4 a) x Source # to :: Rep (V4 a) x -> V4 a Source #
Storable a => Storable (V4 a) Source # |

Instance details

Defined in SDL.Internal.Vect

Methods

sizeOf :: V4 a -> Int Source #

alignment :: V4 a -> Int Source #

peekElemOff :: Ptr (V4 a) -> Int -> IO (V4 a) Source #

pokeElemOff :: Ptr (V4 a) -> Int -> V4 a -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO (V4 a) Source #

pokeByteOff :: Ptr b -> Int -> V4 a -> IO () Source #

peek :: Ptr (V4 a) -> IO (V4 a) Source #

poke :: Ptr (V4 a) -> V4 a -> IO () Source #

Unbox a => Unbox (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect
Generic1 V4 Source # |
Instance details Defined in SDL.Internal.Vect Associated Types type Rep1 V4 :: k -> Type Source # Methods from1 :: V4 a -> Rep1 V4 a Source # to1 :: Rep1 V4 a -> V4 a Source #
data MVector s (V4 a) Source # |
Instance details Defined in SDL.Internal.Vect data MVector s (V4 a) = MV_V4 !Int !(MVector s a)
type Rep (V4 a) Source # |

Instance details

Defined in SDL.Internal.Vect

type Rep (V4 a) = D1 (MetaData "V4" "SDL.Internal.Vect" "sdl2-2.4.1.0-6o74Vl5oJciK9nOaeyWqit" 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 # |
Instance details Defined in SDL.Internal.Vect data Vector (V4 a) = V_V4 !Int !(Vector a)
type Rep1 V4 Source # |

Instance details

Defined in SDL.Internal.Vect

type Rep1 V4 = D1 (MetaData "V4" "SDL.Internal.Vect" "sdl2-2.4.1.0-6o74Vl5oJciK9nOaeyWqit" 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)))