Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_stroke_strategy_undo_command_based.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 63 | public: | |||
---|---|---|---|---|---|
71 | 71 | | |||
72 | void initStrokeCallback() override; | 72 | void initStrokeCallback() override; | ||
73 | void finishStrokeCallback() override; | 73 | void finishStrokeCallback() override; | ||
74 | void cancelStrokeCallback() override; | 74 | void cancelStrokeCallback() override; | ||
75 | void doStrokeCallback(KisStrokeJobData *data) override; | 75 | void doStrokeCallback(KisStrokeJobData *data) override; | ||
76 | 76 | | |||
77 | /** | 77 | /** | ||
78 | * Set extra data that will be assigned to the command | 78 | * Set extra data that will be assigned to the command | ||
79 | * represecting this action. Using extra data has the following | 79 | * representing this action. Using extra data has the following | ||
80 | * restrictions: | 80 | * restrictions: | ||
81 | * | 81 | * | ||
82 | * 1) The \p data must be set *before* the stroke has been started. | 82 | * 1) The \p data must be set *before* the stroke has been started. | ||
83 | * Setting the \p data after the stroke has been started with | 83 | * Setting the \p data after the stroke has been started with | ||
84 | * image->startStroke(strokeId) leads to an undefined behaviour. | 84 | * image->startStroke(strokeId) leads to an undefined behaviour. | ||
85 | * | 85 | * | ||
86 | * 2) \p data becomes owned by the strategy/command right after | 86 | * 2) \p data becomes owned by the strategy/command right after | ||
87 | * setting it. Don't try to change it afterwards. | 87 | * setting it. Don't try to change it afterwards. | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |