openMSX
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ExampleDualListBox Struct Reference

Public Member Functions

void MoveAll (int src, int dst)
 
void MoveSelected (int src, int dst)
 
void ApplySelectionRequests (ImGuiMultiSelectIO *ms_io, int side)
 
void SortItems (int n)
 
void Show ()
 

Static Public Member Functions

static int IMGUI_CDECL CompareItemsByValue (const void *lhs, const void *rhs)
 

Public Attributes

ImVector< ImGuiID > Items [2]
 
ImGuiSelectionBasicStorage Selections [2]
 
bool OptKeepSorted = true
 

Detailed Description

Definition at line 3078 of file imgui_demo.cc.

Member Function Documentation

◆ ApplySelectionRequests()

void ExampleDualListBox::ApplySelectionRequests ( ImGuiMultiSelectIO *  ms_io,
int  side 
)
inline

Definition at line 3110 of file imgui_demo.cc.

References Items, and Selections.

Referenced by Show().

◆ CompareItemsByValue()

static int IMGUI_CDECL ExampleDualListBox::CompareItemsByValue ( const void *  lhs,
const void *  rhs 
)
inlinestatic

Definition at line 3117 of file imgui_demo.cc.

Referenced by SortItems().

◆ MoveAll()

void ExampleDualListBox::MoveAll ( int  src,
int  dst 
)
inline

Definition at line 3084 of file imgui_demo.cc.

References Items, Selections, and SortItems().

Referenced by Show().

◆ MoveSelected()

void ExampleDualListBox::MoveSelected ( int  src,
int  dst 
)
inline

Definition at line 3094 of file imgui_demo.cc.

References Items, OptKeepSorted, Selections, and SortItems().

Referenced by Show().

◆ Show()

void ExampleDualListBox::Show ( )
inline

Definition at line 3127 of file imgui_demo.cc.

References ApplySelectionRequests(), Items, MoveAll(), MoveSelected(), and Selections.

◆ SortItems()

void ExampleDualListBox::SortItems ( int  n)
inline

Definition at line 3123 of file imgui_demo.cc.

References CompareItemsByValue(), and Items.

Referenced by MoveAll(), and MoveSelected().

Member Data Documentation

◆ Items

ImVector<ImGuiID> ExampleDualListBox::Items[2]

Definition at line 3080 of file imgui_demo.cc.

Referenced by ApplySelectionRequests(), MoveAll(), MoveSelected(), Show(), and SortItems().

◆ OptKeepSorted

bool ExampleDualListBox::OptKeepSorted = true

Definition at line 3082 of file imgui_demo.cc.

Referenced by MoveSelected().

◆ Selections

ImGuiSelectionBasicStorage ExampleDualListBox::Selections[2]

Definition at line 3081 of file imgui_demo.cc.

Referenced by ApplySelectionRequests(), MoveAll(), MoveSelected(), and Show().


The documentation for this struct was generated from the following file: