2005-05-04 18:57:50 +00: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-15 00:23:28 +00:00
|
|
|
#ifndef _WX_ICON_H_BASE_
|
|
|
|
#define _WX_ICON_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2003-06-21 13:39:40 +00:00
|
|
|
#include "wx/iconloc.h"
|
1998-10-12 13:09:15 +00:00
|
|
|
|
2008-09-21 20:03:14 +00:00
|
|
|
|
2008-09-21 21:09:36 +00:00
|
|
|
// a more readable way to tell
|
|
|
|
#define wxICON_SCREEN_DEPTH (-1)
|
|
|
|
|
|
|
|
|
2008-09-21 20:03:14 +00: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.
|
|
|
|
|
2004-12-20 12:44:22 +00:00
|
|
|
#if defined(__WXPALMOS__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2006-08-24 14:43:20 +00:00
|
|
|
#include "wx/generic/icon.h"
|
2004-10-19 13:40:30 +00:00
|
|
|
#elif defined(__WXMSW__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
|
1998-10-12 13:09:15 +00:00
|
|
|
#include "wx/msw/icon.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXMOTIF__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
1998-10-12 13:09:15 +00:00
|
|
|
#include "wx/motif/icon.h"
|
2006-01-23 03:27:34 +00:00
|
|
|
#elif defined(__WXGTK20__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2006-08-09 17:59:30 +00:00
|
|
|
#include "wx/generic/icon.h"
|
2006-01-23 03:27:34 +00:00
|
|
|
#elif defined(__WXGTK__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2006-08-09 17:59:30 +00:00
|
|
|
#include "wx/generic/icon.h"
|
2002-02-05 16:34:33 +00:00
|
|
|
#elif defined(__WXX11__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2006-08-09 17:59:30 +00:00
|
|
|
#include "wx/generic/icon.h"
|
2001-06-26 20:59:19 +00:00
|
|
|
#elif defined(__WXMGL__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
|
2006-08-09 17:59:30 +00:00
|
|
|
#include "wx/generic/icon.h"
|
2006-08-27 09:42:42 +00:00
|
|
|
#elif defined(__WXDFB__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2006-08-27 09:42:42 +00:00
|
|
|
#include "wx/generic/icon.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2008-09-02 11:50:44 +00:00
|
|
|
#if wxOSX_USE_COCOA_OR_CARBON
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
|
2008-06-11 19:17:41 +00:00
|
|
|
#include "wx/osx/icon.h"
|
2008-07-29 20:22:57 +00:00
|
|
|
#else
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
2008-07-29 20:22:57 +00:00
|
|
|
#include "wx/generic/icon.h"
|
|
|
|
#endif
|
2003-03-22 06:18:36 +00:00
|
|
|
#elif defined(__WXCOCOA__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
|
2003-03-22 06:18:36 +00:00
|
|
|
#include "wx/cocoa/icon.h"
|
1999-07-28 03:38:12 +00:00
|
|
|
#elif defined(__WXPM__)
|
2008-09-21 21:09:36 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
|
1999-07-28 03:38:12 +00:00
|
|
|
#include "wx/os2/icon.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
2006-09-30 20:45:15 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxVariant support
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#if wxUSE_VARIANT
|
|
|
|
#include "wx/variant.h"
|
2008-03-26 15:06:00 +00:00
|
|
|
DECLARE_VARIANT_OBJECT_EXPORTED(wxIcon,WXDLLIMPEXP_CORE)
|
2006-09-30 20:45:15 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
1998-08-15 00:23:28 +00:00
|
|
|
// _WX_ICON_H_BASE_
|