Changeset View
Changeset View
Standalone View
Standalone View
effects/screenshot/screenshot.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 57 | public Q_SLOTS: | |||
---|---|---|---|---|---|
82 | /** | 82 | /** | ||
83 | * Saves a screenshot of all screen into a file and returns the path to the file. | 83 | * Saves a screenshot of all screen into a file and returns the path to the file. | ||
84 | * Functionality requires hardware support, if not available a null string is returned. | 84 | * Functionality requires hardware support, if not available a null string is returned. | ||
85 | * @param captureCursor Whether to include the cursor in the image | 85 | * @param captureCursor Whether to include the cursor in the image | ||
86 | * @returns Path to stored screenshot, or null string in failure case. | 86 | * @returns Path to stored screenshot, or null string in failure case. | ||
87 | **/ | 87 | **/ | ||
88 | Q_SCRIPTABLE QString screenshotFullscreen(bool captureCursor = false); | 88 | Q_SCRIPTABLE QString screenshotFullscreen(bool captureCursor = false); | ||
89 | /** | 89 | /** | ||
90 | * Starts an interactive screenshot session. | 90 | * Takes a screenshot of all screens. | ||
91 | * | | |||
92 | * The user is asked to confirm that a screenshot is taken by having to actively | | |||
93 | * click and giving the possibility to cancel. | | |||
94 | * | | |||
95 | * Once the screenshot is taken it gets saved into the @p fd passed to the | 91 | * Once the screenshot is taken it gets saved into the @p fd passed to the | ||
96 | * method. It is intended to be used with a pipe, so that the invoking side can just | 92 | * method. It is intended to be used with a pipe, so that the invoking side can just | ||
97 | * read from the pipe. The image gets written into the fd using a QDataStream. | 93 | * read from the pipe. The image gets written into the fd using a QDataStream. | ||
98 | * | 94 | * | ||
99 | * @param fd File descriptor into which the screenshot should be saved | 95 | * @param fd File descriptor into which the screenshot should be saved | ||
100 | * @param captureCursor Whether to include the mouse cursor | 96 | * @param captureCursor Whether to include the mouse cursor | ||
101 | **/ | 97 | **/ | ||
102 | Q_SCRIPTABLE void screenshotFullscreen(QDBusUnixFileDescriptor fd, bool captureCursor = false); | 98 | Q_SCRIPTABLE void screenshotFullscreen(QDBusUnixFileDescriptor fd, bool captureCursor = false); | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |