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
}
16 \wxheading{Predefined objects
}
18 {\bf wxNullIconBundle
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxIconBundle::wxIconBundle
}\label{wxiconbundlewxiconbundle
}
25 \func{}{wxIconBundle
}{\void}
29 \func{}{wxIconBundle
}{\param{const wxString\&
}{file
},
\param{long
}{type
}}
31 Initializes the bundle with the icon(s) found in the file.
33 \func{}{wxIconBundle
}{\param{const wxIcon\&
}{icon
}}
35 Initializes the bundle with a single icon.
37 \func{}{wxIconBundle
}{\param{const wxIconBundle\&
}{ic
}}
42 \membersection{wxIconBundle::
\destruct{wxIconBundle
}}\label{wxiconbundledtor
}
44 \func{}{\destruct{wxIconBundle
}}{\void}
49 \membersection{wxIconBundle::AddIcon
}\label{wxiconbundleaddicon
}
51 \func{void
}{AddIcon
}{\param{const wxString\&
}{file
},
\param{long
}{type
}}
53 Adds all the icons contained in the file to the bundle;
54 if the collection already contains icons with the same
55 width and height, they are replaced by the new ones.
57 \func{void
}{AddIcon
}{\param{const wxIcon\&
}{icon
}}
59 Adds the icon to the collection; if the collection already
60 contains an icon with the same width and height, it is
61 replaced by the new one.
64 \membersection{wxIconBundle::GetIcon
}\label{wxiconbundlegeticon
}
66 \constfunc{wxIcon
}{GetIcon
}{\param{const wxSize\&
}{size
}}
68 Returns the icon with the given size; if no such icon exists,
69 returns the icon with size wxSYS
\_ICON\_X/wxSYS
\_ICON\_Y;
70 if no such icon exists,
71 returns the first icon in the bundle. If size = wxSize( -
1, -
1 ),
72 returns the icon with size wxSYS
\_ICON\_X/wxSYS
\_ICON\_Y.
74 \constfunc{wxIcon
}{GetIcon
}{\param{wxCoord
}{size = -
1}}
76 Same as GetIcon( wxSize( size, size ) ).
79 \membersection{wxIconBundle::GetIconOfExactSize
}\label{wxiconbundlegeticonofexactsize
}
81 \constfunc{wxIcon
}{GetIconOfExactSize
}{\param{const wxSize\&
}{size
}}
83 Returns the icon with exactly the given size or
\texttt{wxNullIcon
} if this
84 size is not available.
87 \membersection{wxIconBundle::IsEmpty
}\label{wxiconbundleisempty
}
89 \constfunc{bool
}{IsEmpty
}{\void}
91 Returns
\true if the bundle doesn't contain any icons,
\false otherwise (in
92 which case a call to
\helpref{GetIcon()
}{wxiconbundlegeticon
} with default
93 parameter should return a valid icon).
96 \membersection{wxIconBundle::operator $=$
}\label{wxiconbundleoperatorassign
}
98 \func{wxIconBundle\&
}{operator $=$
}{\param{const wxIconBundle\&
}{ic
}}
100 Assignment operator, using
\helpref{reference counting
}{trefcount
}.
103 \membersection{wxIconBundle::operator $==$
}\label{wxiconbundleoperatorequals
}
105 \func{bool
}{operator $==$
}{\param{const wxIconBundle\&
}{ic
}}
107 Equality operator. This returns
\true if two icon bundles are equal.
110 \membersection{wxIconBundle::operator $!=$
}\label{wxiconbundleoperatornotequals
}
112 \func{bool
}{operator $!=$
}{\param{const wxIconBundle\&
}{ic
}}
114 Inequality operator. This returns
\true if two icon bundles are not equal.