Added wxTopLevelWindow::SetTranslucency and CanSetTranslucency, with
implementations (so far) for wxMSW and wxMac. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1431,6 +1431,21 @@ bool wxTopLevelWindowMac::IsFullScreen() const
|
||||
return m_macFullScreenData != NULL ;
|
||||
}
|
||||
|
||||
|
||||
bool wxTopLevelWindowMac::SetTranslucency(int alpha)
|
||||
{
|
||||
WindowRef handle = GetControlOwner((OpaqueControlRef*)GetHandle());
|
||||
OSStatus result = SetWindowAlpha(handle, float(alpha)/255.0);
|
||||
return result == noErr;
|
||||
}
|
||||
|
||||
|
||||
bool wxTopLevelWindowMac::CanSetTranslucency()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void wxTopLevelWindowMac::SetExtraStyle(long exStyle)
|
||||
{
|
||||
if ( GetExtraStyle() == exStyle )
|
||||
|
Reference in New Issue
Block a user