invert field color after click
parent
3e38b821db
commit
26cfff632d
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue