view include/gui/widgets/anime_button.h @ 259:0362f3c4534c

widgets/graph: improve drawing code
author Paper <paper@paper.us.eu.org>
date Mon, 01 Apr 2024 18:11:15 -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