diff options
author | simonb <simonb> | 2007-01-07 11:55:14 (GMT) |
---|---|---|
committer | simonb <simonb> | 2007-01-07 11:55:14 (GMT) |
commit | 1cc7b60aa2c2e7a26f9ff6f1461ca0b8a97be8de (patch) | |
tree | 1de2b149b23e589a36c81bd2aa51092db7b6e190 /src/FbWinFrame.hh | |
parent | cfd33dd7a8f392253d8af9f418d86dc3083fc27d (diff) | |
download | fluxbox-1cc7b60aa2c2e7a26f9ff6f1461ca0b8a97be8de.zip fluxbox-1cc7b60aa2c2e7a26f9ff6f1461ca0b8a97be8de.tar.bz2 |
per-window transparency, including apps and menu support, plus some
infrastructure and related changes. Thanks for original patch from
Julien Trolet, dmxen at sourceforge dot net
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r-- | src/FbWinFrame.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh index 26076ed..182add4 100644 --- a/src/FbWinFrame.hh +++ b/src/FbWinFrame.hh | |||
@@ -127,6 +127,13 @@ public: | |||
127 | bool setTabMode(TabMode tabmode); | 127 | bool setTabMode(TabMode tabmode); |
128 | inline void updateTabProperties() { alignTabs(); } | 128 | inline void updateTabProperties() { alignTabs(); } |
129 | 129 | ||
130 | /// Alpha settings | ||
131 | void setAlpha(bool focused, unsigned char value); | ||
132 | unsigned char getAlpha(bool focused) const; | ||
133 | |||
134 | void setUseDefaultAlpha(bool use_default); | ||
135 | bool getUseDefaultAlpha() const { return m_use_default_alpha; } | ||
136 | |||
130 | /// add a button to the left of the label | 137 | /// add a button to the left of the label |
131 | void addLeftButton(FbTk::Button *btn); | 138 | void addLeftButton(FbTk::Button *btn); |
132 | /// add a button to the right of the label | 139 | /// add a button to the right of the label |
@@ -322,6 +329,8 @@ private: | |||
322 | bool m_use_handle; ///< if we should use handle | 329 | bool m_use_handle; ///< if we should use handle |
323 | bool m_focused; ///< focused/unfocused mode | 330 | bool m_focused; ///< focused/unfocused mode |
324 | bool m_visible; ///< if we are currently showing | 331 | bool m_visible; ///< if we are currently showing |
332 | unsigned char m_use_default_alpha; | ||
333 | ///< do we use screen or window alpha settings ? (0 = window, 1 = default, 2 = default and window never set) | ||
325 | 334 | ||
326 | /** | 335 | /** |
327 | @name pixmaps and colors for rendering | 336 | @name pixmaps and colors for rendering |
@@ -377,6 +386,8 @@ private: | |||
377 | unsigned int m_width_before_shade, ///< width before shade, so we can restore it when we unshade | 386 | unsigned int m_width_before_shade, ///< width before shade, so we can restore it when we unshade |
378 | m_height_before_shade; ///< height before shade, so we can restore it when we unshade | 387 | m_height_before_shade; ///< height before shade, so we can restore it when we unshade |
379 | bool m_shaded; ///< wheter we're shaded or not | 388 | bool m_shaded; ///< wheter we're shaded or not |
389 | unsigned char m_focused_alpha; ///< focused alpha value | ||
390 | unsigned char m_unfocused_alpha; ///< unfocused alpha value | ||
380 | unsigned int m_double_click_time; ///< the time period that's considerd to be a double click | 391 | unsigned int m_double_click_time; ///< the time period that's considerd to be a double click |
381 | struct MouseButtonAction { | 392 | struct MouseButtonAction { |
382 | FbTk::RefCount<FbTk::Command> click; ///< what to do when we release mouse button | 393 | FbTk::RefCount<FbTk::Command> click; ///< what to do when we release mouse button |