#include <style.h>
Public Types | |
using | ItemRenderer = std::function< void(int index, const T &item, bool is_selected)> |
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 = std::function<void(int index, const T &item, bool is_selected)> |
|
inline |
|
inline |
Definition at line 125 of file style.h.
References yaze::gui::MultiSelect< T >::items_.
|
inline |
Definition at line 128 of file style.h.
References yaze::gui::MultiSelect< T >::item_renderer_.
|
inline |
Definition at line 131 of file style.h.
References yaze::gui::MultiSelect< T >::height_in_font_units_.
|
inline |
Definition at line 136 of file style.h.
References yaze::gui::MultiSelect< T >::child_flags_.
|
inline |
Definition at line 139 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 178 of file style.h.
References yaze::gui::MultiSelect< T >::items_, and yaze::gui::MultiSelect< T >::selection_.
|
inline |
Definition at line 189 of file style.h.
References yaze::gui::MultiSelect< T >::selection_.
|
private |
Definition at line 192 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 193 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 194 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 195 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 196 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::SetItemRenderer(), and yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 197 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::SetHeight(), and yaze::gui::MultiSelect< T >::Update().
|
private |
Definition at line 198 of file style.h.
Referenced by yaze::gui::MultiSelect< T >::SetChildFlags(), and yaze::gui::MultiSelect< T >::Update().