view include/gui/widgets/anime_button.h @ 260:dd211ff68b36

pages/seasons: add initial functionality the menu doesn't work yet, but it's a good start
author Paper <paper@paper.us.eu.org>
date Wed, 03 Apr 2024 19:48:38 -0400
parents d14f8e0e40c3
children 3ec7804abf17
line wrap: on
line source

#ifndef __gui_widgets__anime_button_h
#define __gui_widgets__anime_button_h

#include <QFrame>

class QWidget;
class QLabel;

class Poster;
class ElidedLabel;

namespace TextWidgets {
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;
	QLabel* _title = nullptr;
	TextWidgets::LabelledParagraph* _info = nullptr;
	ElidedLabel* _synopsis = nullptr;
};

#endif // __gui_widgets__anime_button_h