module HGamer3D.Bindings.CEGUI.ClassWindowManager 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
new :: IO (HG3DClass)
new =
alloca $ \a1' ->
new'_ a1' >>= \res ->
peek a1'>>= \a1'' ->
return (a1'')
delete :: HG3DClass -> IO ()
delete a1 =
withHG3DClass a1 $ \a1' ->
delete'_ a1' >>= \res ->
return ()
createWindow :: HG3DClass -> String -> String -> IO (HG3DClass)
createWindow a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
withCString a3 $ \a3' ->
alloca $ \a4' ->
createWindow'_ a1' a2' a3' a4' >>= \res ->
peek a4'>>= \a4'' ->
return (a4'')
destroyWindow :: HG3DClass -> HG3DClass -> IO ()
destroyWindow a1 a2 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
destroyWindow'_ a1' a2' >>= \res ->
return ()
destroyWindow2 :: HG3DClass -> String -> IO ()
destroyWindow2 a1 a2 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
destroyWindow2'_ a1' a2' >>= \res ->
return ()
getWindow :: HG3DClass -> String -> IO (HG3DClass)
getWindow a1 a2 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
alloca $ \a3' ->
getWindow'_ a1' a2' a3' >>= \res ->
peek a3'>>= \a3'' ->
return (a3'')
isWindowPresent :: HG3DClass -> String -> IO (Bool)
isWindowPresent a1 a2 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
alloca $ \a3' ->
isWindowPresent'_ a1' a2' a3' >>= \res ->
peekBoolUtil a3'>>= \a3'' ->
return (a3'')
destroyAllWindows :: HG3DClass -> IO ()
destroyAllWindows a1 =
withHG3DClass a1 $ \a1' ->
destroyAllWindows'_ a1' >>= \res ->
return ()
isDeadPoolEmpty :: HG3DClass -> IO (Bool)
isDeadPoolEmpty a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isDeadPoolEmpty'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
cleanDeadPool :: HG3DClass -> IO ()
cleanDeadPool a1 =
withHG3DClass a1 $ \a1' ->
cleanDeadPool'_ a1' >>= \res ->
return ()
saveWindowLayout :: HG3DClass -> String -> String -> Bool -> IO ()
saveWindowLayout a1 a2 a3 a4 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
withCString a3 $ \a3' ->
let {a4' = fromBool a4} in
saveWindowLayout'_ a1' a2' a3' a4' >>= \res ->
return ()
saveWindowLayout2 :: HG3DClass -> HG3DClass -> String -> Bool -> IO ()
saveWindowLayout2 a1 a2 a3 a4 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
withCString a3 $ \a3' ->
let {a4' = fromBool a4} in
saveWindowLayout2'_ a1' a2' a3' a4' >>= \res ->
return ()
renameWindow :: HG3DClass -> String -> String -> IO ()
renameWindow a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
withCString a3 $ \a3' ->
renameWindow'_ a1' a2' a3' >>= \res ->
return ()
renameWindow2 :: HG3DClass -> HG3DClass -> String -> IO ()
renameWindow2 a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
withCString a3 $ \a3' ->
renameWindow2'_ a1' a2' a3' >>= \res ->
return ()
lock :: HG3DClass -> IO ()
lock a1 =
withHG3DClass a1 $ \a1' ->
lock'_ a1' >>= \res ->
return ()
unlock :: HG3DClass -> IO ()
unlock a1 =
withHG3DClass a1 $ \a1' ->
unlock'_ a1' >>= \res ->
return ()
isLocked :: HG3DClass -> IO (Bool)
isLocked a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isLocked'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
getDefaultResourceGroup :: IO (String)
getDefaultResourceGroup =
alloc64k $ \a1' ->
getDefaultResourceGroup'_ a1' >>= \res ->
peekCString a1'>>= \a1'' ->
return (a1'')
setDefaultResourceGroup :: String -> IO ()
setDefaultResourceGroup a1 =
withCString a1 $ \a1' ->
setDefaultResourceGroup'_ a1' >>= \res ->
return ()
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_construct"
new'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_createWindow"
createWindow'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_destroyWindow"
destroyWindow'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_destroyWindow2"
destroyWindow2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_getWindow"
getWindow'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_isWindowPresent"
isWindowPresent'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CInt) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_destroyAllWindows"
destroyAllWindows'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_isDeadPoolEmpty"
isDeadPoolEmpty'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_cleanDeadPool"
cleanDeadPool'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_saveWindowLayout"
saveWindowLayout'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (CInt -> (IO ())))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_saveWindowLayout2"
saveWindowLayout2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (CInt -> (IO ())))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_renameWindow"
renameWindow'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_renameWindow2"
renameWindow2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_lock"
lock'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_unlock"
unlock'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_isLocked"
isLocked'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_getDefaultResourceGroup"
getDefaultResourceGroup'_ :: ((Ptr CChar) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassWindowManager.chs.h cegui_wmgr_setDefaultResourceGroup"
setDefaultResourceGroup'_ :: ((Ptr CChar) -> (IO ()))