]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/iconbndl.tex
Fixed case on LaTeX member function labels.
[wxWidgets.git] / docs / latex / wx / iconbndl.tex
CommitLineData
9a6a5530
MB
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
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
23Default constructor.
24
25\func{}{wxIconBundle}{\param{const wxString\& }{file}, \param{long }{type}}
26
27Initializes the bundle with the icon(s) found in the file.
28
29\func{}{wxIconBundle}{\param{const wxIcon\& }{icon}}
30
31Initializes the bundle with a single icon.
32
33\func{}{wxIconBundle}{\param{const wxIconBundle\& }{ic}}
34
35Copy constructor.
36
f7186899 37
9a6a5530
MB
38\membersection{wxIconBundle::\destruct{wxIconBundle}}\label{wxiconbundledtor}
39
40\func{}{\destruct{wxIconBundle}}{\void}
41
42Destructor.
43
f7186899 44
9a6a5530
MB
45\membersection{wxIconBundle::AddIcon}\label{wxiconbundleaddicon}
46
47\func{void}{AddIcon}{\param{const wxString\& }{file}, \param{long }{type}}
48
49Adds all the icons contained in the file to the bundle;
50if the collection already contains icons with the same
51width and height, they are replaced by the new ones.
52
53\func{void}{AddIcon}{\param{const wxIcon\& }{icon}}
54
55Adds the icon to the collection; if the collection already
56contains an icon with the same width and height, it is
57replaced 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
64Returns the icon with the given size; if no such icon exists,
65returns the icon with size wxSYS\_ICON\_X/wxSYS\_ICON\_Y;
66if no such icon exists,
67returns the first icon in the bundle. If size = wxSize( -1, -1 ),
68returns the icon with size wxSYS\_ICON\_X/wxSYS\_ICON\_Y.
69
52734360 70\constfunc{wxIcon}{GetIcon}{\param{wxCoord }{size = -1}}
9a6a5530
MB
71
72Same 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
79Returns the icon with exactly the given size or \texttt{wxNullIcon} if this
80size is not available.
81
82
f7186899
VZ
83\membersection{wxIconBundle::IsEmpty}\label{wxiconbundleisempty}
84
85\constfunc{bool}{IsEmpty}{\void}
86
87Returns \true if the bundle doesn't contain any icons, \false otherwise (in
88which case a call to \helpref{GetIcon()}{wxiconbundlegeticon} with default
89parameter 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
96Assignment 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
103Equality 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 110Inequality operator. This returns \true if two icon bundles are not equal.