]> git.saurik.com Git - wxWidgets.git/blame - interface/iconbndl.h
non-pch build fix
[wxWidgets.git] / interface / iconbndl.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: iconbndl.h
e54c96f1 3// Purpose: interface of wxIconBundle
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxIconBundle
11 @wxheader{iconbndl.h}
7c913512 12
23324ae1
FM
13 This class contains multiple copies of an icon in different sizes,
14 see also wxDialog::SetIcons and
15 wxTopLevelWindow::SetIcons.
7c913512 16
23324ae1
FM
17 @library{wxcore}
18 @category{FIXME}
7c913512 19
23324ae1 20 @stdobjects
e54c96f1 21 ::wxNullIconBundle,
23324ae1
FM
22*/
23class wxIconBundle : public wxGDIObject
24{
25public:
26 //@{
27 /**
28 Copy constructor.
29 */
30 wxIconBundle();
7c913512
FM
31 wxIconBundle(const wxString& file, long type);
32 wxIconBundle(const wxIcon& icon);
33 wxIconBundle(const wxIconBundle& ic);
23324ae1
FM
34 //@}
35
36 /**
37 Destructor.
38 */
39 ~wxIconBundle();
40
41 //@{
42 /**
43 Adds the icon to the collection; if the collection already
44 contains an icon with the same width and height, it is
45 replaced by the new one.
46 */
47 void AddIcon(const wxString& file, long type);
7c913512 48 void AddIcon(const wxIcon& icon);
23324ae1
FM
49 //@}
50
51 //@{
52 /**
53 Same as GetIcon( wxSize( size, size ) ).
54 */
328f5751
FM
55 wxIcon GetIcon(const wxSize& size) const;
56 const wxIcon GetIcon(wxCoord size = -1) const;
23324ae1
FM
57 //@}
58
59 /**
60 Returns the icon with exactly the given size or @c wxNullIcon if this
61 size is not available.
62 */
328f5751 63 wxIcon GetIconOfExactSize(const wxSize& size) const;
23324ae1
FM
64
65 /**
66 Returns @true if the bundle doesn't contain any icons, @false otherwise (in
67 which case a call to GetIcon() with default
68 parameter should return a valid icon).
69 */
328f5751 70 bool IsEmpty() const;
23324ae1
FM
71
72 /**
73 Assignment operator, using @ref overview_trefcount "reference counting".
74 */
75 wxIconBundle operator =(const wxIconBundle& ic);
76
77 /**
78 Equality operator. This returns @true if two icon bundles are equal.
79 */
80 bool operator ==(const wxIconBundle& ic);
81};
e54c96f1
FM
82
83
84/**
85 FIXME
86*/
87wxIconBundle wxNullIconBundle;
88
89