MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / GuiFastSelect

Method GuiFastSelect

src/components/GuiFastSelect.cpp:10–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8const int GuiFastSelect::SCROLLDELAY = 507;
9
10GuiFastSelect::GuiFastSelect(Window* window, GuiGameList* parent, TextListComponent<FileData*>* list, char startLetter, ThemeComponent * theme)
11 : GuiComponent(window), mParent(parent), mList(list), mTheme(theme)
12{
13 mLetterID = LETTERS.find(toupper(startLetter));
14 if(mLetterID == std::string::npos)
15 mLetterID = 0;
16
17 mScrollSound = mTheme->getSound("menuScroll");
18 mTextColor = mTheme->getColor("fastSelect");
19
20 mScrolling = false;
21 mScrollTimer = 0;
22 mScrollOffset = 0;
23
24 unsigned int sw = Renderer::getScreenWidth(), sh = Renderer::getScreenHeight();
25 mBox = new GuiBox(window, sw * 0.2f, sh * 0.2f, sw * 0.6f, sh * 0.6f);
26 mBox->setData(mTheme->getBoxData());
27}
28
29GuiFastSelect::~GuiFastSelect()
30{

Callers

nothing calls this directly

Calls 6

findMethod · 0.80
getColorMethod · 0.80
setDataMethod · 0.80
getBoxDataMethod · 0.80
getScreenWidthFunction · 0.50
getScreenHeightFunction · 0.50

Tested by

no test coverage detected