Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.h
Show First 20 Lines • Show All 1208 Lines • ▼ Show 20 Line(s) | 810 | public: | |||
---|---|---|---|---|---|
1209 | * | 1209 | * | ||
1210 | * During the interactive window selection the cursor is turned into a crosshair cursor. | 1210 | * During the interactive window selection the cursor is turned into a crosshair cursor. | ||
1211 | * | 1211 | * | ||
1212 | * @param callback The function to invoke once the interactive window selection ends | 1212 | * @param callback The function to invoke once the interactive window selection ends | ||
1213 | * @since 5.9 | 1213 | * @since 5.9 | ||
1214 | **/ | 1214 | **/ | ||
1215 | virtual void startInteractiveWindowSelection(std::function<void(KWin::EffectWindow*)> callback) = 0; | 1215 | virtual void startInteractiveWindowSelection(std::function<void(KWin::EffectWindow*)> callback) = 0; | ||
1216 | 1216 | | |||
1217 | /** | ||||
1218 | * Starts an interactive position selection process. | ||||
1219 | * | ||||
1220 | * Once the user selected a position on the screen the @p callback is invoked with | ||||
1221 | * the selected point as argument. In case the user cancels the interactive position selection | ||||
1222 | * or selecting a position is currently not possible (e.g. screen locked) the @p callback | ||||
1223 | * is invoked with a point at @c -1 as x and y argument. | ||||
1224 | * | ||||
1225 | * During the interactive window selection the cursor is turned into a crosshair cursor. | ||||
1226 | * | ||||
1227 | * @param callback The function to invoke once the interactive position selection ends | ||||
1228 | * @since 5.9 | ||||
1229 | **/ | ||||
1230 | virtual void startInteractivePositionSelection(std::function<void(const QPoint &)> callback) = 0; | ||||
1231 | | ||||
1217 | Q_SIGNALS: | 1232 | Q_SIGNALS: | ||
1218 | /** | 1233 | /** | ||
1219 | * Signal emitted when the current desktop changed. | 1234 | * Signal emitted when the current desktop changed. | ||
1220 | * @param oldDesktop The previously current desktop | 1235 | * @param oldDesktop The previously current desktop | ||
1221 | * @param newDesktop The new current desktop | 1236 | * @param newDesktop The new current desktop | ||
1222 | * @param with The window which is taken over to the new desktop, can be NULL | 1237 | * @param with The window which is taken over to the new desktop, can be NULL | ||
1223 | * @since 4.9 | 1238 | * @since 4.9 | ||
1224 | */ | 1239 | */ | ||
▲ Show 20 Lines • Show All 2125 Lines • Show Last 20 Lines |