git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45317
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\latexignore{\rtfignore{\wxheading{Members}}}
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxIconBundle::wxIconBundle}\label{wxiconbundlewxiconbundle}
\func{}{wxIconBundle}{\void}
\membersection{wxIconBundle::wxIconBundle}\label{wxiconbundlewxiconbundle}
\func{}{wxIconBundle}{\void}
\membersection{wxIconBundle::\destruct{wxIconBundle}}\label{wxiconbundledtor}
\func{}{\destruct{wxIconBundle}}{\void}
Destructor.
\membersection{wxIconBundle::\destruct{wxIconBundle}}\label{wxiconbundledtor}
\func{}{\destruct{wxIconBundle}}{\void}
Destructor.
\membersection{wxIconBundle::AddIcon}\label{wxiconbundleaddicon}
\func{void}{AddIcon}{\param{const wxString\& }{file}, \param{long }{type}}
\membersection{wxIconBundle::AddIcon}\label{wxiconbundleaddicon}
\func{void}{AddIcon}{\param{const wxString\& }{file}, \param{long }{type}}
contains an icon with the same width and height, it is
replaced by the new one.
contains an icon with the same width and height, it is
replaced by the new one.
\membersection{wxIconBundle::GetIcon}\label{wxiconbundlegeticon}
\constfunc{wxIcon}{GetIcon}{\param{const wxSize\& }{size}}
\membersection{wxIconBundle::GetIcon}\label{wxiconbundlegeticon}
\constfunc{wxIcon}{GetIcon}{\param{const wxSize\& }{size}}
Same as GetIcon( wxSize( size, size ) ).
Same as GetIcon( wxSize( size, size ) ).
+
+\membersection{wxIconBundle::IsEmpty}\label{wxiconbundleisempty}
+
+\constfunc{bool}{IsEmpty}{\void}
+
+Returns \true if the bundle doesn't contain any icons, \false otherwise (in
+which case a call to \helpref{GetIcon()}{wxiconbundlegeticon} with default
+parameter should return a valid icon).
+
+
\membersection{wxIconBundle::operator $=$}\label{wxiconbundleoperatorassign}
\func{wxIconBundle\&}{operator $=$}{\param{const wxIconBundle\& }{ic}}
Assignment operator, using \helpref{reference counting}{trefcount}.
\membersection{wxIconBundle::operator $=$}\label{wxiconbundleoperatorassign}
\func{wxIconBundle\&}{operator $=$}{\param{const wxIconBundle\& }{ic}}
Assignment operator, using \helpref{reference counting}{trefcount}.
\membersection{wxIconBundle::operator $==$}\label{wxiconbundleoperatorequals}
\func{bool}{operator $==$}{\param{const wxIconBundle\& }{ic}}
Equality operator. This returns \true if two icon bundles are equal.
\membersection{wxIconBundle::operator $==$}\label{wxiconbundleoperatorequals}
\func{bool}{operator $==$}{\param{const wxIconBundle\& }{ic}}
Equality operator. This returns \true if two icon bundles are equal.
\membersection{wxIconBundle::operator $!=$}\label{wxiconbundleoperatornotequals}
\func{bool}{operator $!=$}{\param{const wxIconBundle\& }{ic}}
\membersection{wxIconBundle::operator $!=$}\label{wxiconbundleoperatornotequals}
\func{bool}{operator $!=$}{\param{const wxIconBundle\& }{ic}}
// return the icon at index (must be < GetIconCount())
wxIcon GetIconByIndex(size_t n) const;
// return the icon at index (must be < GetIconCount())
wxIcon GetIconByIndex(size_t n) const;
+ // check if we have any icons at all
+ bool IsEmpty() const { return GetIconCount() == 0; }
+
protected:
virtual wxObjectRefData *CreateRefData() const;
virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
protected:
virtual wxObjectRefData *CreateRefData() const;
virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;