MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DropdownClickedAt

Method DropdownClickedAt

Source/DropdownList.cpp:333–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333bool DropdownList::DropdownClickedAt(int x, int y)
334{
335 int index = GetItemIndexAt(x, y);
336 if (index >= 0 && index < mElements.size())
337 {
338 SetIndex(index, NextBufferTime(false), K(forceUpdate));
339 return true;
340 }
341 return false;
342}
343
344namespace
345{

Callers 1

OnClickedMethod · 0.80

Calls 2

NextBufferTimeFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected