19#ifndef KIS_FILL_PAINTER_H_
20#define KIS_FILL_PAINTER_H_
24#include "kis_meta_registry.h"
26#include "kis_colorspace_factory_registry.h"
27#include "kis_painter.h"
29#include <koffice_export.h>
58 void eraseRect(TQ_INT32 x1, TQ_INT32 y1, TQ_INT32 w, TQ_INT32 h);
67 void fillRect(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h, const KisColor& c);
86 void fillRect(TQ_INT32 x1, TQ_INT32 y1, TQ_INT32 w, TQ_INT32 h, KisPattern * pattern);
145 void genericFillStart( int startX, int startY);
146 void genericFillEnd(KisPaintDeviceSP filled);
148 KisSelectionSP m_selection;
152 int m_width, m_height;
155 bool m_careForSelection;
163 fillRect(x, y, w, h, c, OPACITY_OPAQUE);
169 fillRect(rc.x(), rc.y(), rc.width(), rc.height(), c, OPACITY_OPAQUE);
175 KisColorSpace * cs = KisMetaRegistry::instance()->csRegistry()->getRGB8();
177 fillRect(x1, y1, w, h, c, OPACITY_TRANSPARENT);
183 KisColorSpace * cs = KisMetaRegistry::instance()->csRegistry()->getRGB8();
185 fillRect(rc.x(), rc.y(), rc.width(), rc.height(), c, OPACITY_TRANSPARENT);
203 m_threshold = threshold;
A colorspace is the definition of a certain color model in Chalk.
A KisColor describes a color in a certain colorspace.
bool careForSelection() const If true, floodfill doesn't fill outside the selected area of a layer.
void setWidth(int w) Sets the width of the layer.
void fillPattern(int startX, int startY) Fills the enclosed area around the point with the set pattern.
KisFillPainter() Construct an empty painter.
void setHeight(int h) Sets the height of the layer.
void setFillThreshold(int threshold) Set the threshold for floodfill.
void setSampleMerged(bool set) Set sample merged.
KisSelectionSP createFloodSelection(int startX, int startY) Returns a selection mask for the floodfill starting at the specified position.
void setFuzzyFill(bool set) Sets the fuzzyfill parameter.
int fillThreshold() const Returns the fill threshold, see setFillThreshold for details.
void setCareForSelection(bool set) Set caring for selection.
void eraseRect(TQ_INT32 x1, TQ_INT32 y1, TQ_INT32 w, TQ_INT32 h) Fill a rectangle with black transparent pixels (0, 0, 0, 0 for RGBA).
bool sampleMerged() const If sample merged is set to true, the paint device will get the bounds of the floodfill from the compl...
bool fuzzyFill() const If true, the floodfill will be fuzzy.
void fillRect(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h, const KisColor &c) Fill a rectangle with a certain color.
KisPattern * pattern() const Returns the currently set pattern.
KisPaintDeviceSP device() const Returns the current paint device.
TQ_UINT8 opacity() const Returns the opacity that is used in painting.
KisColor fillColor() const Returns the current fill color.
KisPainter() Construct painter without a device.
|