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{wxFrame::SetIcons
}{wxframeseticons
}.
7 \wxheading{Derived from
}
11 \latexignore{\rtfignore{\wxheading{Members
}}}
13 \membersection{wxIconBundle::wxIconBundle
}\label{wxiconbundlewxiconbundle
}
15 \func{}{wxIconBundle
}{\void}
19 \func{}{wxIconBundle
}{\param{const wxString\&
}{file
},
\param{long
}{type
}}
21 Initializes the bundle with the icon(s) found in the file.
23 \func{}{wxIconBundle
}{\param{const wxIcon\&
}{icon
}}
25 Initializes the bundle with a single icon.
27 \func{}{wxIconBundle
}{\param{const wxIconBundle\&
}{ic
}}
31 \membersection{wxIconBundle::
\destruct{wxIconBundle
}}\label{wxiconbundledtor
}
33 \func{}{\destruct{wxIconBundle
}}{\void}
37 \membersection{wxIconBundle::AddIcon
}\label{wxiconbundleaddicon
}
39 \func{void
}{AddIcon
}{\param{const wxString\&
}{file
},
\param{long
}{type
}}
41 Adds all the icons contained in the file to the bundle;
42 if the collection already contains icons with the same
43 width and height, they are replaced by the new ones.
45 \func{void
}{AddIcon
}{\param{const wxIcon\&
}{icon
}}
47 Adds the icon to the collection; if the collection already
48 contains an icon with the same width and height, it is
49 replaced by the new one.
51 \membersection{wxIconBundle::GetIcon
}\label{wxiconbundlegeticon
}
53 \constfunc{const wxIcon\&
}{GetIcon
}{\param{const wxSize\&
}{size
}}
55 Returns the icon with the given size; if no such icon exists,
56 returns the icon with size wxSYS
\_ICON\_X/wxSYS
\_ICON\_Y;
57 if no such icon exists,
58 returns the first icon in the bundle. If size = wxSize( -
1, -
1 ),
59 returns the icon with size wxSYS
\_ICON\_X/wxSYS
\_ICON\_Y.
61 \constfunc{const wxIcon\&
}{GetIcon
}{\param{wxCoord
}{size = -
1}}
63 Same as GetIcon( wxSize( size, size ) ).
65 \membersection{wxIconBundle::operator=
}\label{wxiconbundleoperatorassign
}
67 \func{const wxIconBundle\&
}{operator=
}{\param{const wxIconBundle\&
}{ic
}}