From 6aab345b9d9037eb85735e446afde2fd87005be5 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 29 Mar 2004 06:49:37 +0000 Subject: [PATCH] expose metal appearance git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index f527792360..4fd7b3e40b 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -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 ) ; -- 2.47.2