]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/iconbndl.tex
fix ReceiveTimeout() reference
[wxWidgets.git] / docs / latex / wx / iconbndl.tex
... / ...
CommitLineData
1\section{\class{wxIconBundle}}\label{wxiconbundle}
2
3This class contains multiple copies of an icon in different sizes,
4see also \helpref{wxDialog::SetIcons}{wxdialogseticons} and
5\helpref{wxTopLevelWindow::SetIcons}{wxtoplevelwindowseticons}.
6
7\wxheading{Derived from}
8
9\helpref{wxGDIObject}{wxgdiobject}\\
10\helpref{wxObject}{wxobject}
11
12\wxheading{Include files}
13
14<wx/iconbndl.h>
15
16\wxheading{Library}
17
18\helpref{wxCore}{librarieslist}
19
20\wxheading{Predefined objects}
21
22{\bf wxNullIconBundle}
23
24\latexignore{\rtfignore{\wxheading{Members}}}
25
26
27\membersection{wxIconBundle::wxIconBundle}\label{wxiconbundlewxiconbundle}
28
29\func{}{wxIconBundle}{\void}
30
31Default constructor.
32
33\func{}{wxIconBundle}{\param{const wxString\& }{file}, \param{long }{type}}
34
35Initializes the bundle with the icon(s) found in the file.
36
37\func{}{wxIconBundle}{\param{const wxIcon\& }{icon}}
38
39Initializes the bundle with a single icon.
40
41\func{}{wxIconBundle}{\param{const wxIconBundle\& }{ic}}
42
43Copy constructor.
44
45
46\membersection{wxIconBundle::\destruct{wxIconBundle}}\label{wxiconbundledtor}
47
48\func{}{\destruct{wxIconBundle}}{\void}
49
50Destructor.
51
52
53\membersection{wxIconBundle::AddIcon}\label{wxiconbundleaddicon}
54
55\func{void}{AddIcon}{\param{const wxString\& }{file}, \param{long }{type}}
56
57Adds all the icons contained in the file to the bundle;
58if the collection already contains icons with the same
59width and height, they are replaced by the new ones.
60
61\func{void}{AddIcon}{\param{const wxIcon\& }{icon}}
62
63Adds the icon to the collection; if the collection already
64contains an icon with the same width and height, it is
65replaced by the new one.
66
67
68\membersection{wxIconBundle::GetIcon}\label{wxiconbundlegeticon}
69
70\constfunc{wxIcon}{GetIcon}{\param{const wxSize\& }{size}}
71
72Returns the icon with the given size; if no such icon exists,
73returns the icon with size wxSYS\_ICON\_X/wxSYS\_ICON\_Y;
74if no such icon exists,
75returns the first icon in the bundle. If size = wxSize( -1, -1 ),
76returns the icon with size wxSYS\_ICON\_X/wxSYS\_ICON\_Y.
77
78\constfunc{wxIcon}{GetIcon}{\param{wxCoord }{size = -1}}
79
80Same as GetIcon( wxSize( size, size ) ).
81
82
83\membersection{wxIconBundle::GetIconOfExactSize}\label{wxiconbundlegeticonofexactsize}
84
85\constfunc{wxIcon}{GetIconOfExactSize}{\param{const wxSize\& }{size}}
86
87Returns the icon with exactly the given size or \texttt{wxNullIcon} if this
88size is not available.
89
90
91\membersection{wxIconBundle::IsEmpty}\label{wxiconbundleisempty}
92
93\constfunc{bool}{IsEmpty}{\void}
94
95Returns \true if the bundle doesn't contain any icons, \false otherwise (in
96which case a call to \helpref{GetIcon()}{wxiconbundlegeticon} with default
97parameter should return a valid icon).
98
99
100\membersection{wxIconBundle::operator $=$}\label{wxiconbundleoperatorassign}
101
102\func{wxIconBundle\&}{operator $=$}{\param{const wxIconBundle\& }{ic}}
103
104Assignment operator, using \helpref{reference counting}{trefcount}.
105
106
107\membersection{wxIconBundle::operator $==$}\label{wxiconbundleoperatorequals}
108
109\func{bool}{operator $==$}{\param{const wxIconBundle\& }{ic}}
110
111Equality operator. This returns \true if two icon bundles are equal.
112
113
114\membersection{wxIconBundle::operator $!=$}\label{wxiconbundleoperatornotequals}
115
116\func{bool}{operator $!=$}{\param{const wxIconBundle\& }{ic}}
117
118Inequality operator. This returns \true if two icon bundles are not equal.