]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/iconbndl.tex
sorting support for generic version (patch 1765087 from Bo)
[wxWidgets.git] / docs / latex / wx / iconbndl.tex
CommitLineData
9a6a5530
MB
1\section{\class{wxIconBundle}}\label{wxiconbundle}
2
3This class contains multiple copies of an icon in different sizes,
4see also \helpref{wxDialog::SetIcons}{wxdialogseticons} and
9ce8d05e 5\helpref{wxTopLevelWindow::SetIcons}{wxtoplevelwindowseticons}.
9a6a5530
MB
6
7\wxheading{Derived from}
8
52734360
VZ
9\helpref{wxGDIObject}{wxgdiobject}\\
10\helpref{wxObject}{wxobject}
11
991ad6cd
VZ
12\wxheading{Include files}
13
14<wx/iconbndl.h>
15
a7af285d
VZ
16\wxheading{Library}
17
18\helpref{wxCore}{librarieslist}
19
52734360
VZ
20\wxheading{Predefined objects}
21
22{\bf wxNullIconBundle}
9a6a5530
MB
23
24\latexignore{\rtfignore{\wxheading{Members}}}
25
f7186899 26
9a6a5530
MB
27\membersection{wxIconBundle::wxIconBundle}\label{wxiconbundlewxiconbundle}
28
29\func{}{wxIconBundle}{\void}
30
31Default constructor.
32
33\func{}{wxIconBundle}{\param{const wxString\& }{file}, \param{long }{type}}
34
35Initializes the bundle with the icon(s) found in the file.
36
37\func{}{wxIconBundle}{\param{const wxIcon\& }{icon}}
38
39Initializes the bundle with a single icon.
40
41\func{}{wxIconBundle}{\param{const wxIconBundle\& }{ic}}
42
43Copy constructor.
44
f7186899 45
9a6a5530
MB
46\membersection{wxIconBundle::\destruct{wxIconBundle}}\label{wxiconbundledtor}
47
48\func{}{\destruct{wxIconBundle}}{\void}
49
50Destructor.
51
f7186899 52
9a6a5530
MB
53\membersection{wxIconBundle::AddIcon}\label{wxiconbundleaddicon}
54
55\func{void}{AddIcon}{\param{const wxString\& }{file}, \param{long }{type}}
56
57Adds all the icons contained in the file to the bundle;
58if the collection already contains icons with the same
59width and height, they are replaced by the new ones.
60
61\func{void}{AddIcon}{\param{const wxIcon\& }{icon}}
62
63Adds the icon to the collection; if the collection already
64contains an icon with the same width and height, it is
65replaced by the new one.
66
f7186899 67
9a6a5530
MB
68\membersection{wxIconBundle::GetIcon}\label{wxiconbundlegeticon}
69
52734360 70\constfunc{wxIcon}{GetIcon}{\param{const wxSize\& }{size}}
9a6a5530
MB
71
72Returns the icon with the given size; if no such icon exists,
73returns the icon with size wxSYS\_ICON\_X/wxSYS\_ICON\_Y;
74if no such icon exists,
75returns the first icon in the bundle. If size = wxSize( -1, -1 ),
76returns the icon with size wxSYS\_ICON\_X/wxSYS\_ICON\_Y.
77
52734360 78\constfunc{wxIcon}{GetIcon}{\param{wxCoord }{size = -1}}
9a6a5530
MB
79
80Same as GetIcon( wxSize( size, size ) ).
81
f7186899 82
9b5933bc
VZ
83\membersection{wxIconBundle::GetIconOfExactSize}\label{wxiconbundlegeticonofexactsize}
84
85\constfunc{wxIcon}{GetIconOfExactSize}{\param{const wxSize\& }{size}}
86
87Returns the icon with exactly the given size or \texttt{wxNullIcon} if this
88size is not available.
89
90
f7186899
VZ
91\membersection{wxIconBundle::IsEmpty}\label{wxiconbundleisempty}
92
93\constfunc{bool}{IsEmpty}{\void}
94
95Returns \true if the bundle doesn't contain any icons, \false otherwise (in
96which case a call to \helpref{GetIcon()}{wxiconbundlegeticon} with default
97parameter should return a valid icon).
98
99
52734360
VZ
100\membersection{wxIconBundle::operator $=$}\label{wxiconbundleoperatorassign}
101
102\func{wxIconBundle\&}{operator $=$}{\param{const wxIconBundle\& }{ic}}
103
104Assignment operator, using \helpref{reference counting}{trefcount}.
105
f7186899 106
52734360
VZ
107\membersection{wxIconBundle::operator $==$}\label{wxiconbundleoperatorequals}
108
109\func{bool}{operator $==$}{\param{const wxIconBundle\& }{ic}}
110
111Equality operator. This returns \true if two icon bundles are equal.
9a6a5530 112
f7186899 113
52734360 114\membersection{wxIconBundle::operator $!=$}\label{wxiconbundleoperatornotequals}
ba637f22 115
52734360 116\func{bool}{operator $!=$}{\param{const wxIconBundle\& }{ic}}
ba637f22 117
52734360 118Inequality operator. This returns \true if two icon bundles are not equal.