]> git.saurik.com Git - wxWidgets.git/blame - include/wx/icon.h
Document wxRendererNative::DrawTitleBarBitmap() and use it properly.
[wxWidgets.git] / include / wx / icon.h
CommitLineData
99d80019
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/icon.h
3// Purpose: wxIcon base header
4// Author: Julian Smart
5// Modified by:
6// Created:
7// Copyright: (c) Julian Smart
8// RCS-ID: $Id$
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_ICON_H_BASE_
13#define _WX_ICON_H_BASE_
c801d85f 14
aaf7ab43 15#include "wx/iconloc.h"
03f38c58 16
cbea3ec6 17
c48d0d37
FM
18// a more readable way to tell
19#define wxICON_SCREEN_DEPTH (-1)
20
21
cbea3ec6
FM
22// the wxICON_DEFAULT_TYPE (the wxIcon equivalent of wxBITMAP_DEFAULT_TYPE)
23// constant defines the default argument value for wxIcon ctor and wxIcon::LoadFile()
24// functions.
cbea3ec6 25
4055ed82 26#if defined(__WXPALMOS__)
c48d0d37 27 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
803c61bf 28 #include "wx/generic/icon.h"
ffecfa5a 29#elif defined(__WXMSW__)
c48d0d37 30 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
03f38c58 31 #include "wx/msw/icon.h"
2049ba38 32#elif defined(__WXMOTIF__)
c48d0d37 33 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
03f38c58 34 #include "wx/motif/icon.h"
1be7a35c 35#elif defined(__WXGTK20__)
c48d0d37 36 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
71451a6d 37 #include "wx/generic/icon.h"
1be7a35c 38#elif defined(__WXGTK__)
c48d0d37 39 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
71451a6d 40 #include "wx/generic/icon.h"
83df96d6 41#elif defined(__WXX11__)
c48d0d37 42 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
71451a6d 43 #include "wx/generic/icon.h"
1e6feb95 44#elif defined(__WXMGL__)
c48d0d37 45 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
71451a6d 46 #include "wx/generic/icon.h"
b3c86150 47#elif defined(__WXDFB__)
c48d0d37 48 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
b3c86150 49 #include "wx/generic/icon.h"
34138703 50#elif defined(__WXMAC__)
973b546e 51#if wxOSX_USE_COCOA_OR_CARBON
c48d0d37 52 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
ef0e9220 53 #include "wx/osx/icon.h"
ac9e3f1f 54#else
c48d0d37 55 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
ac9e3f1f
SC
56 #include "wx/generic/icon.h"
57#endif
e64df9bc 58#elif defined(__WXCOCOA__)
c48d0d37 59 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
e64df9bc 60 #include "wx/cocoa/icon.h"
1777b9bb 61#elif defined(__WXPM__)
c48d0d37 62 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
1777b9bb 63 #include "wx/os2/icon.h"
c801d85f
KB
64#endif
65
6f5d7825
RR
66//-----------------------------------------------------------------------------
67// wxVariant support
68//-----------------------------------------------------------------------------
69
70#if wxUSE_VARIANT
71#include "wx/variant.h"
53a2db12 72DECLARE_VARIANT_OBJECT_EXPORTED(wxIcon,WXDLLIMPEXP_CORE)
6f5d7825
RR
73#endif
74
75
c801d85f 76#endif
34138703 77 // _WX_ICON_H_BASE_