2002-03-26 16:41:45 -05:00
|
|
|
\section{\class{wxIconBundle}}\label{wxiconbundle}
|
|
|
|
|
|
|
|
This class contains multiple copies of an icon in different sizes,
|
|
|
|
see also \helpref{wxDialog::SetIcons}{wxdialogseticons} and
|
2004-09-13 10:11:01 -04:00
|
|
|
\helpref{wxTopLevelWindow::SetIcons}{wxtoplevelwindowseticons}.
|
2002-03-26 16:41:45 -05:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
\helpref{wxGDIObject}{wxgdiobject}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
2007-07-21 20:00:13 -04:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/iconbndl.h>
|
|
|
|
|
2007-07-28 08:21:03 -04:00
|
|
|
\wxheading{Library}
|
|
|
|
|
|
|
|
\helpref{wxCore}{librarieslist}
|
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
\wxheading{Predefined objects}
|
|
|
|
|
|
|
|
{\bf wxNullIconBundle}
|
2002-03-26 16:41:45 -05:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2007-04-07 19:04:15 -04:00
|
|
|
|
2002-03-26 16:41:45 -05:00
|
|
|
\membersection{wxIconBundle::wxIconBundle}\label{wxiconbundlewxiconbundle}
|
|
|
|
|
|
|
|
\func{}{wxIconBundle}{\void}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
|
|
|
\func{}{wxIconBundle}{\param{const wxString\& }{file}, \param{long }{type}}
|
|
|
|
|
|
|
|
Initializes the bundle with the icon(s) found in the file.
|
|
|
|
|
|
|
|
\func{}{wxIconBundle}{\param{const wxIcon\& }{icon}}
|
|
|
|
|
|
|
|
Initializes the bundle with a single icon.
|
|
|
|
|
|
|
|
\func{}{wxIconBundle}{\param{const wxIconBundle\& }{ic}}
|
|
|
|
|
|
|
|
Copy constructor.
|
|
|
|
|
2007-04-07 19:04:15 -04:00
|
|
|
|
2002-03-26 16:41:45 -05:00
|
|
|
\membersection{wxIconBundle::\destruct{wxIconBundle}}\label{wxiconbundledtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxIconBundle}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
2007-04-07 19:04:15 -04:00
|
|
|
|
2002-03-26 16:41:45 -05:00
|
|
|
\membersection{wxIconBundle::AddIcon}\label{wxiconbundleaddicon}
|
|
|
|
|
|
|
|
\func{void}{AddIcon}{\param{const wxString\& }{file}, \param{long }{type}}
|
|
|
|
|
|
|
|
Adds all the icons contained in the file to the bundle;
|
|
|
|
if the collection already contains icons with the same
|
|
|
|
width and height, they are replaced by the new ones.
|
|
|
|
|
|
|
|
\func{void}{AddIcon}{\param{const wxIcon\& }{icon}}
|
|
|
|
|
|
|
|
Adds the icon to the collection; if the collection already
|
|
|
|
contains an icon with the same width and height, it is
|
|
|
|
replaced by the new one.
|
|
|
|
|
2007-04-07 19:04:15 -04:00
|
|
|
|
2002-03-26 16:41:45 -05:00
|
|
|
\membersection{wxIconBundle::GetIcon}\label{wxiconbundlegeticon}
|
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
\constfunc{wxIcon}{GetIcon}{\param{const wxSize\& }{size}}
|
2002-03-26 16:41:45 -05:00
|
|
|
|
|
|
|
Returns the icon with the given size; if no such icon exists,
|
|
|
|
returns the icon with size wxSYS\_ICON\_X/wxSYS\_ICON\_Y;
|
|
|
|
if no such icon exists,
|
|
|
|
returns the first icon in the bundle. If size = wxSize( -1, -1 ),
|
|
|
|
returns the icon with size wxSYS\_ICON\_X/wxSYS\_ICON\_Y.
|
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
\constfunc{wxIcon}{GetIcon}{\param{wxCoord }{size = -1}}
|
2002-03-26 16:41:45 -05:00
|
|
|
|
|
|
|
Same as GetIcon( wxSize( size, size ) ).
|
|
|
|
|
2007-04-07 19:04:15 -04:00
|
|
|
|
2007-04-07 19:53:06 -04:00
|
|
|
\membersection{wxIconBundle::GetIconOfExactSize}\label{wxiconbundlegeticonofexactsize}
|
|
|
|
|
|
|
|
\constfunc{wxIcon}{GetIconOfExactSize}{\param{const wxSize\& }{size}}
|
|
|
|
|
|
|
|
Returns the icon with exactly the given size or \texttt{wxNullIcon} if this
|
|
|
|
size is not available.
|
|
|
|
|
|
|
|
|
2007-04-07 19:04:15 -04:00
|
|
|
\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).
|
|
|
|
|
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
\membersection{wxIconBundle::operator $=$}\label{wxiconbundleoperatorassign}
|
|
|
|
|
|
|
|
\func{wxIconBundle\&}{operator $=$}{\param{const wxIconBundle\& }{ic}}
|
|
|
|
|
|
|
|
Assignment operator, using \helpref{reference counting}{trefcount}.
|
|
|
|
|
2007-04-07 19:04:15 -04:00
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
\membersection{wxIconBundle::operator $==$}\label{wxiconbundleoperatorequals}
|
|
|
|
|
|
|
|
\func{bool}{operator $==$}{\param{const wxIconBundle\& }{ic}}
|
|
|
|
|
|
|
|
Equality operator. This returns \true if two icon bundles are equal.
|
2002-03-26 16:41:45 -05:00
|
|
|
|
2007-04-07 19:04:15 -04:00
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
\membersection{wxIconBundle::operator $!=$}\label{wxiconbundleoperatornotequals}
|
2002-08-16 17:07:48 -04:00
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
\func{bool}{operator $!=$}{\param{const wxIconBundle\& }{ic}}
|
2002-08-16 17:07:48 -04:00
|
|
|
|
2007-04-07 15:59:51 -04:00
|
|
|
Inequality operator. This returns \true if two icon bundles are not equal.
|