#include <CEGUIInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| bool | isHit (in_Pairf *position) |
| check if the given position would hit this window. | |
| bool | getSingleClickEnabled () |
| returns the mode of operation for the combo box. | |
| bool | isDropDownListVisible () |
| returns true if the drop down list is visible. | |
| DICEGUIEditbox * | getEditbox () |
| Return a pointer to the Editbox component widget for this Combobox. | |
| DICEGUIButton * | getPushButton () |
| Return a pointer to the PushButton component widget for this Combobox. | |
| DICEGUIComboDropList * | getDropList () |
| Return a pointer to the ComboDropList component widget for this Combobox. | |
| bool | hasInputFocus () |
| return true if the Editbox has input focus. | |
| bool | isReadOnly () |
| return true if the Editbox is read-only. | |
| bool | isTextValid () |
| return true if the Editbox text is valid given the currently set validation string. | |
| const char * | getValidationString () |
| return the currently set validation string | |
| unsigned long | getCaratIndex () |
| return the current position of the carat. | |
| unsigned long | getSelectionStartIndex () |
| return the current selection start point. | |
| unsigned long | getSelectionEndIndex () |
| return the current selection end point. | |
| unsigned long | getSelectionLength () |
| return the length of the current selection (in code points / characters). | |
| unsigned long | getMaxTextLength () |
| return the maximum text length set for this Editbox. | |
| unsigned long | getItemCount () |
| Return number of items attached to the list box. | |
| DICEGUIListboxItem * | getSelectedItem () |
| Return a pointer to the currently selected item. | |
| DICEGUIListboxItem * | getListboxItemFromIndex (unsigned long index) |
| Return the item at index position index. | |
| unsigned long | getItemIndex (DICEGUIListboxItem *item) |
| Return the index of ListboxItem item. | |
| bool | isSortEnabled () |
| return whether list sorting is enabled | |
| bool | isItemSelected (unsigned long index) |
| return whether the string at index position index is selected | |
| DICEGUIListboxItem * | findItemWithText (const char *text, DICEGUIListboxItem *start_item) |
| Search the list for an item with the specified text. | |
| bool | isListboxItemInList (DICEGUIListboxItem *item) |
| Return whether the specified ListboxItem is in the List. | |
| bool | isVertScrollbarAlwaysShown () |
| Return whether the vertical scroll bar is always shown. | |
| bool | isHorzScrollbarAlwaysShown () |
| Return whether the horizontal scroll bar is always shown. | |
| void | initialiseComponents () |
| Initialise the Window based object ready for use. | |
| void | showDropList () |
| Show the drop-down list. | |
| void | hideDropList () |
| Hide the drop-down list. | |
| void | setSingleClickEnabled (bool setting) |
| Set the mode of operation for the combo box. | |
| void | setReadOnly (bool setting) |
| Specify whether the Editbox is read-only. | |
| void | setValidationString (const char *validation_string) |
| Set the text validation string. | |
| void | setCaratIndex (unsigned long carat_pos) |
| Set the current position of the carat. | |
| void | setSelection (unsigned long start_pos, unsigned long end_pos) |
| Define the current selection for the Editbox. | |
| void | setMaxTextLength (unsigned long max_len) |
| set the maximum text length for this Editbox. | |
| void | activateEditbox () |
| Activate the edit box component of the Combobox. | |
| void | resetList () |
| Remove all items from the list. | |
| void | addItem (DICEGUIListboxItem *item) |
| Add the given ListboxItem to the list. | |
| void | insertItem (DICEGUIListboxItem *item, DICEGUIListboxItem *position) |
| Insert an item into the list box after a specified item already in the list. | |
| void | removeItem (DICEGUIListboxItem *item) |
| Removes the given item from the list box. | |
| void | clearAllSelections () |
| Clear the selected state for all items. | |
| void | setSortingEnabled (bool setting) |
| Set whether the list should be sorted. | |
| void | setShowVertScrollbar (bool setting) |
| Set whether the vertical scroll bar should always be shown. | |
| void | setShowHorzScrollbar (bool setting) |
| Set whether the horizontal scroll bar should always be shown. | |
| void | setItemSelectState (DICEGUIListboxItem *item, bool state) |
| Set the select state of an attached ListboxItem. | |
| void | setItemSelectState (unsigned long item_index, bool state) |
| Set the select state of an attached ListboxItem. | |
| void | handleUpdatedListItemData () |
| Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem objects. | |
| bool DigitalSpaces::DICEGUICombobox::isHit | ( | in_Pairf * | position | ) |
check if the given position would hit this window.
| position | Point object describing the position to check in screen pixels |
| bool DigitalSpaces::DICEGUICombobox::getSingleClickEnabled | ( | ) |
returns the mode of operation for the combo box.
| bool DigitalSpaces::DICEGUICombobox::isDropDownListVisible | ( | ) |
returns true if the drop down list is visible.
| DICEGUIEditbox* DigitalSpaces::DICEGUICombobox::getEditbox | ( | ) |
Return a pointer to the Editbox component widget for this Combobox.
| UnknownObjectException | Thrown if the Editbox component does not exist. |
| DICEGUIButton* DigitalSpaces::DICEGUICombobox::getPushButton | ( | ) |
Return a pointer to the PushButton component widget for this Combobox.
| UnknownObjectException | Thrown if the PushButton component does not exist. |
| DICEGUIComboDropList* DigitalSpaces::DICEGUICombobox::getDropList | ( | ) |
Return a pointer to the ComboDropList component widget for this Combobox.
| UnknownObjectException | Thrown if the ComboDropList component does not exist. |
| bool DigitalSpaces::DICEGUICombobox::hasInputFocus | ( | ) |
return true if the Editbox has input focus.
| bool DigitalSpaces::DICEGUICombobox::isReadOnly | ( | ) |
return true if the Editbox is read-only.
| bool DigitalSpaces::DICEGUICombobox::isTextValid | ( | ) |
return true if the Editbox text is valid given the currently set validation string.
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.
| const char* DigitalSpaces::DICEGUICombobox::getValidationString | ( | ) |
return the currently set validation string
| unsigned long DigitalSpaces::DICEGUICombobox::getCaratIndex | ( | ) |
return the current position of the carat.
| unsigned long DigitalSpaces::DICEGUICombobox::getSelectionStartIndex | ( | ) |
return the current selection start point.
| unsigned long DigitalSpaces::DICEGUICombobox::getSelectionEndIndex | ( | ) |
return the current selection end point.
| unsigned long DigitalSpaces::DICEGUICombobox::getSelectionLength | ( | ) |
return the length of the current selection (in code points / characters).
| unsigned long DigitalSpaces::DICEGUICombobox::getMaxTextLength | ( | ) |
return the maximum text length set for this Editbox.
| unsigned long DigitalSpaces::DICEGUICombobox::getItemCount | ( | ) |
Return number of items attached to the list box.
| DICEGUIListboxItem* DigitalSpaces::DICEGUICombobox::getSelectedItem | ( | ) |
Return a pointer to the currently selected item.
| DICEGUIListboxItem* DigitalSpaces::DICEGUICombobox::getListboxItemFromIndex | ( | unsigned long | index | ) |
Return the item at index position index.
| index | Zero based index of the item to be returned. |
| InvalidRequestException | thrown if index is out of range. |
| unsigned long DigitalSpaces::DICEGUICombobox::getItemIndex | ( | DICEGUIListboxItem * | item | ) |
Return the index of ListboxItem item.
| item | Pointer to a ListboxItem whos zero based index is to be returned. |
| InvalidRequestException | thrown if item is not attached to this list box. |
| bool DigitalSpaces::DICEGUICombobox::isSortEnabled | ( | ) |
return whether list sorting is enabled
| bool DigitalSpaces::DICEGUICombobox::isItemSelected | ( | unsigned long | index | ) |
return whether the string at index position index is selected
| index | Zero based index of the item to be examined. |
| InvalidRequestException | thrown if index is out of range. |
| DICEGUIListboxItem* DigitalSpaces::DICEGUICombobox::findItemWithText | ( | const char * | text, | |
| DICEGUIListboxItem * | start_item | |||
| ) |
Search the list for an item with the specified text.
| text | String object containing the text to be searched for. | |
| 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. |
| InvalidRequestException | thrown if item is not attached to this list box. |
| bool DigitalSpaces::DICEGUICombobox::isListboxItemInList | ( | DICEGUIListboxItem * | item | ) |
Return whether the specified ListboxItem is in the List.
| bool DigitalSpaces::DICEGUICombobox::isVertScrollbarAlwaysShown | ( | ) |
Return whether the vertical scroll bar is always shown.
| bool DigitalSpaces::DICEGUICombobox::isHorzScrollbarAlwaysShown | ( | ) |
Return whether the horizontal scroll bar is always shown.
| void DigitalSpaces::DICEGUICombobox::initialiseComponents | ( | ) |
Initialise the Window based object ready for use.
| void DigitalSpaces::DICEGUICombobox::showDropList | ( | ) |
Show the drop-down list.
| void DigitalSpaces::DICEGUICombobox::hideDropList | ( | ) |
Hide the drop-down list.
| void DigitalSpaces::DICEGUICombobox::setSingleClickEnabled | ( | bool | setting | ) |
Set the mode of operation for the combo box.
| setting |
|
| void DigitalSpaces::DICEGUICombobox::setReadOnly | ( | bool | setting | ) |
Specify whether the Editbox is read-only.
| 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. |
| void DigitalSpaces::DICEGUICombobox::setValidationString | ( | const char * | validation_string | ) |
Set the text validation string.
| validation_string | String object containing the validation regex data to be used. |
| void DigitalSpaces::DICEGUICombobox::setCaratIndex | ( | unsigned long | carat_pos | ) |
Set the current position of the carat.
| 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. |
| void DigitalSpaces::DICEGUICombobox::setSelection | ( | unsigned long | start_pos, | |
| unsigned long | end_pos | |||
| ) |
Define the current selection for the Editbox.
| 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. | |
| 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. |
| void DigitalSpaces::DICEGUICombobox::setMaxTextLength | ( | unsigned long | max_len | ) |
set the maximum text length for this Editbox.
| max_len | The maximum number of code points (characters) that can be entered into this Editbox. |
| void DigitalSpaces::DICEGUICombobox::activateEditbox | ( | ) |
Activate the edit box component of the Combobox.
| void DigitalSpaces::DICEGUICombobox::resetList | ( | ) |
Remove all items from the list.
Note that this will cause 'AutoDelete' items to be deleted.
| void DigitalSpaces::DICEGUICombobox::addItem | ( | DICEGUIListboxItem * | item | ) |
Add the given ListboxItem to the list.
| 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. |
| void DigitalSpaces::DICEGUICombobox::insertItem | ( | DICEGUIListboxItem * | item, | |
| DICEGUIListboxItem * | position | |||
| ) |
Insert an item into the list box after a specified item already in the list.
Note that if the list is sorted, the item may not end up in the requested position.
| item | Pointer to the ListboxItem to be inserted. 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. | |
| position | Pointer to a ListboxItem that item is to be inserted after. If this parameter is NULL, the item is inserted at the start of the list. |
| void DigitalSpaces::DICEGUICombobox::removeItem | ( | DICEGUIListboxItem * | item | ) |
Removes the given item from the list box.
| item | Pointer to the ListboxItem that is to be removed. If item is not attached to this list box then nothing will happen. |
| void DigitalSpaces::DICEGUICombobox::clearAllSelections | ( | ) |
Clear the selected state for all items.
| void DigitalSpaces::DICEGUICombobox::setSortingEnabled | ( | bool | setting | ) |
Set whether the list should be sorted.
| setting | true if the list should be sorted, false if the list should not be sorted. |
| void DigitalSpaces::DICEGUICombobox::setShowVertScrollbar | ( | bool | setting | ) |
Set whether the vertical scroll bar should always be shown.
| 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. |
| void DigitalSpaces::DICEGUICombobox::setShowHorzScrollbar | ( | bool | setting | ) |
Set whether the horizontal scroll bar should always be shown.
| 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. |
| void DigitalSpaces::DICEGUICombobox::setItemSelectState | ( | DICEGUIListboxItem * | item, | |
| bool | state | |||
| ) |
Set the select state of an attached ListboxItem.
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.
| item | The ListboxItem to be affected. This item must be attached to the list box. | |
| state | true to select the item, false to de-select the item. |
| InvalidRequestException | thrown if item is not attached to this list box. |
| void DigitalSpaces::DICEGUICombobox::setItemSelectState | ( | unsigned long | item_index, | |
| bool | state | |||
| ) |
Set the select state of an attached ListboxItem.
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.
| item_index | The zero based index of the ListboxItem to be affected. This must be a valid index (0 <= index < getItemCount()) | |
| state | true to select the item, false to de-select the item. |
| InvalidRequestException | thrown if item_index is out of range for the list box |
| void DigitalSpaces::DICEGUICombobox::handleUpdatedListItemData | ( | ) |
Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem objects.
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.
1.5.6