#include <style.h>
Public Types | |
| using | ItemRenderer |
Public Member Functions | |
| MultiSelect (const char *title="Selection", ImGuiMultiSelectFlags flags=ImGuiMultiSelectFlags_ClearOnEscape|ImGuiMultiSelectFlags_BoxSelect1d) | |
| void | SetItems (const std::vector< T > &items) |
| void | SetItemRenderer (ItemRenderer renderer) |
| void | SetHeight (float height_in_font_units=20.0f) |
| void | SetChildFlags (ImGuiChildFlags flags) |
| void | Update () |
| std::vector< int > | GetSelectedIndices () const |
| void | ClearSelection () |
Private Attributes | |
| const char * | title_ |
| ImGuiMultiSelectFlags | flags_ |
| ImGuiSelectionBasicStorage | selection_ |
| std::vector< T > | items_ |
| ItemRenderer | item_renderer_ |
| float | height_in_font_units_ = 20.0f |
| ImGuiChildFlags | child_flags_ |
| using yaze::gui::MultiSelect< T >::ItemRenderer |
|
inline |
|
inline |
Definition at line 127 of file style.h.
References yaze::gui::MultiSelect< T >::items_.
|
inline |
Definition at line 130 of file style.h.
References yaze::gui::MultiSelect< T >::item_renderer_.
|
inline |
Definition at line 133 of file style.h.
References yaze::gui::MultiSelect< T >::height_in_font_units_.
|
inline |
Definition at line 138 of file style.h.
References yaze::gui::MultiSelect< T >::child_flags_.
|
inline |
Definition at line 141 of file style.h.
References yaze::gui::MultiSelect< T >::child_flags_, yaze::gui::MultiSelect< T >::flags_, yaze::gui::MultiSelect< T >::height_in_font_units_, yaze::gui::MultiSelect< T >::item_renderer_, yaze::gui::MultiSelect< T >::items_, yaze::gui::MultiSelect< T >::selection_, and yaze::gui::MultiSelect< T >::title_.
|
inline |
Definition at line 180 of file style.h.
References yaze::gui::MultiSelect< T >::items_, and yaze::gui::MultiSelect< T >::selection_.
|
inline |
Definition at line 191 of file style.h.
References yaze::gui::MultiSelect< T >::selection_.
|
private |
Definition at line 194 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 195 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 196 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::ClearSelection(), yaze::gui::MultiSelect< T >::GetSelectedIndices(), and yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 197 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::GetSelectedIndices(), yaze::gui::MultiSelect< T >::SetItems(), and yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 198 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::SetItemRenderer(), and yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 199 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::SetHeight(), and yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 200 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::SetChildFlags(), and yaze::gui::MultiSelect< T >::Update().