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)
92 bool isHit(
const Vector2& position,
93 const bool allow_disabled =
false)
const;
103 bool getSingleClickEnabled(
void)
const;
113 bool isDropDownListVisible(
void)
const;
164 bool hasInputFocus(
void)
const;
175 bool isReadOnly(
void)
const;
194 bool isTextValid(
void)
const;
208 const String& getValidationString(
void)
const;
218 size_t getCaratIndex(
void)
const;
229 size_t getSelectionStartIndex(
void)
const;
240 size_t getSelectionEndIndex(
void)
const;
250 size_t getSelectionLength(
void)
const;
264 size_t getMaxTextLength(
void)
const;
277 size_t getItemCount(
void)
const;
303 ListboxItem* getListboxItemFromIndex(
size_t index)
const;
318 size_t getItemIndex(
const ListboxItem* item)
const;
328 bool isSortEnabled(
void)
const;
343 bool isItemSelected(
size_t index)
const;
373 bool isListboxItemInList(
const ListboxItem* item)
const;
384 bool isVertScrollbarAlwaysShown(
void)
const;
395 bool isHorzScrollbarAlwaysShown(
void)
const;
411 virtual void initialiseComponents(
void);
421 void showDropList(
void);
431 void hideDropList(
void);
445 void setSingleClickEnabled(
bool setting);
462 void setReadOnly(
bool setting);
479 void setValidationString(
const String& validation_string);
493 void setCaratIndex(
size_t carat_pos);
511 void setSelection(
size_t start_pos,
size_t end_pos);
528 void setMaxTextLength(
size_t max_len);
538 void activateEditbox(
void);
550 void resetList(
void);
608 void clearAllSelections(
void);
621 void setSortingEnabled(
bool setting);
635 void setShowVertScrollbar(
bool setting);
649 void setShowHorzScrollbar(
bool setting);
671 void setItemSelectState(
ListboxItem* item,
bool state);
693 void setItemSelectState(
size_t item_index,
bool state);
708 void handleUpdatedListItemData(
void);
736 bool button_PressHandler(
const EventArgs& e);
743 bool droplist_SelectionAcceptedHandler(
const EventArgs& e);
750 bool droplist_HiddenHandler(
const EventArgs& e);
757 bool editbox_MouseDownHandler(
const EventArgs& e);
770 virtual bool testClassName_impl(
const String& class_name)
const
772 if (class_name==
"Combobox")
return true;
781 void itemSelectChangeTextUpdate(
const ListboxItem*
const item,
782 bool new_state,
bool old_state);
787 bool editbox_ReadOnlyChangedHandler(
const EventArgs& e);
788 bool editbox_ValidationStringChangedHandler(
const EventArgs& e);
789 bool editbox_MaximumTextLengthChangedHandler(
const EventArgs& e);
790 bool editbox_TextInvalidatedEventHandler(
const EventArgs& e);
791 bool editbox_InvalidEntryAttemptedHandler(
const EventArgs& e);
792 bool editbox_CaratMovedHandler(
const EventArgs& e);
793 bool editbox_TextSelectionChangedHandler(
const EventArgs& e);
794 bool editbox_EditboxFullEventHandler(
const EventArgs& e);
795 bool editbox_TextAcceptedEventHandler(
const EventArgs& e);
796 bool editbox_TextChangedEventHandler(
const EventArgs& e);
797 bool listbox_ListContentsChangedHandler(
const EventArgs& e);
798 bool listbox_ListSelectionChangedHandler(
const EventArgs& e);
799 bool listbox_SortModeChangedHandler(
const EventArgs& e);
800 bool listbox_VertScrollModeChangedHandler(
const EventArgs& e);
801 bool listbox_HorzScrollModeChangedHandler(
const EventArgs& e);
961 void addComboboxProperties(
void);
966 #if defined(_MSC_VER)
967 # pragma warning(pop)
970 #endif // end of guard _CEGUICombobox_h_