aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2007-01-07 11:55:14 (GMT)
committersimonb <simonb>2007-01-07 11:55:14 (GMT)
commit1cc7b60aa2c2e7a26f9ff6f1461ca0b8a97be8de (patch)
tree1de2b149b23e589a36c81bd2aa51092db7b6e190 /src/Window.hh
parentcfd33dd7a8f392253d8af9f418d86dc3083fc27d (diff)
downloadfluxbox_pavel-1cc7b60aa2c2e7a26f9ff6f1461ca0b8a97be8de.zip
fluxbox_pavel-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/Window.hh')
-rw-r--r--src/Window.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Window.hh b/src/Window.hh
index 142b451..429747f 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -201,6 +201,19 @@ public:
201 void hide(bool interrupt_moving); 201 void hide(bool interrupt_moving);
202 void iconify(); 202 void iconify();
203 void deiconify(bool reassoc = true, bool do_raise = true); 203 void deiconify(bool reassoc = true, bool do_raise = true);
204
205 // ------------------
206 // Per window transparency addons
207 unsigned char getFocusedAlpha() const { return frame().getAlpha(true); }
208 unsigned char getUnfocusedAlpha() const { return frame().getAlpha(false); }
209 void setFocusedAlpha(unsigned char alpha) { frame().setAlpha(true, alpha); }
210 void setUnfocusedAlpha(unsigned char alpha) { frame().setAlpha(false, alpha); }
211 void updateAlpha(bool focused, unsigned char alpha) { frame().setAlpha(focused, alpha); }
212
213 bool getUseDefaultAlpha() const { return frame().getUseDefaultAlpha(); }
214 void setUseDefaultAlpha(bool default_alpha) { frame().setUseDefaultAlpha(default_alpha); }
215 // ------------------
216
204 /// close current client 217 /// close current client
205 void close(); 218 void close();
206 /// kill current client 219 /// kill current client
@@ -225,6 +238,8 @@ public:
225 void shadeOff(); 238 void shadeOff();
226 /// toggles sticky 239 /// toggles sticky
227 void stick(); 240 void stick();
241 /// toggles iconic
242 void toggleIconic();
228 void raise(); 243 void raise();
229 void lower(); 244 void lower();
230 void tempRaise(); 245 void tempRaise();
@@ -320,7 +335,9 @@ public:
320 inline bool isManaged() const { return m_initialized; } 335 inline bool isManaged() const { return m_initialized; }
321 inline bool isFocused() const { return focused; } 336 inline bool isFocused() const { return focused; }
322 bool isVisible() const; 337 bool isVisible() const;
338 inline bool isIconic() { return iconic; }
323 inline bool isIconic() const { return iconic; } 339 inline bool isIconic() const { return iconic; }
340 inline bool isShaded() { return shaded; }
324 inline bool isShaded() const { return shaded; } 341 inline bool isShaded() const { return shaded; }
325 inline bool isFullscreen() const { return fullscreen; } 342 inline bool isFullscreen() const { return fullscreen; }
326 inline bool isMaximized() const { return maximized == MAX_FULL; } 343 inline bool isMaximized() const { return maximized == MAX_FULL; }