38 STD_VECTOR<CharacterDisplay*>
42 mCharacterEntries(entries),
46 if (entries !=
nullptr)
48 FOR_EACHP (STD_VECTOR<CharacterDisplay*>::iterator,
59 if (display !=
nullptr)
93 (*mCharacterEntries)[
mSelected]->setSelect(
false);
95 (*mCharacterEntries)[i]->setSelect(
true);
106 const int width = firtChar->
getWidth();
107 const int height = firtChar->
getHeight();
109 for (
size_t f = 0; f < sz; f ++,
x ++)
116 (*mCharacterEntries)[f]->setPosition(
x * width,
y);
virtual void add(Widget *const widget)
CharSelectDialog * mParent
void action(const ActionEvent &event)
CharacterViewNormal(CharSelectDialog *const widget, std::vector< CharacterDisplay * > *const entries, const int padding)
std::vector< CharacterDisplay * > * mCharacterEntries
int getIntValue(const std::string &key) const
#define FOR_EACHP(type, iter, array)