module HGamer3D.Bindings.CEGUI.ClassRadioButton 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
isSelected :: HG3DClass -> IO (Bool)
isSelected a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isSelected'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
getSelectedButtonInGroup :: HG3DClass -> IO (HG3DClass)
getSelectedButtonInGroup a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getSelectedButtonInGroup'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
setSelected :: HG3DClass -> Bool -> IO ()
setSelected a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setSelected'_ 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\\ClassRadioButton.chs.h cegui_rdbttn_isSelected"
isSelected'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassRadioButton.chs.h cegui_rdbttn_getSelectedButtonInGroup"
getSelectedButtonInGroup'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassRadioButton.chs.h cegui_rdbttn_setSelected"
setSelected'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassRadioButton.chs.h cegui_rdbttn_construct"
new'_ :: ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassRadioButton.chs.h cegui_rdbttn_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))