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{Predefined objects
}
14 {\bf wxNullIconBundle
}
16 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxIconBundle::wxIconBundle
}\label{wxiconbundlewxiconbundle
}
21 \func{}{wxIconBundle
}{\void}
25 \func{}{wxIconBundle
}{\param{const wxString\&
}{file
},
\param{long
}{type
}}
27 Initializes the bundle with the icon(s) found in the file.
29 \func{}{wxIconBundle
}{\param{const wxIcon\&
}{icon
}}
31 Initializes the bundle with a single icon.
33 \func{}{wxIconBundle
}{\param{const wxIconBundle\&
}{ic
}}
38 \membersection{wxIconBundle::
\destruct{wxIconBundle
}}\label{wxiconbundledtor
}
40 \func{}{\destruct{wxIconBundle
}}{\void}
45 \membersection{wxIconBundle::AddIcon
}\label{wxiconbundleaddicon
}
47 \func{void
}{AddIcon
}{\param{const wxString\&
}{file
},
\param{long
}{type
}}
49 Adds all the icons contained in the file to the bundle;
50 if the collection already contains icons with the same
51 width and height, they are replaced by the new ones.
53 \func{void
}{AddIcon
}{\param{const wxIcon\&
}{icon
}}
55 Adds the icon to the collection; if the collection already
56 contains an icon with the same width and height, it is
57 replaced by the new one.
60 \membersection{wxIconBundle::GetIcon
}\label{wxiconbundlegeticon
}
62 \constfunc{wxIcon
}{GetIcon
}{\param{const wxSize\&
}{size
}}
64 Returns the icon with the given size; if no such icon exists,
65 returns the icon with size wxSYS
\_ICON\_X/wxSYS
\_ICON\_Y;
66 if no such icon exists,
67 returns the first icon in the bundle. If size = wxSize( -
1, -
1 ),
68 returns the icon with size wxSYS
\_ICON\_X/wxSYS
\_ICON\_Y.
70 \constfunc{wxIcon
}{GetIcon
}{\param{wxCoord
}{size = -
1}}
72 Same as GetIcon( wxSize( size, size ) ).
75 \membersection{wxIconBundle::GetIconOfExactSize
}\label{wxiconbundlegeticonofexactsize
}
77 \constfunc{wxIcon
}{GetIconOfExactSize
}{\param{const wxSize\&
}{size
}}
79 Returns the icon with exactly the given size or
\texttt{wxNullIcon
} if this
80 size is not available.
83 \membersection{wxIconBundle::IsEmpty
}\label{wxiconbundleisempty
}
85 \constfunc{bool
}{IsEmpty
}{\void}
87 Returns
\true if the bundle doesn't contain any icons,
\false otherwise (in
88 which case a call to
\helpref{GetIcon()
}{wxiconbundlegeticon
} with default
89 parameter should return a valid icon).
92 \membersection{wxIconBundle::operator $=$
}\label{wxiconbundleoperatorassign
}
94 \func{wxIconBundle\&
}{operator $=$
}{\param{const wxIconBundle\&
}{ic
}}
96 Assignment operator, using
\helpref{reference counting
}{trefcount
}.
99 \membersection{wxIconBundle::operator $==$
}\label{wxiconbundleoperatorequals
}
101 \func{bool
}{operator $==$
}{\param{const wxIconBundle\&
}{ic
}}
103 Equality operator. This returns
\true if two icon bundles are equal.
106 \membersection{wxIconBundle::operator $!=$
}\label{wxiconbundleoperatornotequals
}
108 \func{bool
}{operator $!=$
}{\param{const wxIconBundle\&
}{ic
}}
110 Inequality operator. This returns
\true if two icon bundles are not equal.