| 575 | } |
| 576 | |
| 577 | void LTable_SetSelectedTo(struct LTable* w, int index) { |
| 578 | if (!w->rowsCount) return; |
| 579 | if (index >= w->rowsCount) index = w->rowsCount - 1; |
| 580 | if (index < 0) index = 0; |
| 581 | |
| 582 | String_Copy(w->selectedHash, <able_Get(index)->hash); |
| 583 | LTable_ShowSelected(w); |
| 584 | w->OnSelectedChanged(); |
| 585 | } |
| 586 | |
| 587 | void LTable_RowClick(struct LTable* w, int row) { |
| 588 | cc_uint64 now; |
no test coverage detected