34 STD_VECTOR<CharacterDisplay*>
42 mCharacterEntries(entries)
45 if (entries !=
nullptr)
47 FOR_EACHP (STD_VECTOR<CharacterDisplay*>::iterator,
108 const int x = (w - firtChar->
getWidth()) / 2;
109 const int y = (h - firtChar->
getHeight()) / 2;
110 FOR_EACHP (STD_VECTOR<CharacterDisplay*>::iterator,
113 (*it)->setPosition(
x,
y);
116 const int y3 = y2 - 55;
124 const std::string &eventId =
event.getId();
125 if (eventId ==
"next")
131 else if (eventId ==
"prev")
virtual void add(Widget *const widget)
CharSelectDialog * mParent
CharacterDisplay * mSelectedEntry
std::vector< CharacterDisplay * > * mCharacterEntries
CharacterViewSmall(CharSelectDialog *const widget, std::vector< CharacterDisplay * > *const entries, const int padding)
void action(const ActionEvent &event)
void setCaption(const std::string &caption)
#define FOR_EACHP(type, iter, array)
std::string strprintf(const char *const format,...)