Krita Source Code Documentation
Loading...
Searching...
No Matches
StrokeSelectionOptions Struct Reference

#include <kis_dlg_stroke_selection_properties.h>

Public Member Functions

KisToolShapeUtils::FillStyle fillStyle () const
 
void lock ()
 
 StrokeSelectionOptions ()
 

Public Attributes

bool brushSelected {false}
 
KoColor color
 
ColorFillSource colorFillSource {ColorFillSource::None}
 
ColorLineSource colorLineSource {ColorLineSource::FGColor}
 
KoColor customColor
 
KoColor fillColor
 
int lineDimension {1}
 
int lineSize {1}
 

Detailed Description

Definition at line 40 of file kis_dlg_stroke_selection_properties.h.

Constructor & Destructor Documentation

◆ StrokeSelectionOptions()

StrokeSelectionOptions::StrokeSelectionOptions ( )

Definition at line 338 of file kis_dlg_stroke_selection_properties.cpp.

339{
340 color.fromQColor(Qt::black);
341 fillColor.fromQColor(Qt::black);
342 customColor.fromQColor(Qt::black);
343}
void fromQColor(const QColor &c)
Convenient function for converting from a QColor.
Definition KoColor.cpp:213

Member Function Documentation

◆ fillStyle()

KisToolShapeUtils::FillStyle StrokeSelectionOptions::fillStyle ( ) const

Definition at line 345 of file kis_dlg_stroke_selection_properties.cpp.

346{
347 using namespace KisToolShapeUtils;
348
349 ColorFillSource tempColor = static_cast<ColorFillSource>(colorFillSource);
350 FillStyle style = FillStyleNone;
351
352 switch (tempColor) {
355 break;
358 break;
361 break;
363 style = FillStyleNone;
364 break;
367 break;
368 }
369 return style;
370}

References BGColor, colorFillSource, CustomColor, FGColor, None, and PaintColor.

◆ lock()

void StrokeSelectionOptions::lock ( )

Member Data Documentation

◆ brushSelected

bool StrokeSelectionOptions::brushSelected {false}

Definition at line 45 of file kis_dlg_stroke_selection_properties.h.

45{false};

◆ color

KoColor StrokeSelectionOptions::color

Definition at line 49 of file kis_dlg_stroke_selection_properties.h.

◆ colorFillSource

ColorFillSource StrokeSelectionOptions::colorFillSource {ColorFillSource::None}

◆ colorLineSource

ColorLineSource StrokeSelectionOptions::colorLineSource {ColorLineSource::FGColor}

◆ customColor

KoColor StrokeSelectionOptions::customColor

Definition at line 51 of file kis_dlg_stroke_selection_properties.h.

◆ fillColor

KoColor StrokeSelectionOptions::fillColor

Definition at line 50 of file kis_dlg_stroke_selection_properties.h.

◆ lineDimension

int StrokeSelectionOptions::lineDimension {1}

Definition at line 48 of file kis_dlg_stroke_selection_properties.h.

48{1};

◆ lineSize

int StrokeSelectionOptions::lineSize {1}

Definition at line 44 of file kis_dlg_stroke_selection_properties.h.

44{1};

The documentation for this struct was generated from the following files: