SDL-0.6.4: Binding to libSDL
Graphics.UI.SDL.Utilities
Description
Various small functions which makes the binding process easier.
class Enum a b | a -> b where
Methods
succ :: a -> a
pred :: a -> a
toEnum :: b -> a
fromEnum :: a -> b
enumFromTo :: a -> a -> [a]
Instances
intToBool :: Int -> IO Int -> IO Bool
toBitmask :: (Enum a b, Bits b, Num b) => [a] -> b
fromBitmask :: (Bounded a, Enum a b, Bits b, Num b) => b -> [a]
fromCInt :: Num a => CInt -> a
toCInt :: Int -> CInt