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
|
|
|
|
// 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.
|
|
|
|
|
2012-01-15 01:05:28 +00:00
|
|
|
#if 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__)
|
2012-06-30 16:33:23 +00:00
|
|
|
#ifdef __WINDOWS__
|
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
|
|
|
|
#else
|
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
|
|
|
#endif
|
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"
|
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
|
2018-09-21 14:15:58 +00:00
|
|
|
#include "wx/generic/icon.h"
|
2008-07-29 20:22:57 +00:00
|
|
|
#else
|
2018-09-21 14:15:58 +00:00
|
|
|
// iOS and others
|
2011-01-26 15:53:31 +00:00
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_PNG_RESOURCE
|
2008-07-29 20:22:57 +00:00
|
|
|
#include "wx/generic/icon.h"
|
|
|
|
#endif
|
2014-08-24 01:50:11 +00:00
|
|
|
#elif defined(__WXQT__)
|
|
|
|
#define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
|
|
|
|
#include "wx/generic/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_
|