HGamer3D-CEGUI-Binding-0.2.0: HGamer3D/Bindings/CEGUI/ClassListHeaderSegment.hs
-- GENERATED by C->Haskell Compiler, version 0.16.3 Crystal Seed, 24 Jan 2009 (Haskell)
-- Edit the ORIGNAL .chs file instead!
{-# LINE 1 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TypeSynonymInstances #-}
-- This source file is part of HGamer3D
-- (A project to enable 3D game development in Haskell)
-- For the latest info, see http://www.althainz.de/HGamer3D.html
--
-- (c) 2011, 2012 Peter Althainz
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- ClassListHeaderSegment.chs
--
module HGamer3D.Bindings.CEGUI.ClassListHeaderSegment 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
{-# LINE 40 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
import HGamer3D.Bindings.CEGUI.ClassPtr
{-# LINE 41 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
import HGamer3D.Bindings.CEGUI.StructHG3DClass
{-# LINE 42 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
import HGamer3D.Bindings.CEGUI.EnumSortDirection
{-# LINE 43 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function isSizingEnabled -}
isSizingEnabled :: HG3DClass -> IO (Bool)
isSizingEnabled a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isSizingEnabled'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 49 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function getSortDirection -}
getSortDirection :: HG3DClass -> IO (EnumSortDirection)
getSortDirection a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getSortDirection'_ a1' a2' >>= \res ->
peekEnumUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 54 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function isDragMovingEnabled -}
isDragMovingEnabled :: HG3DClass -> IO (Bool)
isDragMovingEnabled a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isDragMovingEnabled'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 59 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function isClickable -}
isClickable :: HG3DClass -> IO (Bool)
isClickable a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isClickable'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 64 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function isSegmentHovering -}
isSegmentHovering :: HG3DClass -> IO (Bool)
isSegmentHovering a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isSegmentHovering'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 69 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function isSegmentPushed -}
isSegmentPushed :: HG3DClass -> IO (Bool)
isSegmentPushed a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isSegmentPushed'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 74 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function isSplitterHovering -}
isSplitterHovering :: HG3DClass -> IO (Bool)
isSplitterHovering a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isSplitterHovering'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 79 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function isBeingDragMoved -}
isBeingDragMoved :: HG3DClass -> IO (Bool)
isBeingDragMoved a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isBeingDragMoved'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 84 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function isBeingDragSized -}
isBeingDragSized :: HG3DClass -> IO (Bool)
isBeingDragSized a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isBeingDragSized'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
{-# LINE 89 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function setSizingEnabled -}
setSizingEnabled :: HG3DClass -> Bool -> IO ()
setSizingEnabled a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setSizingEnabled'_ a1' a2' >>= \res ->
return ()
{-# LINE 94 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function setSortDirection -}
setSortDirection :: HG3DClass -> EnumSortDirection -> IO ()
setSortDirection a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = cIntFromEnum a2} in
setSortDirection'_ a1' a2' >>= \res ->
return ()
{-# LINE 99 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function setDragMovingEnabled -}
setDragMovingEnabled :: HG3DClass -> Bool -> IO ()
setDragMovingEnabled a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setDragMovingEnabled'_ a1' a2' >>= \res ->
return ()
{-# LINE 104 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function setClickable -}
setClickable :: HG3DClass -> Bool -> IO ()
setClickable a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setClickable'_ a1' a2' >>= \res ->
return ()
{-# LINE 109 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function setSizingCursorImage2 -}
setSizingCursorImage2 :: HG3DClass -> String -> String -> IO ()
setSizingCursorImage2 a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
withCString a3 $ \a3' ->
setSizingCursorImage2'_ a1' a2' a3' >>= \res ->
return ()
{-# LINE 115 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function setMovingCursorImage2 -}
setMovingCursorImage2 :: HG3DClass -> String -> String -> IO ()
setMovingCursorImage2 a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
withCString a3 $ \a3' ->
setMovingCursorImage2'_ a1' a2' a3' >>= \res ->
return ()
{-# LINE 121 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function ListHeaderSegment -}
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'')
{-# LINE 127 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
{- function ~ListHeaderSegment -}
delete :: HG3DClass -> IO ()
delete a1 =
withHG3DClass a1 $ \a1' ->
delete'_ a1' >>= \res ->
return ()
{-# LINE 131 ".\\HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs" #-}
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_isSizingEnabled"
isSizingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_getSortDirection"
getSortDirection'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_isDragMovingEnabled"
isDragMovingEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_isClickable"
isClickable'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_isSegmentHovering"
isSegmentHovering'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_isSegmentPushed"
isSegmentPushed'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_isSplitterHovering"
isSplitterHovering'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_isBeingDragMoved"
isBeingDragMoved'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_isBeingDragSized"
isBeingDragSized'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_setSizingEnabled"
setSizingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_setSortDirection"
setSortDirection'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_setDragMovingEnabled"
setDragMovingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_setClickable"
setClickable'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_setSizingCursorImage2"
setSizingCursorImage2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_setMovingCursorImage2"
setMovingCursorImage2'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((Ptr CChar) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_construct"
new'_ :: ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListHeaderSegment.chs.h cegui_lsthdrsgm_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))