Changeset View
Changeset View
Standalone View
Standalone View
libs/image/brushengine/kis_paintop_utils.h
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 112 | if (currentDistance->needsTimingUpdate()) { | |||
---|---|---|---|---|---|
113 | op.updateTiming(pi2, *currentDistance); | 113 | op.updateTiming(pi2, *currentDistance); | ||
114 | } | 114 | } | ||
115 | } | 115 | } | ||
116 | 116 | | |||
117 | /** | 117 | /** | ||
118 | * A special class containing the previous position of the cursor for | 118 | * A special class containing the previous position of the cursor for | ||
119 | * the sake of painting the outline of the paint op. The main purpose | 119 | * the sake of painting the outline of the paint op. The main purpose | ||
120 | * of this class is to ensure that the saved point does not equal to | 120 | * of this class is to ensure that the saved point does not equal to | ||
121 | * the current one, which would cause a outline flicker. To echieve | 121 | * the current one, which would cause a outline flicker. To achieve | ||
122 | * this the class stores two previosly requested points instead of the | 122 | * this the class stores two previously requested points instead of the | ||
123 | * last one. | 123 | * last one. | ||
124 | */ | 124 | */ | ||
125 | class KRITAIMAGE_EXPORT PositionHistory | 125 | class KRITAIMAGE_EXPORT PositionHistory | ||
126 | { | 126 | { | ||
127 | public: | 127 | public: | ||
128 | /** | 128 | /** | ||
129 | * \return the previously used point, which is guaranteed not to | 129 | * \return the previously used point, which is guaranteed not to | ||
130 | * be equal to \p pt and updates the history if needed | 130 | * be equal to \p pt and updates the history if needed | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |