MCPcopy Create free account
hub / github.com/bwapi/bwapi / clearList

Method clearList

bwapi/BWAPI/Source/BW/Dialog.cpp:747–763  ·  view source on GitHub ↗

----------------- CLEAR LIST --------------------

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

isListMethod · 0.95
removeListEntryMethod · 0.95
hideMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected