30 #ifndef _CEGUICombobox_h_
31 #define _CEGUICombobox_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "CEGUIComboboxProperties.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
184 bool isHit(
const Vector2& position,
185 const bool allow_disabled =
false)
const;
195 bool getSingleClickEnabled(
void)
const;
205 bool isDropDownListVisible(
void)
const;
256 bool hasInputFocus(
void)
const;
267 bool isReadOnly(
void)
const;
286 bool isTextValid(
void)
const;
300 const String& getValidationString(
void)
const;
310 size_t getCaratIndex(
void)
const;
321 size_t getSelectionStartIndex(
void)
const;
332 size_t getSelectionEndIndex(
void)
const;
342 size_t getSelectionLength(
void)
const;
356 size_t getMaxTextLength(
void)
const;
369 size_t getItemCount(
void)
const;
395 ListboxItem* getListboxItemFromIndex(
size_t index)
const;
410 size_t getItemIndex(
const ListboxItem* item)
const;
420 bool isSortEnabled(
void)
const;
435 bool isItemSelected(
size_t index)
const;
465 bool isListboxItemInList(
const ListboxItem* item)
const;
476 bool isVertScrollbarAlwaysShown(
void)
const;
487 bool isHorzScrollbarAlwaysShown(
void)
const;
503 virtual void initialiseComponents(
void);
513 void showDropList(
void);
523 void hideDropList(
void);
537 void setSingleClickEnabled(
bool setting);
554 void setReadOnly(
bool setting);
571 void setValidationString(
const String& validation_string);
585 void setCaratIndex(
size_t carat_pos);
603 void setSelection(
size_t start_pos,
size_t end_pos);
620 void setMaxTextLength(
size_t max_len);
630 void activateEditbox(
void);
642 void resetList(
void);
700 void clearAllSelections(
void);
713 void setSortingEnabled(
bool setting);
727 void setShowVertScrollbar(
bool setting);
741 void setShowHorzScrollbar(
bool setting);
763 void setItemSelectState(
ListboxItem* item,
bool state);
785 void setItemSelectState(
size_t item_index,
bool state);
800 void handleUpdatedListItemData(
void);
828 bool button_PressHandler(
const EventArgs& e);
835 bool droplist_SelectionAcceptedHandler(
const EventArgs& e);
842 bool droplist_HiddenHandler(
const EventArgs& e);
849 bool editbox_MouseDownHandler(
const EventArgs& e);
862 virtual bool testClassName_impl(
const String& class_name)
const
864 if (class_name==
"Combobox")
return true;
873 void itemSelectChangeTextUpdate(
const ListboxItem*
const item,
874 bool new_state,
bool old_state);
879 bool editbox_ReadOnlyChangedHandler(
const EventArgs& e);
880 bool editbox_ValidationStringChangedHandler(
const EventArgs& e);
881 bool editbox_MaximumTextLengthChangedHandler(
const EventArgs& e);
882 bool editbox_TextInvalidatedEventHandler(
const EventArgs& e);
883 bool editbox_InvalidEntryAttemptedHandler(
const EventArgs& e);
884 bool editbox_CaratMovedHandler(
const EventArgs& e);
885 bool editbox_TextSelectionChangedHandler(
const EventArgs& e);
886 bool editbox_EditboxFullEventHandler(
const EventArgs& e);
887 bool editbox_TextAcceptedEventHandler(
const EventArgs& e);
888 bool editbox_TextChangedEventHandler(
const EventArgs& e);
889 bool listbox_ListContentsChangedHandler(
const EventArgs& e);
890 bool listbox_ListSelectionChangedHandler(
const EventArgs& e);
891 bool listbox_SortModeChangedHandler(
const EventArgs& e);
892 bool listbox_VertScrollModeChangedHandler(
const EventArgs& e);
893 bool listbox_HorzScrollModeChangedHandler(
const EventArgs& e);
1053 void addComboboxProperties(
void);
1058 #if defined(_MSC_VER)
1059 # pragma warning(pop)
1062 #endif // end of guard _CEGUICombobox_h_