11#include "kritaflake_export.h"
106 KRITAFLAKE_EXPORT QGradient *
cloneGradient(
const QGradient *gradient);
108 KRITAFLAKE_EXPORT QGradient *
mergeGradient(
const QGradient *coordsSource,
const QGradient *fillSource);
118 KRITAFLAKE_EXPORT QPointF
toRelative(
const QPointF &absolute,
const QSizeF &size);
128 KRITAFLAKE_EXPORT QPointF
toAbsolute(
const QPointF &relative,
const QSizeF &size);
133 const QPointF &absoluteStillPoint,
134 const QTransform &postScalingCoveringTransform);
137 const QPointF &absoluteStillPoint);
141 const QPointF &absoluteStillPoint,
145 const QPointF &absoluteStillPoint,
147 bool usePostScaling,
const QTransform &postScalingCoveringTransform);
KRITAFLAKE_EXPORT QGradient * cloneGradient(const QGradient *gradient)
clones the given gradient
@ Unselected
return the first unselected on top.
@ Selected
return the first selected with the highest z-ordering (i.e. on top).
@ ShapeOnTop
return the shape highest z-ordering, regardless of selection.
@ NextUnselected
return the first unselected directly under a selected shape, or the top most one if nothing is select...
KRITAFLAKE_EXPORT QGradient * mergeGradient(const QGradient *coordsSource, const QGradient *fillSource)
KRITAFLAKE_EXPORT void resizeShape(KoShape *shape, qreal scaleX, qreal scaleY, const QPointF &absoluteStillPoint, bool useGlobalMode)
KRITAFLAKE_EXPORT QPointF toRelative(const QPointF &absolute, const QSizeF &size)
KRITAFLAKE_EXPORT void scaleShape(KoShape *shape, qreal scaleX, qreal scaleY, const QPointF &absoluteStillPoint, const QTransform &postScalingCoveringTransform)
KRITAFLAKE_EXPORT void scaleShapeGlobal(KoShape *shape, qreal scaleX, qreal scaleY, const QPointF &absoluteStillPoint)
SelectionType
the selection type for KoSelection::selectedObjects()
@ TopLevelSelection
Create a list, much like the StrippedSelection, but have the KoShapeGroup instead of all of its child...
@ StrippedSelection
Create a stripped list, without children if the container is also in the list.
@ FullSelection
Create a list of all user-shapes in the selection. This excludes KoShapeGroup grouping objects that m...
@ Background
the background / fill style is active
@ Foreground
the foreground / stroke style is active
KRITAFLAKE_EXPORT QPointF anchorToPoint(AnchorPosition anchor, const QRectF rect, bool *valid=0)
KRITAFLAKE_EXPORT QPointF toAbsolute(const QPointF &relative, const QSizeF &size)
KRITAFLAKE_EXPORT Qt::Orientation significantScaleOrientation(qreal scaleX, qreal scaleY)
KRITAFLAKE_EXPORT void resizeShapeCommon(KoShape *shape, qreal scaleX, qreal scaleY, const QPointF &absoluteStillPoint, bool useGlobalMode, bool usePostScaling, const QTransform &postScalingCoveringTransform)
SelectionHandle
Enum determining which handle is meant, used in KoInteractionTool.
@ BottomRightHandle
The handle that is at the bottom right of a selection.
@ BottomLeftHandle
The handle that is at the bottom left of a selection.
@ RightMiddleHandle
The handle that is at the right - center of a selection.
@ TopRightHandle
The handle that is at the top - right of a selection.
@ TopLeftHandle
The handle that is at the top left of a selection.
@ LeftMiddleHandle
The handle that is at the left center of a selection.
@ NoHandle
Value to indicate no handle.
@ TopMiddleHandle
The handle that is at the top - center of a selection.
@ BottomMiddleHandle
The handle that is at the bottom center of a selection.