-- 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\\ClassCombobox.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. -- -- ClassCombobox.chs -- module HGamer3D.Bindings.CEGUI.ClassCombobox 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\\ClassCombobox.chs" #-} import HGamer3D.Bindings.CEGUI.ClassPtr {-# LINE 41 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} import HGamer3D.Bindings.CEGUI.StructHG3DClass {-# LINE 42 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | returns the mode of operation for the combo box. getSingleClickEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Bool) -- ^ getSingleClickEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getSingleClickEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 48 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | returns true if the drop down list is visible. isDropDownListVisible :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Bool) -- ^ return value - true if the drop down list is visible, false otherwise. isDropDownListVisible a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> isDropDownListVisible'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 53 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return a pointer to the EditboxCombobox getEditbox :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (HG3DClass) -- ^ return value - Pointer to an getEditbox a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getEditbox'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 58 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return a pointer to the PushButtonCombobox getPushButton :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (HG3DClass) -- ^ return value - Pointer to a getPushButton a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getPushButton'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 63 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return a pointer to the ComboDropListCombobox getDropList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (HG3DClass) -- ^ return value - Pointer to an getDropList a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getDropList'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 68 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return true if the Editbox hasInputFocus :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Bool) -- ^ return value - true if the hasInputFocus a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> hasInputFocus'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 73 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return true if the Editbox isReadOnly :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Bool) -- ^ return value - true if the isReadOnly a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> isReadOnly'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 78 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return true if the Editbox - Details: It is possible to programmatically set 'invalid' text for the Editbox --Validation is performed by means of a regular expression. If the text matches the regex, the text is said to have passed validation. If the text does not match with the regex then the text fails validation. isTextValid :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Bool) -- ^ return value - true if the current isTextValid a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> isTextValid'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 83 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return the currently set validation string - Details: Validation is performed by means of a regular expression. If the text matches the regex, the text is said to have passed validation. If the text does not match with the regex then the text fails validation. getValidationString :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (String) -- ^ return value - String object containing the current validation regex data getValidationString a1 = withHG3DClass a1 $ \a1' -> alloc64k $ \a2' -> getValidationString'_ a1' a2' >>= \res -> peekCString a2'>>= \a2'' -> return (a2'') {-# LINE 88 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return the current position of the carat. getCaratIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Int) -- ^ return value - Index of the insert carat relative to the start of the text. getCaratIndex a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getCaratIndex'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 93 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return the current selection start point. getSelectionStartIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Int) -- ^ return value - Index of the selection start point relative to the start of the text. If no selection is defined this function returns the position of the carat. getSelectionStartIndex a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getSelectionStartIndex'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 98 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return the current selection end point. getSelectionEndIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Int) -- ^ return value - Index of the selection end point relative to the start of the text. If no selection is defined this function returns the position of the carat. getSelectionEndIndex a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getSelectionEndIndex'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 103 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return the length of the current selection (in code points / characters). getSelectionLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Int) -- ^ return value - Number of code points (or characters) contained within the currently defined selection. getSelectionLength a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getSelectionLength'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 108 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return the maximum text length set for this Editbox - Details: Depending on the validation string set, the actual length of text that can be entered may be less than the value returned here (it will never be more). getMaxTextLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Int) -- ^ return value - The maximum number of code points (characters) that can be entered into this getMaxTextLength a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getMaxTextLength'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 113 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return number of items attached to the list box. getItemCount :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Int) -- ^ return value - the number of items currently attached to this list box. getItemCount a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getItemCount'_ a1' a2' >>= \res -> peekIntConv a2'>>= \a2'' -> return (a2'') {-# LINE 118 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return a pointer to the currently selected item. getSelectedItem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (HG3DClass) -- ^ return value - Pointer to a getSelectedItem a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> getSelectedItem'_ a1' a2' >>= \res -> peek a2'>>= \a2'' -> return (a2'') {-# LINE 123 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return the item at index position index getListboxItemFromIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Int -- ^ index - Zero based index of the item to be returned. -> IO (HG3DClass) -- ^ return value - Pointer to the getListboxItemFromIndex a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> getListboxItemFromIndex'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 129 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return the index of ListboxItemitem getItemIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> HG3DClass -- ^ item - Pointer to a ListboxItem whos zero based index is to be returned. -> IO (Int) -- ^ return value - Zero based index indicating the position of getItemIndex a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> alloca $ \a3' -> getItemIndex'_ a1' a2' a3' >>= \res -> peekIntConv a3'>>= \a3'' -> return (a3'') {-# LINE 135 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return whether list sorting is enabled isSortEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Bool) -- ^ return value - true if the list is sorted, false if the list is not sorted isSortEnabled a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> isSortEnabled'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 140 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | return whether the string at index position index isItemSelected :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Int -- ^ index - Zero based index of the item to be examined. -> IO (Bool) -- ^ return value - true if the item at isItemSelected a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in alloca $ \a3' -> isItemSelected'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') {-# LINE 146 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Search the list for an item with the specified text. findItemWithText :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> String -- ^ text - String object containing the text to be searched for. -> HG3DClass -- ^ start_item - ListboxItem where the search is to begin, the search will not include item. If item is NULL, the search will begin from the first item in the list. -> IO (HG3DClass) -- ^ return value - Pointer to the first 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'') {-# LINE 153 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return whether the specified ListboxItem isListboxItemInList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> HG3DClass -- ^ item -> IO (Bool) -- ^ return value - true if isListboxItemInList a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> alloca $ \a3' -> isListboxItemInList'_ a1' a2' a3' >>= \res -> peekBoolUtil a3'>>= \a3'' -> return (a3'') {-# LINE 159 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return whether the vertical scroll bar is always shown. isVertScrollbarAlwaysShown :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Bool) -- ^ isVertScrollbarAlwaysShown a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> isVertScrollbarAlwaysShown'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 164 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Return whether the horizontal scroll bar is always shown. isHorzScrollbarAlwaysShown :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO (Bool) -- ^ isHorzScrollbarAlwaysShown a1 = withHG3DClass a1 $ \a1' -> alloca $ \a2' -> isHorzScrollbarAlwaysShown'_ a1' a2' >>= \res -> peekBoolUtil a2'>>= \a2'' -> return (a2'') {-# LINE 169 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Initialise the Window - Details: This must be called for every window created. Normally this is handled automatically by the WindowFactory for each Window initialiseComponents :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO () -- ^ return value - Nothing initialiseComponents a1 = withHG3DClass a1 $ \a1' -> initialiseComponents'_ a1' >>= \res -> return () {-# LINE 173 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Show the drop-down list. showDropList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO () -- ^ return value - Nothing showDropList a1 = withHG3DClass a1 $ \a1' -> showDropList'_ a1' >>= \res -> return () {-# LINE 177 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Hide the drop-down list. hideDropList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO () -- ^ return value - Nothing. hideDropList a1 = withHG3DClass a1 $ \a1' -> hideDropList'_ a1' >>= \res -> return () {-# LINE 181 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Set the mode of operation for the combo box. setSingleClickEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Bool -- ^ setting - -- -- -> IO () -- ^ return value - Nothing. setSingleClickEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in setSingleClickEnabled'_ a1' a2' >>= \res -> return () {-# LINE 186 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Specify whether the Editbox setReadOnly :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Bool -- ^ setting - true if the Editbox is read only and can't be edited by the user, false if the Editbox is not read only and may be edited by the user. -> IO () -- ^ return value - Nothing. setReadOnly a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in setReadOnly'_ a1' a2' >>= \res -> return () {-# LINE 191 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Set the text validation string. - Details: Validation is performed by means of a regular expression. If the text matches the regex, the text is said to have passed validation. If the text does not match with the regex then the text fails validation. setValidationString :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> String -- ^ validation_string - String object containing the validation regex data to be used. -> IO () -- ^ return value - Nothing. setValidationString a1 a2 = withHG3DClass a1 $ \a1' -> withCString a2 $ \a2' -> setValidationString'_ a1' a2' >>= \res -> return () {-# LINE 196 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Set the current position of the carat. setCaratIndex :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Int -- ^ carat_pos - New index for the insert carat relative to the start of the text. If the value specified is greater than the number of characters in the Editbox, the carat is positioned at the end of the text. -> IO () -- ^ return value - Nothing. setCaratIndex a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in setCaratIndex'_ a1' a2' >>= \res -> return () {-# LINE 201 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Define the current selection for the Editbox setSelection :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Int -- ^ start_pos - Index of the starting point for the selection. If this value is greater than the number of characters in the Editbox, the selection start will be set to the end of the text. -> Int -- ^ end_pos - Index of the ending point for the selection. If this value is greater than the number of characters in the Editbox, the selection start will be set to the end of the text. -> IO () -- ^ return value - Nothing. setSelection a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = fromIntegral a3} in setSelection'_ a1' a2' a3' >>= \res -> return () {-# LINE 207 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | set the maximum text length for this Editbox - Details: Depending on the validation string set, the actual length of text that can be entered may be less than the value set here (it will never be more). setMaxTextLength :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Int -- ^ max_len - The maximum number of code points (characters) that can be entered into this Editbox. -> IO () -- ^ return value - Nothing. setMaxTextLength a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in setMaxTextLength'_ a1' a2' >>= \res -> return () {-# LINE 212 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Activate the edit box component of the Combobox activateEditbox :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO () -- ^ return value - Nothing. activateEditbox a1 = withHG3DClass a1 $ \a1' -> activateEditbox'_ a1' >>= \res -> return () {-# LINE 216 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Remove all items from the list. - Details: Note that this will cause 'AutoDelete' items to be deleted. resetList :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO () -- ^ resetList a1 = withHG3DClass a1 $ \a1' -> resetList'_ a1' >>= \res -> return () {-# LINE 220 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Add the given ListboxItem addItem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> HG3DClass -- ^ item - Pointer to the ListboxItem to be added to the list. Note that it is the passed object that is added to the list, a copy is not made. If this parameter is NULL, nothing happens. -> IO () -- ^ return value - Nothing. addItem a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> addItem'_ a1' a2' >>= \res -> return () {-# LINE 225 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Insert an item into the list box after a specified item already in the list. - Details: Note that if the list is sorted, the item may not end up in the requested position. -- insertItem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> HG3DClass -- ^ item -> HG3DClass -- ^ position -> IO () -- ^ insertItem a1 a2 a3 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> withHG3DClass a3 $ \a3' -> insertItem'_ a1' a2' a3' >>= \res -> return () {-# LINE 231 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Removes the given item from the list box. removeItem :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> HG3DClass -- ^ item - Pointer to the ListboxItem that is to be removed. If item is not attached to this list box then nothing will happen. -> IO () -- ^ return value - Nothing. removeItem a1 a2 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> removeItem'_ a1' a2' >>= \res -> return () {-# LINE 236 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Clear the selected state for all items. clearAllSelections :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO () -- ^ return value - Nothing. clearAllSelections a1 = withHG3DClass a1 $ \a1' -> clearAllSelections'_ a1' >>= \res -> return () {-# LINE 240 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Set whether the list should be sorted. setSortingEnabled :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Bool -- ^ setting - true if the list should be sorted, false if the list should not be sorted. -> IO () -- ^ return value - Nothing. setSortingEnabled a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in setSortingEnabled'_ a1' a2' >>= \res -> return () {-# LINE 245 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Set whether the vertical scroll bar should always be shown. setShowVertScrollbar :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Bool -- ^ setting - true if the vertical scroll bar should be shown even when it is not required. false if the vertical scroll bar should only be shown when it is required. -> IO () -- ^ return value - Nothing. setShowVertScrollbar a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in setShowVertScrollbar'_ a1' a2' >>= \res -> return () {-# LINE 250 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Set whether the horizontal scroll bar should always be shown. setShowHorzScrollbar :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Bool -- ^ setting - true if the horizontal scroll bar should be shown even when it is not required. false if the horizontal scroll bar should only be shown when it is required. -> IO () -- ^ return value - Nothing. setShowHorzScrollbar a1 a2 = withHG3DClass a1 $ \a1' -> let {a2' = fromBool a2} in setShowHorzScrollbar'_ a1' a2' >>= \res -> return () {-# LINE 255 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Set the select state of an attached ListboxItem - Details: This is the recommended way of selecting and deselecting items attached to a list box as it respects the --multi-select mode setting. It is possible to modify the setting on ListboxItems directly, but that approach --does not respect the settings of the list box. -- setItemSelectState :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> HG3DClass -- ^ item -> Bool -- ^ state -> IO () -- ^ setItemSelectState a1 a2 a3 = withHG3DClass a1 $ \a1' -> withHG3DClass a2 $ \a2' -> let {a3' = fromBool a3} in setItemSelectState'_ a1' a2' a3' >>= \res -> return () {-# LINE 261 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Set the select state of an attached ListboxItem - Details: This is the recommended way of selecting and deselecting items attached to a list box as it respects the --multi-select mode setting. It is possible to modify the setting on ListboxItems directly, but that approach --does not respect the settings of the list box. -- setItemSelectState2 :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> Int -- ^ item_index -> Bool -- ^ state -> IO () -- ^ setItemSelectState2 a1 a2 a3 = withHG3DClass a1 $ \a1' -> let {a2' = fromIntegral a2} in let {a3' = fromBool a3} in setItemSelectState2'_ a1' a2' a3' >>= \res -> return () {-# LINE 267 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem - Details: Client code must call this whenever it has made any changes to ListboxItem objects already attached to the --list box. If you are just adding items, or removed items to update them prior to re-adding them, there is --no need to call this method. -- handleUpdatedListItemData :: HG3DClass -- ^ classpointer - pointer of Class instance from which this methods is called. -> IO () -- ^ handleUpdatedListItemData a1 = withHG3DClass a1 $ \a1' -> handleUpdatedListItemData'_ a1' >>= \res -> return () {-# LINE 271 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Constructor for Combobox new :: String -- ^ type -> String -- ^ name -> IO (HG3DClass) -- ^ new a1 a2 = withCString a1 $ \a1' -> withCString a2 $ \a2' -> alloca $ \a3' -> new'_ a1' a2' a3' >>= \res -> peek a3'>>= \a3'' -> return (a3'') {-# LINE 277 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} -- | Destructor for Combobox delete :: HG3DClass -- ^ classpointer - pointer of Class instance which is going to be deleted. -> IO () -- ^ delete a1 = withHG3DClass a1 $ \a1' -> delete'_ a1' >>= \res -> return () {-# LINE 281 ".\\HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs" #-} foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getSingleClickEnabled" getSingleClickEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_isDropDownListVisible" isDropDownListVisible'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getEditbox" getEditbox'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getPushButton" getPushButton'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getDropList" getDropList'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_hasInputFocus" hasInputFocus'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_isReadOnly" isReadOnly'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_isTextValid" isTextValid'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getValidationString" getValidationString'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getCaratIndex" getCaratIndex'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getSelectionStartIndex" getSelectionStartIndex'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getSelectionEndIndex" getSelectionEndIndex'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getSelectionLength" getSelectionLength'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getMaxTextLength" getMaxTextLength'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getItemCount" getItemCount'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getSelectedItem" getSelectedItem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getListboxItemFromIndex" getListboxItemFromIndex'_ :: ((HG3DClassPtr) -> (CInt -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_getItemIndex" getItemIndex'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_isSortEnabled" isSortEnabled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_isItemSelected" isItemSelected'_ :: ((HG3DClassPtr) -> (CInt -> ((Ptr CInt) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_findItemWithText" findItemWithText'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_isListboxItemInList" isListboxItemInList'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_isVertScrollbarAlwaysShown" isVertScrollbarAlwaysShown'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_isHorzScrollbarAlwaysShown" isHorzScrollbarAlwaysShown'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_initialiseComponents" initialiseComponents'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_showDropList" showDropList'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_hideDropList" hideDropList'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setSingleClickEnabled" setSingleClickEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setReadOnly" setReadOnly'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setValidationString" setValidationString'_ :: ((HG3DClassPtr) -> ((Ptr CChar) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setCaratIndex" setCaratIndex'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setSelection" setSelection'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setMaxTextLength" setMaxTextLength'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_activateEditbox" activateEditbox'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_resetList" resetList'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_addItem" addItem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_insertItem" insertItem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_removeItem" removeItem'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_clearAllSelections" clearAllSelections'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setSortingEnabled" setSortingEnabled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setShowVertScrollbar" setShowVertScrollbar'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setShowHorzScrollbar" setShowHorzScrollbar'_ :: ((HG3DClassPtr) -> (CInt -> (IO ()))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setItemSelectState" setItemSelectState'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CInt -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_setItemSelectState2" setItemSelectState2'_ :: ((HG3DClassPtr) -> (CInt -> (CInt -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_handleUpdatedListItemData" handleUpdatedListItemData'_ :: ((HG3DClassPtr) -> (IO ())) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_construct" new'_ :: ((Ptr CChar) -> ((Ptr CChar) -> ((HG3DClassPtr) -> (IO ())))) foreign import ccall safe "HGamer3D\\Bindings\\CEGUI\\ClassCombobox.chs.h cegui_cmbbx_destruct" delete'_ :: ((HG3DClassPtr) -> (IO ()))