]>
git.mar77i.info Git - bigintmandel/blob - mandellabel.h
5 * This file is covered by the LICENSE file in the root of this project.
13 #include "bigintmandelwidget.h"
16 class MandelLabel
: public QLabel
{
19 const MandelSettings
* const settings
;
21 QPoint zoom_rect_center
;
24 void paintEvent(QPaintEvent
*event
);
25 void leaveEvent(QEvent
*event
);
26 void mouseMoveEvent(QMouseEvent
*event
);
29 explicit MandelLabel(BigintMandelWidget
*parent
= nullptr);
30 inline int get_draw_progress() { return draw_progress
; }
31 inline void set_draw_progress(int draw_progress
) {
32 if (draw_progress
== this->draw_progress
)
34 if (draw_progress
== -1 || draw_progress
> this->draw_progress
)
35 this->draw_progress
= draw_progress
;
39 #endif // MANDELLABEL_H