diff options
Diffstat (limited to 'src/FbTk/Transparent.hh')
-rw-r--r-- | src/FbTk/Transparent.hh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/FbTk/Transparent.hh b/src/FbTk/Transparent.hh index 8e9d9b9..a0c689e 100644 --- a/src/FbTk/Transparent.hh +++ b/src/FbTk/Transparent.hh | |||
@@ -29,6 +29,12 @@ namespace FbTk { | |||
29 | /// renders to drawable together with an alpha mask | 29 | /// renders to drawable together with an alpha mask |
30 | class Transparent { | 30 | class Transparent { |
31 | public: | 31 | public: |
32 | |||
33 | static bool haveComposite(bool for_real = false); | ||
34 | static bool haveRender(); | ||
35 | static void usePseudoTransparent(bool force); | ||
36 | |||
37 | |||
32 | Transparent(Drawable source, Drawable dest, int alpha, int screen_num); | 38 | Transparent(Drawable source, Drawable dest, int alpha, int screen_num); |
33 | ~Transparent(); | 39 | ~Transparent(); |
34 | /// sets alpha value | 40 | /// sets alpha value |
@@ -49,9 +55,6 @@ public: | |||
49 | Drawable dest() const { return m_dest; } | 55 | Drawable dest() const { return m_dest; } |
50 | Drawable source() const { return m_source; } | 56 | Drawable source() const { return m_source; } |
51 | 57 | ||
52 | static bool haveComposite(bool for_real = false); | ||
53 | static bool haveRender() { if (!s_init) init(); return s_render; } | ||
54 | static void usePseudoTransparent(bool force); | ||
55 | 58 | ||
56 | private: | 59 | private: |
57 | void freeAlpha(); | 60 | void freeAlpha(); |
@@ -61,12 +64,6 @@ private: | |||
61 | unsigned long m_dest_pic; | 64 | unsigned long m_dest_pic; |
62 | Drawable m_source, m_dest; | 65 | Drawable m_source, m_dest; |
63 | unsigned char m_alpha; | 66 | unsigned char m_alpha; |
64 | |||
65 | static bool s_init; | ||
66 | static bool s_render; ///< wheter we have RENDER support | ||
67 | static bool s_composite; ///< wheter we have Composite support | ||
68 | static bool s_use_composite; ///< whether or not to use Composite | ||
69 | static void init(); | ||
70 | }; | 67 | }; |
71 | 68 | ||
72 | } // end namespace FbTk | 69 | } // end namespace FbTk |