diff options
Diffstat (limited to 'src/gui/skin.h')
-rw-r--r-- | src/gui/skin.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/gui/skin.h b/src/gui/skin.h index c56072d3..5f612c26 100644 --- a/src/gui/skin.h +++ b/src/gui/skin.h @@ -82,7 +82,7 @@ class Skin /** * Updates the alpha value of the skin */ - void updateAlpha(); + void updateAlpha(float minimumOpacityAllowed = 0.0f); int instances; @@ -95,7 +95,7 @@ class Skin Image *mStickyImageDown; /**< Sticky Button Image */ }; -class SkinLoader +class SkinLoader { public: static SkinLoader *instance(); @@ -112,6 +112,18 @@ class SkinLoader */ void updateAlpha(); + /** + * Get the minimum opacity allowed to skins. + */ + float getMinimumOpacity() + { return mMinimumOpacity; } + + /** + * Set the minimum opacity allowed to skins. + * Set a negative value to free the minimum allowed. + */ + void setMinimumOpacity(float minimumOpacity); + private: SkinLoader(); ~SkinLoader(); @@ -130,6 +142,12 @@ class SkinLoader ConfigListener *mSkinConfigListener; static SkinLoader *mInstance; + + /** + * Tells if the current skins opacity + * should not get less than the given value + */ + float mMinimumOpacity; }; #endif |