20#include "bitmapimage.h"
46 void paint(
const QPointF& updatedPoint, std::function<
void(BucketState,
int,
int)> progress);
61 bool allowContinuousFill(
const QPoint& checkPoint,
const QRgb& checkColor)
const;
69 Layer* mTargetFillToLayer =
nullptr;
74 QRgb mBucketColor = 0;
75 QRgb mStartReferenceColor = 0;
81 int mTargetFillToLayerIndex = -1;
82 bool mFilledOnce =
false;
83 bool mUseDragToFill =
false;
bool canUseDragToFill(const QPoint &fillPoint, const QColor &bucketColor, const BitmapImage &referenceImage)
Determines whether fill to drag feature can be used.
bool allowFill(const QPoint &checkPoint, const QRgb &checkColor) const
Based on the various factors dependant on which tool properties are set, the result will:
void paint(const QPointF &updatedPoint, std::function< void(BucketState, int, int)> progress)
Will paint at the given point, given that it makes sense.