----------------- CLEAR LIST --------------------
| 745 | } |
| 746 | // ----------------- CLEAR LIST -------------------- |
| 747 | bool dialog::clearList() |
| 748 | { |
| 749 | if ( this && this->isList() ) |
| 750 | { |
| 751 | for ( int i = 255; i >= 0; i-- ) |
| 752 | this->removeListEntry(static_cast<u8>(i)); |
| 753 | dialog *scroll = this->u.list.pScrlBar; |
| 754 | if ( scroll ) |
| 755 | { |
| 756 | scroll->u.scroll.nMax = scroll->u.scroll.nMin; |
| 757 | scroll->hide(); |
| 758 | scroll->update(); |
| 759 | } |
| 760 | return true; |
| 761 | } |
| 762 | return false; |
| 763 | } |
| 764 | // -------------- GET LIST COUNT ------------------- |
| 765 | u8 dialog::getListCount() const |
| 766 | { |
nothing calls this directly
no test coverage detected