Changeset View
Changeset View
Standalone View
Standalone View
src/kicontheme.h
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
159 | * icon. | 159 | * icon. | ||
160 | * @return An absolute path to the file of the icon if it's found, QString() otherwise. | 160 | * @return An absolute path to the file of the icon if it's found, QString() otherwise. | ||
161 | * @see KIconLoader::isValid will return true, and false otherwise. | 161 | * @see KIconLoader::isValid will return true, and false otherwise. | ||
162 | */ | 162 | */ | ||
163 | QString iconPath(const QString &name, int size, KIconLoader::MatchType match) const; | 163 | QString iconPath(const QString &name, int size, KIconLoader::MatchType match) const; | ||
164 | 164 | | |||
165 | /** | 165 | /** | ||
166 | * Lookup an icon in the theme. | 166 | * Lookup an icon in the theme. | ||
167 | * @param name The name of the icon, with extension. | ||||
168 | * @param size The desired size of the icon. | ||||
169 | * @param match The matching mode. KIconLoader::MatchExact returns an icon | ||||
170 | * only if matches exactly. KIconLoader::MatchBest returns the best matching | ||||
171 | * icon. | ||||
172 | * @param scale The scale of the icon group. | ||||
173 | * @return An absolute path to the file of the icon if it's found, QString() otherwise. | ||||
174 | * @see KIconLoader::isValid will return true, and false otherwise. | ||||
175 | * @since 5.45 | ||||
176 | */ | ||||
177 | // TODO KF6 merge iconPath() with and without "scale" and move that argument after "size" | ||||
178 | QString iconPath(const QString &name, int size, KIconLoader::MatchType match, qreal scale) const; | ||||
179 | | ||||
180 | /** | ||||
181 | * Lookup an icon in the theme. | ||||
167 | * @param name The name of the icon, without extension. | 182 | * @param name The name of the icon, without extension. | ||
168 | * @param size The desired size of the icon. | 183 | * @param size The desired size of the icon. | ||
169 | * @param match The matching mode. KIconLoader::MatchExact returns an icon | 184 | * @param match The matching mode. KIconLoader::MatchExact returns an icon | ||
170 | * only if matches exactly. KIconLoader::MatchBest returns the best matching | 185 | * only if matches exactly. KIconLoader::MatchBest returns the best matching | ||
171 | * icon. | 186 | * icon. | ||
172 | * @return An absolute path to the file of the icon if it's found, QString() otherwise. | 187 | * @return An absolute path to the file of the icon if it's found, QString() otherwise. | ||
173 | * @see KIconLoader::isValid will return true, and false otherwise. | 188 | * @see KIconLoader::isValid will return true, and false otherwise. | ||
174 | * | 189 | * | ||
175 | * @since 5.22 | 190 | * @since 5.22 | ||
176 | */ | 191 | */ | ||
177 | QString iconPathByName(const QString &name, int size, KIconLoader::MatchType match) const; | 192 | QString iconPathByName(const QString &name, int size, KIconLoader::MatchType match) const; | ||
178 | 193 | | |||
179 | /** | 194 | /** | ||
195 | * Lookup an icon in the theme. | ||||
196 | * @param name The name of the icon, without extension. | ||||
197 | * @param size The desired size of the icon. | ||||
198 | * @param match The matching mode. KIconLoader::MatchExact returns an icon | ||||
199 | * only if matches exactly. KIconLoader::MatchBest returns the best matching | ||||
200 | * icon. | ||||
201 | * @param scale The scale of the icon group. | ||||
202 | * @return An absolute path to the file of the icon if it's found, QString() otherwise. | ||||
203 | * @see KIconLoader::isValid will return true, and false otherwise. | ||||
204 | * | ||||
205 | * @since 5.45 | ||||
206 | */ | ||||
207 | // TODO KF6 merge iconPathByName() with and without "scale" and move that argument after "size" | ||||
208 | QString iconPathByName(const QString &name, int size, KIconLoader::MatchType match, qreal scale) const; | ||||
209 | | ||||
210 | /** | ||||
180 | * Returns true if the theme has any icons for the given context. | 211 | * Returns true if the theme has any icons for the given context. | ||
181 | */ | 212 | */ | ||
182 | bool hasContext(KIconLoader::Context context) const; | 213 | bool hasContext(KIconLoader::Context context) const; | ||
183 | 214 | | |||
184 | /** | 215 | /** | ||
185 | * If true, this theme is made of SVG icons that will be colorized following the system | 216 | * If true, this theme is made of SVG icons that will be colorized following the system | ||
186 | * color scheme. This is necessary for monochrome themes that should look visible on both | 217 | * color scheme. This is necessary for monochrome themes that should look visible on both | ||
187 | * light and dark color schemes. | 218 | * light and dark color schemes. | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |