module HGamer3D.Bindings.CEGUI.ClassListbox 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
getItemCount :: HG3DClass
-> IO (Int)
getItemCount a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getItemCount'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
getSelectedCount :: HG3DClass
-> IO (Int)
getSelectedCount a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getSelectedCount'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
getFirstSelectedItem :: HG3DClass
-> IO (HG3DClass)
getFirstSelectedItem a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getFirstSelectedItem'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
getNextSelected :: HG3DClass
-> HG3DClass
-> IO (HG3DClass)
getNextSelected a1 a2 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
alloca $ \a3' ->
getNextSelected'_ a1' a2' a3' >>= \res ->
peek a3'>>= \a3'' ->
return (a3'')
getListboxItemFromIndex :: HG3DClass
-> Int
-> IO (HG3DClass)
getListboxItemFromIndex a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
alloca $ \a3' ->
getListboxItemFromIndex'_ a1' a2' a3' >>= \res ->
peek a3'>>= \a3'' ->
return (a3'')
getItemIndex :: HG3DClass
-> HG3DClass
-> IO (Int)
getItemIndex a1 a2 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
alloca $ \a3' ->
getItemIndex'_ a1' a2' a3' >>= \res ->
peekIntConv a3'>>= \a3'' ->
return (a3'')
isSortEnabled :: HG3DClass
-> IO (Bool)
isSortEnabled a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isSortEnabled'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
isMultiselectEnabled :: HG3DClass
-> IO (Bool)
isMultiselectEnabled a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isMultiselectEnabled'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
isItemTooltipsEnabled :: HG3DClass
-> IO (Bool)
isItemTooltipsEnabled a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isItemTooltipsEnabled'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
isItemSelected :: HG3DClass
-> Int
-> IO (Bool)
isItemSelected a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
alloca $ \a3' ->
isItemSelected'_ a1' a2' a3' >>= \res ->
peekBoolUtil a3'>>= \a3'' ->
return (a3'')
findItemWithText :: HG3DClass
-> String
-> HG3DClass
-> IO (HG3DClass)
findItemWithText a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
withCString a2 $ \a2' ->
withHG3DClass a3 $ \a3' ->
alloca $ \a4' ->
findItemWithText'_ a1' a2' a3' a4' >>= \res ->
peek a4'>>= \a4'' ->
return (a4'')
isListboxItemInList :: HG3DClass
-> HG3DClass
-> IO (Bool)
isListboxItemInList a1 a2 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
alloca $ \a3' ->
isListboxItemInList'_ a1' a2' a3' >>= \res ->
peekBoolUtil a3'>>= \a3'' ->
return (a3'')
isVertScrollbarAlwaysShown :: HG3DClass
-> IO (Bool)
isVertScrollbarAlwaysShown a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isVertScrollbarAlwaysShown'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
isHorzScrollbarAlwaysShown :: HG3DClass
-> IO (Bool)
isHorzScrollbarAlwaysShown a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isHorzScrollbarAlwaysShown'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
initialiseComponents :: HG3DClass
-> IO ()
initialiseComponents a1 =
withHG3DClass a1 $ \a1' ->
initialiseComponents'_ a1' >>= \res ->
return ()
resetList :: HG3DClass
-> IO ()
resetList a1 =
withHG3DClass a1 $ \a1' ->
resetList'_ a1' >>= \res ->
return ()
addItem :: HG3DClass
-> HG3DClass
-> IO ()
addItem a1 a2 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
addItem'_ a1' a2' >>= \res ->
return ()
insertItem :: HG3DClass
-> HG3DClass
-> HG3DClass
-> IO ()
insertItem a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
withHG3DClass a3 $ \a3' ->
insertItem'_ a1' a2' a3' >>= \res ->
return ()
removeItem :: HG3DClass
-> HG3DClass
-> IO ()
removeItem a1 a2 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
removeItem'_ a1' a2' >>= \res ->
return ()
clearAllSelections :: HG3DClass
-> IO ()
clearAllSelections a1 =
withHG3DClass a1 $ \a1' ->
clearAllSelections'_ a1' >>= \res ->
return ()
setSortingEnabled :: HG3DClass
-> Bool
-> IO ()
setSortingEnabled a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setSortingEnabled'_ a1' a2' >>= \res ->
return ()
setMultiselectEnabled :: HG3DClass
-> Bool
-> IO ()
setMultiselectEnabled a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setMultiselectEnabled'_ a1' a2' >>= \res ->
return ()
setShowVertScrollbar :: HG3DClass
-> Bool
-> IO ()
setShowVertScrollbar a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setShowVertScrollbar'_ a1' a2' >>= \res ->
return ()
setShowHorzScrollbar :: HG3DClass
-> Bool
-> IO ()
setShowHorzScrollbar a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setShowHorzScrollbar'_ a1' a2' >>= \res ->
return ()
setItemTooltipsEnabled :: HG3DClass
-> Bool
-> IO ()
setItemTooltipsEnabled a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setItemTooltipsEnabled'_ a1' a2' >>= \res ->
return ()
setItemSelectState :: HG3DClass
-> HG3DClass
-> Bool
-> IO ()
setItemSelectState a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
let {a3' = fromBool a3} in
setItemSelectState'_ a1' a2' a3' >>= \res ->
return ()
setItemSelectState2 :: HG3DClass
-> Int
-> Bool
-> IO ()
setItemSelectState2 a1 a2 a3 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
let {a3' = fromBool a3} in
setItemSelectState2'_ a1' a2' a3' >>= \res ->
return ()
handleUpdatedItemData :: HG3DClass
-> IO ()
handleUpdatedItemData a1 =
withHG3DClass a1 $ \a1' ->
handleUpdatedItemData'_ a1' >>= \res ->
return ()
ensureItemIsVisible :: HG3DClass
-> Int
-> IO ()
ensureItemIsVisible a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
ensureItemIsVisible'_ a1' a2' >>= \res ->
return ()
ensureItemIsVisible2 :: HG3DClass
-> HG3DClass
-> IO ()
ensureItemIsVisible2 a1 a2 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
ensureItemIsVisible2'_ a1' a2' >>= \res ->
return ()
getVertScrollbar :: HG3DClass
-> IO (HG3DClass)
getVertScrollbar a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getVertScrollbar'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
getHorzScrollbar :: HG3DClass
-> IO (HG3DClass)
getHorzScrollbar a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getHorzScrollbar'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
getTotalItemsHeight :: HG3DClass
-> IO (Float)
getTotalItemsHeight a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getTotalItemsHeight'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
getWidestItemWidth :: HG3DClass
-> IO (Float)
getWidestItemWidth a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getWidestItemWidth'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
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\\ClassListbox.chs.h cegui_lstbx_getItemCount"
getItemCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getSelectedCount"
getSelectedCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getFirstSelectedItem"
getFirstSelectedItem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getNextSelected"
getNextSelected'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getListboxItemFromIndex"
getListboxItemFromIndex'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getItemIndex"
getItemIndex'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_isSortEnabled"
isSortEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_isMultiselectEnabled"
isMultiselectEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_isItemTooltipsEnabled"
isItemTooltipsEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_isItemSelected"
isItemSelected'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_findItemWithText"
findItemWithText'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_isListboxItemInList"
isListboxItemInList'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_isVertScrollbarAlwaysShown"
isVertScrollbarAlwaysShown'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_isHorzScrollbarAlwaysShown"
isHorzScrollbarAlwaysShown'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_initialiseComponents"
initialiseComponents'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_resetList"
resetList'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_addItem"
addItem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_insertItem"
insertItem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_removeItem"
removeItem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_clearAllSelections"
clearAllSelections'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_setSortingEnabled"
setSortingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_setMultiselectEnabled"
setMultiselectEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_setShowVertScrollbar"
setShowVertScrollbar'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_setShowHorzScrollbar"
setShowHorzScrollbar'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_setItemTooltipsEnabled"
setItemTooltipsEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_setItemSelectState"
setItemSelectState'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_setItemSelectState2"
setItemSelectState2'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_handleUpdatedItemData"
handleUpdatedItemData'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_ensureItemIsVisible"
ensureItemIsVisible'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_ensureItemIsVisible2"
ensureItemIsVisible2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getVertScrollbar"
getVertScrollbar'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getHorzScrollbar"
getHorzScrollbar'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getTotalItemsHeight"
getTotalItemsHeight'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_getWidestItemWidth"
getWidestItemWidth'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_construct"
new'_ :: ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ()))))
foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassListbox.chs.h cegui_lstbx_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))