/* * mandellabel.h * * This file is covered by the LICENSE file in the root of this project. */ #ifndef MANDELLABEL_H #define MANDELLABEL_H #include #include "bigintmandelwidget.h" #include "mandel.h" class MandelLabel : public QLabel { Q_OBJECT const MandelSettings * const settings; int draw_progress; QPoint zoom_rect_center; protected: void paintEvent(QPaintEvent *event); void leaveEvent(QEvent *event); void mouseMoveEvent(QMouseEvent *event); public: explicit MandelLabel(BigintMandelWidget *parent = nullptr); inline int get_draw_progress() { return draw_progress; } inline void set_draw_progress(int draw_progress) { if (draw_progress == this->draw_progress) return; if (draw_progress == -1 || draw_progress > this->draw_progress) this->draw_progress = draw_progress; } }; #endif // MANDELLABEL_H