1 \section{\class{wxIconBundle
}}\label{wxiconbundle
}
3 This class contains multiple copies of an icon in different sizes,
4 see also
\helpref{wxDialog::SetIcons
}{wxdialogseticons
} and
5 \helpref{wxTopLevelWindow::SetIcons
}{wxtoplevelwindowseticons
}.
7 \wxheading{Derived from
}
9 \helpref{wxGDIObject
}{wxgdiobject
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
18 \helpref{wxCore
}{librarieslist
}
20 \wxheading{Predefined objects
}
22 {\bf wxNullIconBundle
}
24 \latexignore{\rtfignore{\wxheading{Members
}}}
27 \membersection{wxIconBundle::wxIconBundle
}\label{wxiconbundlewxiconbundle
}
29 \func{}{wxIconBundle
}{\void}
33 \func{}{wxIconBundle
}{\param{const wxString\&
}{file
},
\param{long
}{type
}}
35 Initializes the bundle with the icon(s) found in the file.
37 \func{}{wxIconBundle
}{\param{const wxIcon\&
}{icon
}}
39 Initializes the bundle with a single icon.
41 \func{}{wxIconBundle
}{\param{const wxIconBundle\&
}{ic
}}
46 \membersection{wxIconBundle::
\destruct{wxIconBundle
}}\label{wxiconbundledtor
}
48 \func{}{\destruct{wxIconBundle
}}{\void}
53 \membersection{wxIconBundle::AddIcon
}\label{wxiconbundleaddicon
}
55 \func{void
}{AddIcon
}{\param{const wxString\&
}{file
},
\param{long
}{type
}}
57 Adds all the icons contained in the file to the bundle;
58 if the collection already contains icons with the same
59 width and height, they are replaced by the new ones.
61 \func{void
}{AddIcon
}{\param{const wxIcon\&
}{icon
}}
63 Adds the icon to the collection; if the collection already
64 contains an icon with the same width and height, it is
65 replaced by the new one.
68 \membersection{wxIconBundle::GetIcon
}\label{wxiconbundlegeticon
}
70 \constfunc{wxIcon
}{GetIcon
}{\param{const wxSize\&
}{size
}}
72 Returns the icon with the given size; if no such icon exists,
73 returns the icon with size wxSYS
\_ICON\_X/wxSYS
\_ICON\_Y;
74 if no such icon exists,
75 returns the first icon in the bundle. If size = wxSize( -
1, -
1 ),
76 returns the icon with size wxSYS
\_ICON\_X/wxSYS
\_ICON\_Y.
78 \constfunc{wxIcon
}{GetIcon
}{\param{wxCoord
}{size = -
1}}
80 Same as GetIcon( wxSize( size, size ) ).
83 \membersection{wxIconBundle::GetIconOfExactSize
}\label{wxiconbundlegeticonofexactsize
}
85 \constfunc{wxIcon
}{GetIconOfExactSize
}{\param{const wxSize\&
}{size
}}
87 Returns the icon with exactly the given size or
\texttt{wxNullIcon
} if this
88 size is not available.
91 \membersection{wxIconBundle::IsEmpty
}\label{wxiconbundleisempty
}
93 \constfunc{bool
}{IsEmpty
}{\void}
95 Returns
\true if the bundle doesn't contain any icons,
\false otherwise (in
96 which case a call to
\helpref{GetIcon()
}{wxiconbundlegeticon
} with default
97 parameter should return a valid icon).
100 \membersection{wxIconBundle::operator $=$
}\label{wxiconbundleoperatorassign
}
102 \func{wxIconBundle\&
}{operator $=$
}{\param{const wxIconBundle\&
}{ic
}}
104 Assignment operator, using
\helpref{reference counting
}{trefcount
}.
107 \membersection{wxIconBundle::operator $==$
}\label{wxiconbundleoperatorequals
}
109 \func{bool
}{operator $==$
}{\param{const wxIconBundle\&
}{ic
}}
111 Equality operator. This returns
\true if two icon bundles are equal.
114 \membersection{wxIconBundle::operator $!=$
}\label{wxiconbundleoperatornotequals
}
116 \func{bool
}{operator $!=$
}{\param{const wxIconBundle\&
}{ic
}}
118 Inequality operator. This returns
\true if two icon bundles are not equal.