![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Chapter006_Zara_F746NG
Dependencies: F746_GUI SRF08 Array_Matrix TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG SDFileSystem_Warning_Fixed FrequencyResponseDrawer F746_SAI_IO
Diff: MyClasses_Functions/FileSelectorWav.hpp
- Revision:
- 5:3e8ca1ed31a1
- Parent:
- 0:04b43b777fae
- Child:
- 11:769d986c10fa
--- a/MyClasses_Functions/FileSelectorWav.hpp Mon Apr 25 13:01:25 2016 +0000 +++ b/MyClasses_Functions/FileSelectorWav.hpp Sun May 01 02:45:17 2016 +0000 @@ -120,19 +120,27 @@ if (sort) std::sort(sortedFileNames_, sortedFileNames_+fileCount_); - Erase(MAX_NAME_LENGTH_*((sFONT *)(&Font16))->Width, 270-Y_); +//// Erase(MAX_NAME_LENGTH_*((sFONT *)(&Font16))->Width, 270-Y_); + Erase(X_, 0, MAX_NAME_LENGTH_*((sFONT *)(&Font16))->Width, 288); rect_->DrawAll(); for (int n=0; n<fileCount_; n++) fileNameLabels_[n]->Draw(GetFileNameNoExt(n)); } - +/* void Erase(uint16_t width, uint16_t height, uint32_t color = GuiBase::ENUM_BACK) { lcd_->SetTextColor(color); lcd_->FillRect(X_, Y_, width, height); } +*/ + void Erase(uint16_t x, uint16_t y, uint16_t width, uint16_t height, + uint32_t color = GuiBase::ENUM_BACK) + { + lcd_->SetTextColor(color); + lcd_->FillRect(x, y, width, height); + } private: const uint8_t X_, Y_, W_H_, V_L_; const int MAX_FILES_;