Safe Haskell | None |
---|
- getItemCount :: HG3DClass -> IO Int
- getSelectedCount :: HG3DClass -> IO Int
- getFirstSelectedItem :: HG3DClass -> IO HG3DClass
- getNextSelected :: HG3DClass -> HG3DClass -> IO HG3DClass
- getListboxItemFromIndex :: HG3DClass -> Int -> IO HG3DClass
- getItemIndex :: HG3DClass -> HG3DClass -> IO Int
- isSortEnabled :: HG3DClass -> IO Bool
- isMultiselectEnabled :: HG3DClass -> IO Bool
- isItemTooltipsEnabled :: HG3DClass -> IO Bool
- isItemSelected :: HG3DClass -> Int -> IO Bool
- findItemWithText :: HG3DClass -> String -> HG3DClass -> IO HG3DClass
- isListboxItemInList :: HG3DClass -> HG3DClass -> IO Bool
- isVertScrollbarAlwaysShown :: HG3DClass -> IO Bool
- isHorzScrollbarAlwaysShown :: HG3DClass -> IO Bool
- initialiseComponents :: HG3DClass -> IO ()
- resetList :: HG3DClass -> IO ()
- addItem :: HG3DClass -> HG3DClass -> IO ()
- insertItem :: HG3DClass -> HG3DClass -> HG3DClass -> IO ()
- removeItem :: HG3DClass -> HG3DClass -> IO ()
- clearAllSelections :: HG3DClass -> IO ()
- setSortingEnabled :: HG3DClass -> Bool -> IO ()
- setMultiselectEnabled :: HG3DClass -> Bool -> IO ()
- setShowVertScrollbar :: HG3DClass -> Bool -> IO ()
- setShowHorzScrollbar :: HG3DClass -> Bool -> IO ()
- setItemTooltipsEnabled :: HG3DClass -> Bool -> IO ()
- setItemSelectState :: HG3DClass -> HG3DClass -> Bool -> IO ()
- setItemSelectState2 :: HG3DClass -> Int -> Bool -> IO ()
- handleUpdatedItemData :: HG3DClass -> IO ()
- ensureItemIsVisible :: HG3DClass -> Int -> IO ()
- ensureItemIsVisible2 :: HG3DClass -> HG3DClass -> IO ()
- getVertScrollbar :: HG3DClass -> IO HG3DClass
- getHorzScrollbar :: HG3DClass -> IO HG3DClass
- getTotalItemsHeight :: HG3DClass -> IO Float
- getWidestItemWidth :: HG3DClass -> IO Float
- new :: String -> String -> IO HG3DClass
- delete :: HG3DClass -> IO ()
- getItemCount'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getSelectedCount'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getFirstSelectedItem'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- getNextSelected'_ :: HG3DClassPtr -> HG3DClassPtr -> HG3DClassPtr -> IO ()
- getListboxItemFromIndex'_ :: HG3DClassPtr -> CInt -> HG3DClassPtr -> IO ()
- getItemIndex'_ :: HG3DClassPtr -> HG3DClassPtr -> Ptr CInt -> IO ()
- isSortEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- isMultiselectEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- isItemTooltipsEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- isItemSelected'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()
- findItemWithText'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> HG3DClassPtr -> IO ()
- isListboxItemInList'_ :: HG3DClassPtr -> HG3DClassPtr -> Ptr CInt -> IO ()
- isVertScrollbarAlwaysShown'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- isHorzScrollbarAlwaysShown'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- initialiseComponents'_ :: HG3DClassPtr -> IO ()
- resetList'_ :: HG3DClassPtr -> IO ()
- addItem'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- insertItem'_ :: HG3DClassPtr -> HG3DClassPtr -> HG3DClassPtr -> IO ()
- removeItem'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- clearAllSelections'_ :: HG3DClassPtr -> IO ()
- setSortingEnabled'_ :: HG3DClassPtr -> CInt -> IO ()
- setMultiselectEnabled'_ :: HG3DClassPtr -> CInt -> IO ()
- setShowVertScrollbar'_ :: HG3DClassPtr -> CInt -> IO ()
- setShowHorzScrollbar'_ :: HG3DClassPtr -> CInt -> IO ()
- setItemTooltipsEnabled'_ :: HG3DClassPtr -> CInt -> IO ()
- setItemSelectState'_ :: HG3DClassPtr -> HG3DClassPtr -> CInt -> IO ()
- setItemSelectState2'_ :: HG3DClassPtr -> CInt -> CInt -> IO ()
- handleUpdatedItemData'_ :: HG3DClassPtr -> IO ()
- ensureItemIsVisible'_ :: HG3DClassPtr -> CInt -> IO ()
- ensureItemIsVisible2'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- getVertScrollbar'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- getHorzScrollbar'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- getTotalItemsHeight'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- getWidestItemWidth'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- new'_ :: Ptr CChar -> Ptr CChar -> HG3DClassPtr -> IO ()
- delete'_ :: HG3DClassPtr -> IO ()
Documentation
:: 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. |
Return number of items attached to the list box.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Int | return value - Total number of attached items that are in the selected state. |
Return the number of selected items in the list box.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO HG3DClass | return value - Pointer to a |
Return a pointer to the first selected item.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | start_item - Pointer to the ListboxItem where the search for the next selected item is to begin. If this parameter is NULL, the search will begin with the first item in the list box. |
-> IO HG3DClass | return value - Pointer to a |
Return a pointer to the next selected item after item start_item
:: 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 |
Return the item at index position index
:: 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 |
Return the index of ListboxItemitem
:: 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 |
return whether list sorting is enabled
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Bool | return value - true if multi-select is enabled, false if multi-select is not enabled. |
return whether multi-select is enabled
:: 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 |
return whether the string at index position index
:: 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 |
Search the list for an item with the specified text.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | item |
-> IO Bool | return value - true if |
Return whether the specified ListboxItem
isVertScrollbarAlwaysShownSource
Return whether the vertical scroll bar is always shown.
isHorzScrollbarAlwaysShownSource
Return whether the horizontal scroll bar is always shown.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO () | return value - Nothing |
Remove all items from the list. - Details: Note that this will cause AutoDelete
items to be deleted.
Initialise the Window - Details: This must be called for every window created. Normally this is handled automatically by the WindowFactory for each Window
Add the given ListboxItem
:: 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. |
Insert an item into the list box before 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.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | item |
-> HG3DClass | position |
-> IO () |
Removes the given item from the list box. If the item is has the auto delete state set, the item will be deleted.
:: 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. |
Clear the selected state for all items.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO () | return value - Nothing. |
Set whether the list should be sorted.
:: 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. |
Set whether the list should allow multiple selections or just a single selection.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | setting - true if the widget should allow multiple items to be selected, false if the widget should only allow a single selection. |
-> IO () | return value - Nothing. |
Set whether the vertical scroll bar should always be shown.
:: 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. |
Set whether the horizontal scroll bar should always be shown.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | setting |
-> IO () |
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.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | item |
-> Bool | state |
-> IO () |
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.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | item_index |
-> Bool | state |
-> IO () |
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.
Ensure the item at the specified index is visible within the list box.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | item_index - Zero based index of the item to be made visible in the list box. If this value is out of range, the list is always scrolled to the bottom. |
-> IO () | return value - Nothing. |
Ensure the item at the specified index is visible within the list box.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | item - Pointer to the ListboxItem to be made visible in the list box. |
-> IO () | return value - Nothing. |
Return a pointer to the vertical scrollbar component widget for this Listbox
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO HG3DClass | return value - Pointer to a |
Return a pointer to the horizontal scrollbar component widget for this Listbox
Return the sum of all item heights.
Return the width of the widest item.
Destructor for Listbox
getItemCount'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getSelectedCount'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getFirstSelectedItem'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getNextSelected'_ :: HG3DClassPtr -> HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getListboxItemFromIndex'_ :: HG3DClassPtr -> CInt -> HG3DClassPtr -> IO ()Source
getItemIndex'_ :: HG3DClassPtr -> HG3DClassPtr -> Ptr CInt -> IO ()Source
isSortEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
isMultiselectEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
isItemTooltipsEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
isItemSelected'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()Source
findItemWithText'_ :: HG3DClassPtr -> Ptr CChar -> HG3DClassPtr -> HG3DClassPtr -> IO ()Source
isListboxItemInList'_ :: HG3DClassPtr -> HG3DClassPtr -> Ptr CInt -> IO ()Source
isVertScrollbarAlwaysShown'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
isHorzScrollbarAlwaysShown'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
initialiseComponents'_ :: HG3DClassPtr -> IO ()Source
resetList'_ :: HG3DClassPtr -> IO ()Source
addItem'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
insertItem'_ :: HG3DClassPtr -> HG3DClassPtr -> HG3DClassPtr -> IO ()Source
removeItem'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
clearAllSelections'_ :: HG3DClassPtr -> IO ()Source
setSortingEnabled'_ :: HG3DClassPtr -> CInt -> IO ()Source
setMultiselectEnabled'_ :: HG3DClassPtr -> CInt -> IO ()Source
setShowVertScrollbar'_ :: HG3DClassPtr -> CInt -> IO ()Source
setShowHorzScrollbar'_ :: HG3DClassPtr -> CInt -> IO ()Source
setItemTooltipsEnabled'_ :: HG3DClassPtr -> CInt -> IO ()Source
setItemSelectState'_ :: HG3DClassPtr -> HG3DClassPtr -> CInt -> IO ()Source
setItemSelectState2'_ :: HG3DClassPtr -> CInt -> CInt -> IO ()Source
handleUpdatedItemData'_ :: HG3DClassPtr -> IO ()Source
ensureItemIsVisible'_ :: HG3DClassPtr -> CInt -> IO ()Source
ensureItemIsVisible2'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getVertScrollbar'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getHorzScrollbar'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getTotalItemsHeight'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
getWidestItemWidth'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
delete'_ :: HG3DClassPtr -> IO ()Source