added method for finding out, whether the macos system is fully initialized for this app (e.g. it is not during static initialization)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -21,6 +21,7 @@ long UMAGetAppearanceVersion() ;
|
||||
bool UMAHasWindowManager() ;
|
||||
long UMAGetWindowManagerAttr() ;
|
||||
bool UMAHasAquaLayout() ;
|
||||
bool UMASystemIsInitialized() ;
|
||||
|
||||
// process manager
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
static bool sUMAHasAppearance = false ;
|
||||
static long sUMAAppearanceVersion = 0 ;
|
||||
static bool sUMAHasAquaLayout = false ;
|
||||
static bool sUMASystemInitialized = false ;
|
||||
|
||||
extern int gAGABackgroundColor ;
|
||||
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
||||
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
||||
@@ -29,7 +31,7 @@ static long sUMAWindowManagerAttr = 0 ;
|
||||
bool UMAHasWindowManager() { return sUMAHasWindowManager ; }
|
||||
long UMAGetWindowManagerAttr() { return sUMAWindowManagerAttr ; }
|
||||
bool UMAHasAquaLayout() { return sUMAHasAquaLayout ; }
|
||||
|
||||
bool UMASystemIsInitialized() { return sUMASystemInitialized ; }
|
||||
|
||||
void UMACleanupToolbox()
|
||||
{
|
||||
@@ -112,7 +114,7 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
||||
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
|
||||
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
|
||||
sUMAHasAquaLayout = true ;
|
||||
|
||||
sUMASystemInitialized = true ;
|
||||
}
|
||||
|
||||
// process manager
|
||||
|
@@ -19,6 +19,8 @@
|
||||
static bool sUMAHasAppearance = false ;
|
||||
static long sUMAAppearanceVersion = 0 ;
|
||||
static bool sUMAHasAquaLayout = false ;
|
||||
static bool sUMASystemInitialized = false ;
|
||||
|
||||
extern int gAGABackgroundColor ;
|
||||
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
||||
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
||||
@@ -29,7 +31,7 @@ static long sUMAWindowManagerAttr = 0 ;
|
||||
bool UMAHasWindowManager() { return sUMAHasWindowManager ; }
|
||||
long UMAGetWindowManagerAttr() { return sUMAWindowManagerAttr ; }
|
||||
bool UMAHasAquaLayout() { return sUMAHasAquaLayout ; }
|
||||
|
||||
bool UMASystemIsInitialized() { return sUMASystemInitialized ; }
|
||||
|
||||
void UMACleanupToolbox()
|
||||
{
|
||||
@@ -112,7 +114,7 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
||||
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
|
||||
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
|
||||
sUMAHasAquaLayout = true ;
|
||||
|
||||
sUMASystemInitialized = true ;
|
||||
}
|
||||
|
||||
// process manager
|
||||
|
Reference in New Issue
Block a user