Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/plasma.h
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
---|---|---|---|---|---|
275 | 275 | | |||
276 | /** | 276 | /** | ||
277 | * Description on how draw a background for the applet | 277 | * Description on how draw a background for the applet | ||
278 | */ | 278 | */ | ||
279 | enum BackgroundHints { | 279 | enum BackgroundHints { | ||
280 | NoBackground = 0, /**< Not drawing a background under the applet, the applet has its own implementation */ | 280 | NoBackground = 0, /**< Not drawing a background under the applet, the applet has its own implementation */ | ||
281 | StandardBackground = 1, /**< The standard background from the theme is drawn */ | 281 | StandardBackground = 1, /**< The standard background from the theme is drawn */ | ||
282 | TranslucentBackground = 2, /**< An alternate version of the background is drawn, usually more translucent */ | 282 | TranslucentBackground = 2, /**< An alternate version of the background is drawn, usually more translucent */ | ||
283 | ShadowBackground = 4, /**< The applet won't have a svg background but a drop shadow of its content done via a shader */ | ||||
284 | ConfigurableBackground = 8, /** If the hint has this flag, the user is able to configure this background */ | ||||
davidedmundson: the user shouldn't have the possibility to.....
| |||||
283 | DefaultBackground = StandardBackground /**< Default settings: both standard background */ | 285 | DefaultBackground = StandardBackground /**< Default settings: both standard background */ | ||
DefaultBackground should be StandardBackground|ImmutableBackground strictly speaking should be bc, as existing binaries shouldn't fail with it (tough just believe the default is a different one which can give problems as before the user code was checking for hints === something rather than hints&something So probably this flag based approach isn't much usable and different api may be needed? mart: DefaultBackground should be StandardBackground|ImmutableBackground
in order to have this… | |||||
284 | }; | 286 | }; | ||
285 | Q_ENUM(BackgroundHints) | 287 | Q_ENUM(BackgroundHints) | ||
288 | //TODO KF6: BackgroundHint and BackgroundHints | ||||
289 | Q_DECLARE_FLAGS(BackgroundFlags, BackgroundHints) | ||||
286 | 290 | | |||
287 | private: | 291 | private: | ||
288 | Types(QObject *parent = nullptr); | 292 | Types(QObject *parent = nullptr); | ||
289 | }; | 293 | }; | ||
290 | 294 | | |||
291 | /** | 295 | /** | ||
292 | * Converts a location to a direction. Handy for figuring out which way to send a popup based on | 296 | * Converts a location to a direction. Handy for figuring out which way to send a popup based on | ||
293 | * location or to point arrows and other directional items. | 297 | * location or to point arrows and other directional items. | ||
Show All 12 Lines | |||||
306 | **/ | 310 | **/ | ||
307 | PLASMA_EXPORT Types::Direction locationToInverseDirection(Types::Location location); | 311 | PLASMA_EXPORT Types::Direction locationToInverseDirection(Types::Location location); | ||
308 | 312 | | |||
309 | } // Plasma namespace | 313 | } // Plasma namespace | ||
310 | 314 | | |||
311 | Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Types::Constraints) | 315 | Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Types::Constraints) | ||
312 | Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Types::Flip) | 316 | Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Types::Flip) | ||
313 | Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Types::ComponentTypes) | 317 | Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Types::ComponentTypes) | ||
314 | 318 | Q_DECLARE_OPERATORS_FOR_FLAGS(Plasma::Types::BackgroundFlags) | |||
315 | #endif // multiple inclusion guard | 319 | #endif // multiple inclusion guard |
the user shouldn't have the possibility to.....