module HGamer3D.Bindings.CEGUI.ClassSlider where
import Foreign
import Foreign.Ptr
import Foreign.C
import HGamer3D.Data.HG3DClass
import HGamer3D.Data.Vector
import HGamer3D.Data.Colour
import HGamer3D.Data.Angle
import HGamer3D.Bindings.CEGUI.Utils
import HGamer3D.Bindings.CEGUI.ClassPtr
import HGamer3D.Bindings.CEGUI.StructHG3DClass
getCurrentValue :: HG3DClass -> IO (Float)
getCurrentValue a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getCurrentValue'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
getMaxValue :: HG3DClass -> IO (Float)
getMaxValue a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getMaxValue'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
getClickStep :: HG3DClass -> IO (Float)
getClickStep a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getClickStep'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
getThumb :: HG3DClass -> IO (HG3DClass)
getThumb a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getThumb'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
initialiseComponents :: HG3DClass -> IO ()
initialiseComponents a1 =
withHG3DClass a1 $ \a1' ->
initialiseComponents'_ a1' >>= \res ->
return ()
setMaxValue :: HG3DClass -> Float -> IO ()
setMaxValue a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = realToFrac a2} in
setMaxValue'_ a1' a2' >>= \res ->
return ()
setCurrentValue :: HG3DClass -> Float -> IO ()
setCurrentValue a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = realToFrac a2} in
setCurrentValue'_ a1' a2' >>= \res ->
return ()
setClickStep :: HG3DClass -> Float -> IO ()
setClickStep a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = realToFrac a2} in
setClickStep'_ a1' a2' >>= \res ->
return ()
new :: String -> String -> IO (HG3DClass)
new a1 a2 =
withCString a1 $ \a1' ->
withCString a2 $ \a2' ->
alloca $ \a3' ->
new'_ a1' a2' a3' >>= \res ->
peek a3'>>= \a3'' ->
return (a3'')
delete :: HG3DClass -> IO ()
delete a1 =
withHG3DClass a1 $ \a1' ->
delete'_ a1' >>= \res ->
return ()
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_getCurrentValue"
getCurrentValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_getMaxValue"
getMaxValue'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_getClickStep"
getClickStep'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_getThumb"
getThumb'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_initialiseComponents"
initialiseComponents'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_setMaxValue"
setMaxValue'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_setCurrentValue"
setCurrentValue'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_setClickStep"
setClickStep'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_construct"
new'_ :: ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassSlider.chs.h cegui_sldr_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))