view 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 source

#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