Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_tool_utils.h File Reference
#include <kis_types.h>
#include <kritaui_export.h>

Go to the source code of this file.

Classes

struct  KisToolUtils::ColorSamplerConfig
 
class  KisToolUtils::StandardBrushSizes
 

Namespaces

namespace  KisToolUtils
 

Enumerations

enum  KisToolUtils::ColorSamplerSource { KisToolUtils::SampleSourceImage = 0 , KisToolUtils::SampleSourceGroup , KisToolUtils::SampleSourceNode }
 

Functions

void KisToolUtils::bakeDefaultPixel (KisPaintDeviceSP clip, const QRect &rc)
 
KisImageSP KisToolUtils::buildImageForClipboard (KisImageSP srcImage, KisNodeList nodes)
 
bool KisToolUtils::clearImage (KisImageSP image, KisNodeList nodes, KisSelectionSP selection)
 
void KisToolUtils::ensureClipVisible (const QRect &imageBounds, KisPaintDeviceSP clip)
 
KisNodeSP KisToolUtils::findNode (KisNodeSP node, const QPoint &point, bool wholeGroup, bool editableOnly)
 
KisNodeList KisToolUtils::findNodes (KisNodeSP node, const QPoint &point, bool wholeGroup, bool includeGroups, bool editableOnly)
 
QString KisToolUtils::nodeEditableMessage (KisNodeSP node, bool blockedNoIndirectPainting=false)
 nodeEditableMessage
 
bool KRITAUI_EXPORT KisToolUtils::platformSupportsSetCursorPos ()
 
void KisToolUtils::recenterClip (KisPaintDeviceSP clip, const QPoint &newCenter)
 
bool KisToolUtils::sampleColor (KoColor &out_color, KisPaintDeviceSP dev, const QPoint &pos, KoColor const *const blendColor, int radius, int blend, bool pure)
 
bool KisToolUtils::selectShapeCrossLayer (KoCanvasBase *canvas, const QPointF &point, const QString &shapeType=QString(), bool skipCurrentShapes=true)
 selectShapeCrossLayer Tries to select a shape under the cursor regardless of which layer it is on, to do so, it will always select the layer first and then the shape.
 
void KRITAUI_EXPORT KisToolUtils::setCursorPos (const QPoint &point)
 
QPainterPath KisToolUtils::shapeHoverInfoCrossLayer (KoCanvasBase *canvas, const QPointF &point, QString &shapeType, bool *isHorizontal=nullptr, bool skipCurrentShapes=true)
 shapeHoverInfoCrossLayer get hover info of shapes on all layers.
 
void KRITAUI_EXPORT KisToolUtils::showBrushSizeFloatingMessage (KoCanvasBase *canvas, qreal size)
 
void KisToolUtils::trimDeviceForClipboard (KisImageSP image, KisPaintDeviceSP device, KisSelectionSP selection, bool makeSharpClip)