]>
Commit | Line | Data |
---|---|---|
9a6a5530 MB |
1 | \section{\class{wxIconBundle}}\label{wxiconbundle} |
2 | ||
3 | This class contains multiple copies of an icon in different sizes, | |
4 | see also \helpref{wxDialog::SetIcons}{wxdialogseticons} and | |
9ce8d05e | 5 | \helpref{wxTopLevelWindow::SetIcons}{wxtoplevelwindowseticons}. |
9a6a5530 MB |
6 | |
7 | \wxheading{Derived from} | |
8 | ||
52734360 VZ |
9 | \helpref{wxGDIObject}{wxgdiobject}\\ |
10 | \helpref{wxObject}{wxobject} | |
11 | ||
12 | \wxheading{Predefined objects} | |
13 | ||
14 | {\bf wxNullIconBundle} | |
9a6a5530 MB |
15 | |
16 | \latexignore{\rtfignore{\wxheading{Members}}} | |
17 | ||
f7186899 | 18 | |
9a6a5530 MB |
19 | \membersection{wxIconBundle::wxIconBundle}\label{wxiconbundlewxiconbundle} |
20 | ||
21 | \func{}{wxIconBundle}{\void} | |
22 | ||
23 | Default constructor. | |
24 | ||
25 | \func{}{wxIconBundle}{\param{const wxString\& }{file}, \param{long }{type}} | |
26 | ||
27 | Initializes the bundle with the icon(s) found in the file. | |
28 | ||
29 | \func{}{wxIconBundle}{\param{const wxIcon\& }{icon}} | |
30 | ||
31 | Initializes the bundle with a single icon. | |
32 | ||
33 | \func{}{wxIconBundle}{\param{const wxIconBundle\& }{ic}} | |
34 | ||
35 | Copy constructor. | |
36 | ||
f7186899 | 37 | |
9a6a5530 MB |
38 | \membersection{wxIconBundle::\destruct{wxIconBundle}}\label{wxiconbundledtor} |
39 | ||
40 | \func{}{\destruct{wxIconBundle}}{\void} | |
41 | ||
42 | Destructor. | |
43 | ||
f7186899 | 44 | |
9a6a5530 MB |
45 | \membersection{wxIconBundle::AddIcon}\label{wxiconbundleaddicon} |
46 | ||
47 | \func{void}{AddIcon}{\param{const wxString\& }{file}, \param{long }{type}} | |
48 | ||
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. | |
52 | ||
53 | \func{void}{AddIcon}{\param{const wxIcon\& }{icon}} | |
54 | ||
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. | |
58 | ||
f7186899 | 59 | |
9a6a5530 MB |
60 | \membersection{wxIconBundle::GetIcon}\label{wxiconbundlegeticon} |
61 | ||
52734360 | 62 | \constfunc{wxIcon}{GetIcon}{\param{const wxSize\& }{size}} |
9a6a5530 MB |
63 | |
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. | |
69 | ||
52734360 | 70 | \constfunc{wxIcon}{GetIcon}{\param{wxCoord }{size = -1}} |
9a6a5530 MB |
71 | |
72 | Same as GetIcon( wxSize( size, size ) ). | |
73 | ||
f7186899 | 74 | |
9b5933bc VZ |
75 | \membersection{wxIconBundle::GetIconOfExactSize}\label{wxiconbundlegeticonofexactsize} |
76 | ||
77 | \constfunc{wxIcon}{GetIconOfExactSize}{\param{const wxSize\& }{size}} | |
78 | ||
79 | Returns the icon with exactly the given size or \texttt{wxNullIcon} if this | |
80 | size is not available. | |
81 | ||
82 | ||
f7186899 VZ |
83 | \membersection{wxIconBundle::IsEmpty}\label{wxiconbundleisempty} |
84 | ||
85 | \constfunc{bool}{IsEmpty}{\void} | |
86 | ||
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). | |
90 | ||
91 | ||
52734360 VZ |
92 | \membersection{wxIconBundle::operator $=$}\label{wxiconbundleoperatorassign} |
93 | ||
94 | \func{wxIconBundle\&}{operator $=$}{\param{const wxIconBundle\& }{ic}} | |
95 | ||
96 | Assignment operator, using \helpref{reference counting}{trefcount}. | |
97 | ||
f7186899 | 98 | |
52734360 VZ |
99 | \membersection{wxIconBundle::operator $==$}\label{wxiconbundleoperatorequals} |
100 | ||
101 | \func{bool}{operator $==$}{\param{const wxIconBundle\& }{ic}} | |
102 | ||
103 | Equality operator. This returns \true if two icon bundles are equal. | |
9a6a5530 | 104 | |
f7186899 | 105 | |
52734360 | 106 | \membersection{wxIconBundle::operator $!=$}\label{wxiconbundleoperatornotequals} |
ba637f22 | 107 | |
52734360 | 108 | \func{bool}{operator $!=$}{\param{const wxIconBundle\& }{ic}} |
ba637f22 | 109 | |
52734360 | 110 | Inequality operator. This returns \true if two icon bundles are not equal. |