-// ----------------------------------------------------------------------------
-// wxMetalTheme
-// ----------------------------------------------------------------------------
-
-wxMetalTheme::wxMetalTheme()
-{
- m_win32Theme = NULL;
- m_renderer = NULL;
-}
-
-wxMetalTheme::~wxMetalTheme()
-{
- delete m_win32Theme;
- delete m_renderer;
-}
-
-wxRenderer *wxMetalTheme::GetRenderer()
-{
- if ( !GetOrCreateTheme() )
- return 0;
- if ( !m_renderer )
- m_renderer = new wxMetalRenderer(m_win32Theme->GetRenderer(),
- m_win32Theme->GetColourScheme());
-
- return m_renderer;
-}
-
-wxArtProvider *wxMetalTheme::GetArtProvider()
-{
- if ( !GetOrCreateTheme() )
- return 0;
- return m_win32Theme->GetArtProvider();
-}
-
-wxInputHandler *wxMetalTheme::GetInputHandler(const wxString& control)
-{
- if ( !GetOrCreateTheme() )
- return 0;
- return m_win32Theme->GetInputHandler(control);
-}