summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCards/Card.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibCards/Card.h')
-rw-r--r--Userland/Libraries/LibCards/Card.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Libraries/LibCards/Card.h b/Userland/Libraries/LibCards/Card.h
index 5cfd9d53cc..72101ff0af 100644
--- a/Userland/Libraries/LibCards/Card.h
+++ b/Userland/Libraries/LibCards/Card.h
@@ -104,13 +104,12 @@ public:
void set_moving(bool moving) { m_moving = moving; }
void set_upside_down(bool upside_down) { m_upside_down = upside_down; }
void set_inverted(bool inverted) { m_inverted = inverted; }
- void set_highlighted(bool highlighted) { m_highlighted = highlighted; }
void save_old_position();
- void paint(GUI::Painter&) const;
+ void paint(GUI::Painter&, bool highlighted = false) const;
void clear(GUI::Painter&, Color background_color) const;
- void clear_and_paint(GUI::Painter& painter, Color background_color);
+ void clear_and_paint(GUI::Painter& painter, Color background_color, bool highlighted);
private:
Card(Suit, Rank);
@@ -123,7 +122,6 @@ private:
bool m_moving { false };
bool m_upside_down { false };
bool m_inverted { false };
- bool m_highlighted { false };
};
enum class Shuffle {