Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/tasktools.h
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | |||||
121 | /** | 121 | /** | ||
122 | * Given global coordinates, returns the geometry of the screen they are | 122 | * Given global coordinates, returns the geometry of the screen they are | ||
123 | * on, or the geometry of the screen they are closest to. | 123 | * on, or the geometry of the screen they are closest to. | ||
124 | * | 124 | * | ||
125 | * @param pos Coordinates in global space. | 125 | * @param pos Coordinates in global space. | ||
126 | * @return The geometry of the screen containing pos or closest to pos. | 126 | * @return The geometry of the screen containing pos or closest to pos. | ||
127 | */ | 127 | */ | ||
128 | TASKMANAGER_EXPORT QRect screenGeometry(const QPoint &pos); | 128 | TASKMANAGER_EXPORT QRect screenGeometry(const QPoint &pos); | ||
129 | | ||||
130 | /** | ||||
131 | * Attempts to run the application described by the AppData struct that | ||||
132 | * is passed in, optionally also handing the application a list of URLs | ||||
133 | * to open. | ||||
134 | * | ||||
135 | * @param appData An application data struct. | ||||
136 | * @param urls A list of URLs for the application to open. | ||||
137 | */ | ||||
138 | TASKMANAGER_EXPORT void runApp(const AppData &appData, | ||||
139 | const QList<QUrl> &urls = QList<QUrl>()); | ||||
129 | } | 140 | } | ||
130 | 141 | | |||
131 | #endif | 142 | #endif |