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
 

Namespaces

namespace  KisToolUtils
 

Functions

bool KisToolUtils::clearImage (KisImageSP image, KisNodeList nodes, KisSelectionSP selection)
 
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)
 
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.