OpenGL-2.2.1.1: A binding for the OpenGL graphics systemSource codeContentsIndex
Graphics.Rendering.OpenGL.GL.StateVar
Portabilityportable
Stabilitystable
Maintainersven.panne@aedion.de
Description
Synopsis
class HasGetter g where
get :: g a -> IO a
data GettableStateVar a
makeGettableStateVar :: IO a -> GettableStateVar a
class HasSetter s where
($=) :: s a -> a -> IO ()
set :: [IO ()] -> IO ()
data SettableStateVar a
makeSettableStateVar :: (a -> IO ()) -> SettableStateVar a
data StateVar a
makeStateVar :: IO a -> (a -> IO ()) -> StateVar a
($~) :: (HasGetter v, HasSetter v) => v a -> (a -> a) -> IO ()
($=!) :: HasSetter s => s a -> a -> IO ()
($~!) :: (HasGetter v, HasSetter v) => v a -> (a -> a) -> IO ()
Documentation
class HasGetter g whereSource
Methods
get :: g a -> IO aSource
show/hide Instances
data GettableStateVar aSource
show/hide Instances
makeGettableStateVar :: IO a -> GettableStateVar aSource
class HasSetter s whereSource
Methods
($=) :: s a -> a -> IO ()Source
show/hide Instances
set :: [IO ()] -> IO ()Source
data SettableStateVar aSource
show/hide Instances
makeSettableStateVar :: (a -> IO ()) -> SettableStateVar aSource
data StateVar aSource
show/hide Instances
makeStateVar :: IO a -> (a -> IO ()) -> StateVar aSource
($~) :: (HasGetter v, HasSetter v) => v a -> (a -> a) -> IO ()Source
A modificator convenience function.
($=!) :: HasSetter s => s a -> a -> IO ()Source
A strict variant of $=.
($~!) :: (HasGetter v, HasSetter v) => v a -> (a -> a) -> IO ()Source
A strict variant of $~.
Produced by Haddock version 0.9