invert field color after click

pull/23/head
JuanJakobo 2021-06-04 21:29:54 +02:00
parent 3e38b821db
commit 26cfff632d
2 changed files with 14 additions and 0 deletions

View File

@ -94,6 +94,13 @@ void ListView::drawEntry(int itemID)
{
FillAreaRect(_entries[itemID].getPosition(), WHITE);
_entries[itemID].draw(_items->at(itemID), _entryFont, _entryFontBold, _entryFontHeight);
updateEntry(itemID);
}
void ListView::invertEntryColor(int itemID)
{
InvertAreaBW(_entries[itemID].getPosition()->x, _entries[itemID].getPosition()->y, _entries[itemID].getPosition()->w, _entries[itemID].getPosition()->h);
updateEntry(itemID);
}
void ListView::drawEntries()

View File

@ -45,6 +45,13 @@ public:
*/
void drawEntry(int itemID);
/**
* inverts the color of an entry
*
* @param itemID the id of the item that shall be inverted
*/
void invertEntryColor(int itemID);
/**
* Iterates through the items and sends them to the listViewEntry Class for drawing
*/