GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing docs.wxpython.org — wx.Overlay — wxPython 4.3.2 Docs
|
Clears the overlay without restoring the former state. |
|
Sets or unsets constant opacity of the overlay window. |
Class API¶Possible constructors:
Overlay() -> None
Creates an overlay over an existing window, allowing for manipulations like rubber-banding, etc.
None
Clears the overlay without restoring the former state.
To be done, for example, when the window content has been changed and repainted.
None
Sets or unsets constant opacity of the overlay window.
If alpha is -1 , use per-pixel alpha blending, otherwise use the given alpha value for all pixels.
alpha (int)
None
Added in version 4.3/wxWidgets-3.3.0.
Note
Drawing on the overlay window is opaque by default under wxMSW. You have to call SetOpacity(-1) before initializing the overlay and use a graphics context to do the actual drawing if you want per-pixel alpha blending. Or, assuming that SetOpacity(-1) wasn’t called, explicitly set the alpha value (at any time) to change the overlay window’s opacity.
Note
This is currently only implemented for wxMSW and does nothing in the other ports.