30 #ifndef _CEGUICombobox_h_
31 #define _CEGUICombobox_h_
33 #include "CEGUIBase.h"
34 #include "CEGUIWindow.h"
35 #include "elements/CEGUIComboboxProperties.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
101 virtual bool isHit(
const Point& position)
const {
return false;}
112 bool getSingleClickEnabled(
void)
const;
122 bool isDropDownListVisible(
void)
const;
173 bool hasInputFocus(
void)
const;
184 bool isReadOnly(
void)
const;
203 bool isTextValid(
void)
const;
217 const String& getValidationString(
void)
const;
227 size_t getCaratIndex(
void)
const;
238 size_t getSelectionStartIndex(
void)
const;
249 size_t getSelectionEndIndex(
void)
const;
259 size_t getSelectionLength(
void)
const;
273 size_t getMaxTextLength(
void)
const;
286 size_t getItemCount(
void)
const;
312 ListboxItem* getListboxItemFromIndex(
size_t index)
const;
327 size_t getItemIndex(
const ListboxItem* item)
const;
337 bool isSortEnabled(
void)
const;
352 bool isItemSelected(
size_t index)
const;
382 bool isListboxItemInList(
const ListboxItem* item)
const;
393 bool isVertScrollbarAlwaysShown(
void)
const;
404 bool isHorzScrollbarAlwaysShown(
void)
const;
420 virtual void initialiseComponents(
void);
430 void showDropList(
void);
440 void hideDropList(
void);
454 void setSingleClickEnabled(
bool setting);
471 void setReadOnly(
bool setting);
488 void setValidationString(
const String& validation_string);
502 void setCaratIndex(
size_t carat_pos);
520 void setSelection(
size_t start_pos,
size_t end_pos);
537 void setMaxTextLength(
size_t max_len);
547 void activateEditbox(
void);
559 void resetList(
void);
617 void clearAllSelections(
void);
630 void setSortingEnabled(
bool setting);
644 void setShowVertScrollbar(
bool setting);
658 void setShowHorzScrollbar(
bool setting);
680 void setItemSelectState(
ListboxItem* item,
bool state);
702 void setItemSelectState(
size_t item_index,
bool state);
717 void handleUpdatedListItemData(
void);
745 bool button_PressHandler(
const EventArgs& e);
752 bool droplist_SelectionAcceptedHandler(
const EventArgs& e);
759 bool droplist_HiddenHandler(
const EventArgs& e);
766 bool editbox_MouseDownHandler(
const EventArgs& e);
779 virtual bool testClassName_impl(
const String& class_name)
const
781 if (class_name==
"Combobox")
return true;
789 bool editbox_ReadOnlyChangedHandler(
const EventArgs& e);
790 bool editbox_ValidationStringChangedHandler(
const EventArgs& e);
791 bool editbox_MaximumTextLengthChangedHandler(
const EventArgs& e);
792 bool editbox_TextInvalidatedEventHandler(
const EventArgs& e);
793 bool editbox_InvalidEntryAttemptedHandler(
const EventArgs& e);
794 bool editbox_CaratMovedHandler(
const EventArgs& e);
795 bool editbox_TextSelectionChangedHandler(
const EventArgs& e);
796 bool editbox_EditboxFullEventHandler(
const EventArgs& e);
797 bool editbox_TextAcceptedEventHandler(
const EventArgs& e);
798 bool editbox_TextChangedEventHandler(
const EventArgs& e);
799 bool listbox_ListContentsChangedHandler(
const EventArgs& e);
800 bool listbox_ListSelectionChangedHandler(
const EventArgs& e);
801 bool listbox_SortModeChangedHandler(
const EventArgs& e);
802 bool listbox_VertScrollModeChangedHandler(
const EventArgs& e);
803 bool listbox_HorzScrollModeChangedHandler(
const EventArgs& e);
963 void addComboboxProperties(
void);
968 #if defined(_MSC_VER)
969 # pragma warning(pop)
972 #endif // end of guard _CEGUICombobox_h_