Mercurial > minori
diff include/gui/widgets/anime_button.h @ 253:b3549da699a6
*: ooooh! stupid big commit!
oops
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 06 Feb 2024 16:56:32 -0500 |
parents | |
children | d14f8e0e40c3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/gui/widgets/anime_button.h Tue Feb 06 16:56:32 2024 -0500 @@ -0,0 +1,33 @@ +#ifndef __gui_widgets__anime_button_h +#define __gui_widgets__anime_button_h + +#include <QFrame> + +class QWidget; + +class Poster; +class ElidedLabel; + +namespace TextWidgets { +class Line; +class LabelledParagraph; +} + +namespace Anime { +class Anime; +} + +class AnimeButton : public QFrame { +public: + AnimeButton(QWidget* parent = nullptr); + AnimeButton(const Anime::Anime& anime, QWidget* parent = nullptr); + void SetAnime(const Anime::Anime& anime); + +protected: + Poster* _poster = nullptr; + TextWidgets::Line* _title = nullptr; + TextWidgets::LabelledParagraph* _info = nullptr; + ElidedLabel* _synopsis = nullptr; +}; + +#endif // __gui_widgets__anime_button_h \ No newline at end of file