]> git.saurik.com Git - wxWidgets.git/commitdiff
expose metal appearance
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 29 Mar 2004 06:49:37 +0000 (06:49 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 29 Mar 2004 06:49:37 +0000 (06:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index f527792360d273253bce768b564bc2c6ab9d2e92..4fd7b3e40b313e49eb6abe7f90725bf60c264b82 100644 (file)
@@ -1107,6 +1107,15 @@ void wxTopLevelWindowMac::MacSetMetalAppearance( bool set )
 #endif
 }
 
+bool wxTopLevelWindowMac::MacGetMetalAppearance() const 
+{
+#if TARGET_API_MAC_OSX
+    return MacGetWindowAttributes() & kWindowMetalAttribute ;
+#else
+    return false ;
+#endif
+}
+
 void wxTopLevelWindowMac::MacChangeWindowAttributes( wxUint32 attributesToSet , wxUint32 attributesToClear ) 
 {
     ChangeWindowAttributes ( (WindowRef) m_macWindow , attributesToSet, attributesToClear ) ;