mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 14:26:06 +02:00
ComboBox API additions for minetest#13814
- Allow reliably detecting when the user opens a combobox. - Allow preventing comboboxes from opening. - Allow sending a combobox change event.
This commit is contained in:
@ -263,6 +263,10 @@ namespace irr
|
||||
//! A checkbox has changed its check state.
|
||||
EGET_CHECKBOX_CHANGED,
|
||||
|
||||
//! A listbox would like to open.
|
||||
/** You can prevent the listbox from opening by absorbing the event. */
|
||||
EGET_LISTBOX_OPENED,
|
||||
|
||||
//! A new item in a listbox was selected.
|
||||
/** NOTE: You also get this event currently when the same item was clicked again after more than 500 ms. */
|
||||
EGET_LISTBOX_CHANGED,
|
||||
|
@ -52,6 +52,10 @@ namespace gui
|
||||
//! Sets the selected item. Set this to -1 if no item should be selected
|
||||
virtual void setSelected(s32 idx) = 0;
|
||||
|
||||
//! Sets the selected item and emits a change event.
|
||||
/** Set this to -1 if no item should be selected */
|
||||
virtual void setAndSendSelected(s32 idx) = 0;
|
||||
|
||||
//! Sets text justification of the text area
|
||||
/** \param horizontal: EGUIA_UPPERLEFT for left justified (default),
|
||||
EGUIA_LOWERRIGHT for right justified, or EGUIA_CENTER for centered text.
|
||||
|
Reference in New Issue
Block a user