luna engine
software engine
Loading...
Searching...
No Matches
luna::itemList Struct Reference

#include <baseComponents.h>

Collaboration diagram for luna::itemList:

Public Types

enum  iconMode { ICON_MODE_TOP , ICON_MODE_LEFT }
 
enum  selectMode { SELECT_SINGLE , SELECT_MULTI }
 

Public Member Functions

 itemList ()=default
 
 itemList (const itemList &)=default
 

Public Attributes

std::vector< itemitems
 
std::vector< int > separators
 
std::unordered_set< int > selected
 
std::string searchString
 
selectMode selectMode = SELECT_SINGLE
 
iconMode iconMode = ICON_MODE_LEFT
 
int current = -1
 
int ensureSelectedVisible = 0
 
int deferSelectSingle = -1
 
bool shapeChanged = false
 
bool allowRmbSelect = false
 
bool allowReselect = false
 
int currentColumns = 1
 
ref< renderer::fontfont
 
std::string filePath
 

Member Enumeration Documentation

◆ iconMode

Enumerator
ICON_MODE_TOP 
ICON_MODE_LEFT 

◆ selectMode

Enumerator
SELECT_SINGLE 
SELECT_MULTI 

Constructor & Destructor Documentation

◆ itemList() [1/2]

luna::itemList::itemList ( )
default

◆ itemList() [2/2]

luna::itemList::itemList ( const itemList )
default

Member Data Documentation

◆ allowReselect

bool luna::itemList::allowReselect = false

◆ allowRmbSelect

bool luna::itemList::allowRmbSelect = false

◆ current

int luna::itemList::current = -1

◆ currentColumns

int luna::itemList::currentColumns = 1

◆ deferSelectSingle

int luna::itemList::deferSelectSingle = -1

◆ ensureSelectedVisible

int luna::itemList::ensureSelectedVisible = 0

◆ filePath

std::string luna::itemList::filePath

◆ font

ref<renderer::font> luna::itemList::font

◆ iconMode

◆ items

std::vector<item> luna::itemList::items

◆ searchString

std::string luna::itemList::searchString

◆ selected

std::unordered_set<int> luna::itemList::selected

◆ selectMode

◆ separators

std::vector<int> luna::itemList::separators

◆ shapeChanged

bool luna::itemList::shapeChanged = false

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