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() ;
|
bool UMAHasWindowManager() ;
|
||||||
long UMAGetWindowManagerAttr() ;
|
long UMAGetWindowManagerAttr() ;
|
||||||
bool UMAHasAquaLayout() ;
|
bool UMAHasAquaLayout() ;
|
||||||
|
bool UMASystemIsInitialized() ;
|
||||||
|
|
||||||
// process manager
|
// process manager
|
||||||
|
|
||||||
|
@@ -19,6 +19,8 @@
|
|||||||
static bool sUMAHasAppearance = false ;
|
static bool sUMAHasAppearance = false ;
|
||||||
static long sUMAAppearanceVersion = 0 ;
|
static long sUMAAppearanceVersion = 0 ;
|
||||||
static bool sUMAHasAquaLayout = false ;
|
static bool sUMAHasAquaLayout = false ;
|
||||||
|
static bool sUMASystemInitialized = false ;
|
||||||
|
|
||||||
extern int gAGABackgroundColor ;
|
extern int gAGABackgroundColor ;
|
||||||
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
||||||
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
||||||
@@ -29,7 +31,7 @@ static long sUMAWindowManagerAttr = 0 ;
|
|||||||
bool UMAHasWindowManager() { return sUMAHasWindowManager ; }
|
bool UMAHasWindowManager() { return sUMAHasWindowManager ; }
|
||||||
long UMAGetWindowManagerAttr() { return sUMAWindowManagerAttr ; }
|
long UMAGetWindowManagerAttr() { return sUMAWindowManagerAttr ; }
|
||||||
bool UMAHasAquaLayout() { return sUMAHasAquaLayout ; }
|
bool UMAHasAquaLayout() { return sUMAHasAquaLayout ; }
|
||||||
|
bool UMASystemIsInitialized() { return sUMASystemInitialized ; }
|
||||||
|
|
||||||
void UMACleanupToolbox()
|
void UMACleanupToolbox()
|
||||||
{
|
{
|
||||||
@@ -112,7 +114,7 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
|
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
|
||||||
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
|
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
|
||||||
sUMAHasAquaLayout = true ;
|
sUMAHasAquaLayout = true ;
|
||||||
|
sUMASystemInitialized = true ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// process manager
|
// process manager
|
||||||
|
@@ -19,6 +19,8 @@
|
|||||||
static bool sUMAHasAppearance = false ;
|
static bool sUMAHasAppearance = false ;
|
||||||
static long sUMAAppearanceVersion = 0 ;
|
static long sUMAAppearanceVersion = 0 ;
|
||||||
static bool sUMAHasAquaLayout = false ;
|
static bool sUMAHasAquaLayout = false ;
|
||||||
|
static bool sUMASystemInitialized = false ;
|
||||||
|
|
||||||
extern int gAGABackgroundColor ;
|
extern int gAGABackgroundColor ;
|
||||||
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
||||||
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
||||||
@@ -29,7 +31,7 @@ static long sUMAWindowManagerAttr = 0 ;
|
|||||||
bool UMAHasWindowManager() { return sUMAHasWindowManager ; }
|
bool UMAHasWindowManager() { return sUMAHasWindowManager ; }
|
||||||
long UMAGetWindowManagerAttr() { return sUMAWindowManagerAttr ; }
|
long UMAGetWindowManagerAttr() { return sUMAWindowManagerAttr ; }
|
||||||
bool UMAHasAquaLayout() { return sUMAHasAquaLayout ; }
|
bool UMAHasAquaLayout() { return sUMAHasAquaLayout ; }
|
||||||
|
bool UMASystemIsInitialized() { return sUMASystemInitialized ; }
|
||||||
|
|
||||||
void UMACleanupToolbox()
|
void UMACleanupToolbox()
|
||||||
{
|
{
|
||||||
@@ -112,7 +114,7 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
|
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
|
||||||
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
|
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
|
||||||
sUMAHasAquaLayout = true ;
|
sUMAHasAquaLayout = true ;
|
||||||
|
sUMASystemInitialized = true ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// process manager
|
// process manager
|
||||||
|
Reference in New Issue
Block a user