2005-05-04 14:57:50 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/icon.h
|
|
|
|
// Purpose: wxIcon base header
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created:
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_ICON_H_BASE_
|
|
|
|
#define _WX_ICON_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2003-06-21 09:39:40 -04:00
|
|
|
#include "wx/iconloc.h"
|
1998-10-12 09:09:15 -04:00
|
|
|
|
2008-09-21 16:03:14 -04:00
|
|
|
|
2008-09-21 17:09:36 -04:00
|
|
|
// a more readable way to tell
|
|
|
|
#define wxICON_SCREEN_DEPTH (-1)
|
|
|
|
|
|
|
|
|
2008-09-21 16:03:14 -04:00
|
|
|
// the wxICON_DEFAULT_TYPE (the wxIcon equivalent of wxBITMAP_DEFAULT_TYPE)
|
|
|
|
// constant defines the default argument value for wxIcon ctor and wxIcon::LoadFile()
|
|
|
|
// functions.
|
|
|
|
|
2012-01-14 20:05:28 -05:00
|
|
|
#if defined(__WXMSW__)
|
2008-09-21 17:09:36 -04:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
|
1998-10-12 09:09:15 -04:00
|
|
|
#include "wx/msw/icon.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXMOTIF__)
|
2008-09-21 17:09:36 -04:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
1998-10-12 09:09:15 -04:00
|
|
|
#include "wx/motif/icon.h"
|
2006-01-22 22:27:34 -05:00
|
|
|
#elif defined(__WXGTK20__)
|
2012-06-30 12:33:23 -04:00
|
|
|
#ifdef __WINDOWS__
|
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
|
|
|
|
#else
|
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
|
|
|
#endif
|
2006-08-09 13:59:30 -04:00
|
|
|
#include "wx/generic/icon.h"
|
2006-01-22 22:27:34 -05:00
|
|
|
#elif defined(__WXGTK__)
|
2008-09-21 17:09:36 -04:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2006-08-09 13:59:30 -04:00
|
|
|
#include "wx/generic/icon.h"
|
2002-02-05 11:34:33 -05:00
|
|
|
#elif defined(__WXX11__)
|
2008-09-21 17:09:36 -04:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2006-08-09 13:59:30 -04:00
|
|
|
#include "wx/generic/icon.h"
|
2006-08-27 05:42:42 -04:00
|
|
|
#elif defined(__WXDFB__)
|
2008-09-21 17:09:36 -04:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2006-08-27 05:42:42 -04:00
|
|
|
#include "wx/generic/icon.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXMAC__)
|
2008-09-02 07:50:44 -04:00
|
|
|
#if wxOSX_USE_COCOA_OR_CARBON
|
2008-09-21 17:09:36 -04:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
|
2008-06-11 15:17:41 -04:00
|
|
|
#include "wx/osx/icon.h"
|
2008-07-29 16:22:57 -04:00
|
|
|
#else
|
2011-01-26 10:53:31 -05:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_PNG_RESOURCE
|
2008-07-29 16:22:57 -04:00
|
|
|
#include "wx/generic/icon.h"
|
|
|
|
#endif
|
2003-03-22 01:18:36 -05:00
|
|
|
#elif defined(__WXCOCOA__)
|
2008-09-21 17:09:36 -04:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
|
2003-03-22 01:18:36 -05:00
|
|
|
#include "wx/cocoa/icon.h"
|
1999-07-27 23:38:12 -04:00
|
|
|
#elif defined(__WXPM__)
|
2008-09-21 17:09:36 -04:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
|
1999-07-27 23:38:12 -04:00
|
|
|
#include "wx/os2/icon.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
2006-09-30 16:45:15 -04:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxVariant support
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#if wxUSE_VARIANT
|
|
|
|
#include "wx/variant.h"
|
2008-03-26 11:06:00 -04:00
|
|
|
DECLARE_VARIANT_OBJECT_EXPORTED(wxIcon,WXDLLIMPEXP_CORE)
|
2006-09-30 16:45:15 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
1998-08-14 20:23:28 -04:00
|
|
|
// _WX_ICON_H_BASE_
|