]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/bitmap.tex
Changes for 16-bit BC++ (not there yet), GnuWin32; typetest sample
[wxWidgets.git] / docs / latex / wx / bitmap.tex
CommitLineData
a660d684
KB
1\section{\class{wxBitmap}}\label{wxbitmap}
2
3%\overview{Overview}{wxbitmapoverview}
4%
5This class encapsulates the concept of a platform-dependent bitmap,
6either monochrome or colour.
7
8\wxheading{Derived from}
9
10\helpref{wxGDIObject}{wxgdiobject}\\
11\helpref{wxObject}{wxobject}
12
13\wxheading{See also}
14
15\helpref{wxBitmap overview}{wxbitmapoverview}, \helpref{wxDC::Blit}{wxdcblit}, \helpref{wxIcon}{wxicon}, \helpref{wxCursor}{wxcursor}, \helpref{wxMemoryDC}{wxmemorydc}
16
17\latexignore{\rtfignore{\wxheading{Members}}}
18
19\membersection{wxBitmap::wxBitmap}\label{wxbitmapconstr}
20
21\func{}{wxBitmap}{\void}
22
23Default constructor.
24
25\func{}{wxBitmap}{\param{const wxBitmap\& }{bitmap}}
26
1e6d9499 27Copy constructor.
a660d684 28
eaaa6a06 29\func{}{wxBitmap}{\param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
30
31Creates a bitmap from the given data, which can be of arbitrary type.
32
eaaa6a06
JS
33\func{}{wxBitmap}{\param{const char}{ bits[]}, \param{int}{ width}, \param{int}{ height}\\
34 \param{int}{ depth = 1}}
a660d684
KB
35
36Creates a bitmap from an array of bits.
37
eaaa6a06 38\func{}{wxBitmap}{\param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
39
40Creates a new bitmap.
41
42\func{}{wxBitmap}{\param{const char**}{ bits}}
43
44Creates a bitmap from XPM data.
45
eaaa6a06 46\func{}{wxBitmap}{\param{const wxString\& }{name}, \param{long}{ type}}
a660d684
KB
47
48Loads a bitmap from a file or resource.
49
50\wxheading{Parameters}
51
52\docparam{bits}{Specifies an array of pixel values.}
53
54\docparam{width}{Specifies the width of the bitmap.}
55
56\docparam{height}{Specifies the height of the bitmap.}
57
58\docparam{depth}{Specifies the depth of the bitmap. If this is omitted, the display depth of the
59screen is used.}
60
61\docparam{name}{This can refer to a resource name under MS Windows, or a filename under MS Windows and X.
1e6d9499 62Its meaning is determined by the {\it type} parameter.}
a660d684
KB
63
64\docparam{type}{May be one of the following:
65
66\twocolwidtha{5cm}
67\begin{twocollist}
68\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_BMP}}}{Load a Windows bitmap file.}
69\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_BMP\_RESOURCE}}}{Load a Windows bitmap from the resource database.}
70\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_GIF}}}{Load a GIF bitmap file.}
71\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_XBM}}}{Load an X bitmap file.}
72\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_XPM}}}{Load an XPM bitmap file.}
73\twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_RESOURCE}}}{Load a Windows resource name.}
74\end{twocollist}
75
76The validity of these flags depends on the platform and wxWindows configuration.
77If all possible wxWindows settings are used, the Windows platform supports BMP, BMP\_RESOURCE,
78XPM\_DATA, and XPM. Under X, the available formats are BMP, GIF, XBM, and XPM.}
79
80\wxheading{Remarks}
81
82The first form constructs a bitmap object with no data; an assignment or another member function such as Create
83or LoadFile must be called subsequently.
84
85The second and third forms provide copy constructors. Note that these do not copy the
86bitmap data, but instead a pointer to the data, keeping a reference count. They are therefore
87very efficient operations.
88
89The fourth form constructs a bitmap from data whose type and value depends on
90the value of the {\it type} argument.
91
92The fifth form constructs a (usually monochrome) bitmap from an array of pixel values, under both
93X and Windows.
94
95The sixth form constructs a new bitmap.
96
97The seventh form constructs a bitmap from pixmap (XPM) data, if wxWindows has been configured
98to incorporate this feature.
99
100To use this constructor, you must first include an XPM file. For
101example, assuming that the file {\tt mybitmap.xpm} contains an XPM array
102of character pointers called mybitmap:
103
104\begin{verbatim}
105#include "mybitmap.xpm"
106
107...
108
109wxBitmap *bitmap = new wxBitmap(mybitmap);
110\end{verbatim}
111
112The eighth form constructs a bitmap from a file or resource. {\it name} can refer
113to a resource name under MS Windows, or a filename under MS Windows and X.
114
115Under Windows, {\it type} defaults to wxBITMAP\_TYPE\_BMP\_RESOURCE.
116Under X, {\it type} defaults to wxBITMAP\_TYPE\_XBM.
117
118\wxheading{See also}
119
120\helpref{wxBitmap::LoadFile}{wxbitmaploadfile}
121
122\membersection{wxBitmap::\destruct{wxBitmap}}
123
124\func{}{\destruct{wxBitmap}}{\void}
125
126Destroys the wxBitmap object and possibly the underlying bitmap data.
127Because reference counting is used, the bitmap may not actually be
128destroyed at this point - only when the reference count is zero will the
129data be deleted.
130
131If the application omits to delete the bitmap explicitly, the bitmap will be
132destroyed automatically by wxWindows when the application exits.
133
134Do not delete a bitmap that is selected into a memory device context.
135
136\membersection{wxBitmap::AddHandler}\label{wxbitmapaddhandler}
137
138\func{static void}{AddHandler}{\param{wxBitmapHandler*}{ handler}}
139
140Adds a handler to the end of the static list of format handlers.
141
142\docparam{handler}{A new bitmap format handler object. There is usually only one instance
143of a given handler class in an application session.}
144
145\wxheading{See also}
146
147\helpref{wxBitmapHandler}{wxbitmaphandler}
148
149\membersection{wxBitmap::CleanUpHandlers}
150
151\func{static void}{CleanUpHandlers}{\void}
152
153Deletes all bitmap handlers.
154
155This function is called by wxWindows on exit.
156
157\membersection{wxBitmap::Create}
158
eaaa6a06 159\func{virtual bool}{Create}{\param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
160
161Creates a fresh bitmap. If the final argument is omitted, the display depth of
162the screen is used.
163
eaaa6a06 164\func{virtual bool}{Create}{\param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
165
166Creates a bitmap from the given data, which can be of arbitrary type.
167
168\wxheading{Parameters}
169
170\docparam{width}{The width of the bitmap in pixels.}
171
172\docparam{height}{The height of the bitmap in pixels.}
173
174\docparam{depth}{The depth of the bitmap in pixels. If this is -1, the screen depth is used.}
175
176\docparam{data}{Data whose type depends on the value of {\it type}.}
177
178\docparam{type}{A bitmap type identifier - see \helpref{wxBitmap::wxBitmap}{wxbitmapconstr} for a list
179of possible values.}
180
181\wxheading{Return value}
182
183TRUE if the call succeeded, FALSE otherwise.
184
185\wxheading{Remarks}
186
187The first form works on all platforms. The portability of the second form depends on the
188type of data.
189
190\wxheading{See also}
191
192\helpref{wxBitmap::wxBitmap}{wxbitmapconstr}
193
194\membersection{wxBitmap::FindHandler}
195
196\func{static wxBitmapHandler*}{FindHandler}{\param{const wxString\& }{name}}
197
198Finds the handler with the given name.
199
200\func{static wxBitmapHandler*}{FindHandler}{\param{const wxString\& }{extension}, \param{long}{ bitmapType}}
201
202Finds the handler associated with the given extension and type.
203
204\func{static wxBitmapHandler*}{FindHandler}{\param{long }{bitmapType}}
205
206Finds the handler associated with the given bitmap type.
207
208\docparam{name}{The handler name.}
209
210\docparam{extension}{The file extension, such as ``bmp".}
211
212\docparam{bitmapType}{The bitmap type, such as wxBITMAP\_TYPE\_BMP.}
213
214\wxheading{Return value}
215
216A pointer to the handler if found, NULL otherwise.
217
218\wxheading{See also}
219
220\helpref{wxBitmapHandler}{wxbitmaphandler}
221
222\membersection{wxBitmap::GetDepth}
223
224\constfunc{int}{GetDepth}{\void}
225
226Gets the colour depth of the bitmap. A value of 1 indicates a
227monochrome bitmap.
228
229\membersection{wxBitmap::GetHandlers}
230
231\func{static wxList\&}{GetHandlers}{\void}
232
233Returns the static list of bitmap format handlers.
234
235\wxheading{See also}
236
237\helpref{wxBitmapHandler}{wxbitmaphandler}
238
239\membersection{wxBitmap::GetHeight}\label{wxbitmapgetheight}
240
241\constfunc{int}{GetHeight}{\void}
242
243Gets the height of the bitmap in pixels.
244
245\membersection{wxBitmap::GetPalette}\label{wxbitmapgetpalette}
246
247\constfunc{wxPalette*}{GetPalette}{\void}
248
249Gets the associated palette (if any) which may have been loaded from a file
250or set for the bitmap.
251
252\wxheading{See also}
253
254\helpref{wxPalette}{wxpalette}
255
256\membersection{wxBitmap::GetMask}\label{wxbitmapgetmask}
257
258\constfunc{wxMask*}{GetMask}{\void}
259
1e6d9499 260Gets the associated mask (if any) which may have been loaded from a file
a660d684
KB
261or set for the bitmap.
262
263\wxheading{See also}
264
265\helpref{wxBitmap::SetMask}{wxbitmapsetmask}, \helpref{wxMask}{wxmask}
266
267\membersection{wxBitmap::GetWidth}\label{wxbitmapgetwidth}
268
269\constfunc{int}{GetWidth}{\void}
270
271Gets the width of the bitmap in pixels.
272
273\wxheading{See also}
274
275\helpref{wxBitmap::GetHeight}{wxbitmapgetheight}
276
277\membersection{wxBitmap::InitStandardHandlers}
278
279\func{static void}{InitStandardHandlers}{\void}
280
281Adds the standard bitmap format handlers, which, depending on wxWindows
282configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM.
283
284This function is called by wxWindows on startup.
285
286\wxheading{See also}
287
288\helpref{wxBitmapHandler}{wxbitmaphandler}
289
290\membersection{wxBitmap::InsertHandler}
291
292\func{static void}{InsertHandler}{\param{wxBitmapHandler*}{ handler}}
293
294Adds a handler at the start of the static list of format handlers.
295
296\docparam{handler}{A new bitmap format handler object. There is usually only one instance
297of a given handler class in an application session.}
298
299\wxheading{See also}
300
301\helpref{wxBitmapHandler}{wxbitmaphandler}
302
303\membersection{wxBitmap::LoadFile}\label{wxbitmaploadfile}
304
eaaa6a06 305\func{bool}{LoadFile}{\param{const wxString\&}{ name}, \param{long}{ type}}
a660d684
KB
306
307Loads a bitmap from a file or resource.
308
309\wxheading{Parameters}
310
311\docparam{name}{Either a filename or a Windows resource name.
312The meaning of {\it name} is determined by the {\it type} parameter.}
313
314\docparam{type}{One of the following values:
315
316\twocolwidtha{5cm}
317\begin{twocollist}
318\twocolitem{{\bf wxBITMAP\_TYPE\_BMP}}{Load a Windows bitmap file.}
319\twocolitem{{\bf wxBITMAP\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap from the resource database.}
320\twocolitem{{\bf wxBITMAP\_TYPE\_GIF}}{Load a GIF bitmap file.}
321\twocolitem{{\bf wxBITMAP\_TYPE\_XBM}}{Load an X bitmap file.}
322\twocolitem{{\bf wxBITMAP\_TYPE\_XPM}}{Load an XPM bitmap file.}
323\end{twocollist}
324
325The validity of these flags depends on the platform and wxWindows configuration.}
326
327\wxheading{Return value}
328
329TRUE if the operation succeeded, FALSE otherwise.
330
331\wxheading{Remarks}
332
333A palette may be associated with the bitmap if one exists (especially for
334colour Windows bitmaps), and if the code supports it. You can check
335if one has been created by using the \helpref{GetPalette}{wxbitmapgetpalette} member.
336
337\wxheading{See also}
338
339\helpref{wxBitmap::SaveFile}{wxbitmapsavefile}
340
341\membersection{wxBitmap::Ok}\label{wxbitmapok}
342
343\constfunc{bool}{Ok}{\void}
344
345Returns TRUE if bitmap data is present.
346
347\membersection{wxBitmap::RemoveHandler}
348
349\func{static bool}{RemoveHandler}{\param{const wxString\& }{name}}
350
351Finds the handler with the given name, and removes it. The handler
352is not deleted.
353
354\docparam{name}{The handler name.}
355
356\wxheading{Return value}
357
358TRUE if the handler was found and removed, FALSE otherwise.
359
360\wxheading{See also}
361
362\helpref{wxBitmapHandler}{wxbitmaphandler}
363
364\membersection{wxBitmap::SaveFile}\label{wxbitmapsavefile}
365
366\func{bool}{SaveFile}{\param{const wxString\& }{name}, \param{int}{ type}, \param{wxPalette* }{palette = NULL}}
367
368Saves a bitmap in the named file.
369
370\wxheading{Parameters}
371
372\docparam{name}{A filename. The meaning of {\it name} is determined by the {\it type} parameter.}
373
374\docparam{type}{One of the following values:
375
376\twocolwidtha{5cm}
377\begin{twocollist}
378\twocolitem{{\bf wxBITMAP\_TYPE\_BMP}}{Save a Windows bitmap file.}
379\twocolitem{{\bf wxBITMAP\_TYPE\_GIF}}{Save a GIF bitmap file.}
380\twocolitem{{\bf wxBITMAP\_TYPE\_XBM}}{Save an X bitmap file.}
381\twocolitem{{\bf wxBITMAP\_TYPE\_XPM}}{Save an XPM bitmap file.}
382\end{twocollist}
383
384The validity of these flags depends on the platform and wxWindows configuration.}
385
386\docparam{palette}{An optional palette used for saving the bitmap. TODO: this parameter should
387probably be eliminated; instead the app should set the palette before saving.}
388
389\wxheading{Return value}
390
391TRUE if the operation succeeded, FALSE otherwise.
392
393\wxheading{Remarks}
394
395Depending on how wxWindows has been configured, not all formats may be available.
396
397\wxheading{See also}
398
399\helpref{wxBitmap::LoadFile}{wxbitmaploadfile}
400
401\membersection{wxBitmap::SetDepth}\label{wxbitmapsetdepth}
402
403\func{void}{SetDepth}{\param{int }{depth}}
404
405Sets the depth member (does not affect the bitmap data).
406
407\wxheading{Parameters}
408
409\docparam{depth}{Bitmap depth.}
410
411\membersection{wxBitmap::SetHeight}\label{wxbitmapsetheight}
412
413\func{void}{SetHeight}{\param{int }{height}}
414
415Sets the height member (does not affect the bitmap data).
416
417\wxheading{Parameters}
418
419\docparam{height}{Bitmap height in pixels.}
420
421\membersection{wxBitmap::SetMask}\label{wxbitmapsetmask}
422
423\func{void}{SetMask}{\param{wxMask* }{mask}}
424
425Sets the mask for this bitmap.
426
427\wxheading{Remarks}
428
429The bitmap object owns the mask once this has been called.
430
431\wxheading{See also}
432
433\helpref{wxBitmap::GetMask}{wxbitmapgetmask}, \helpref{wxMask}{wxmask}
434
435\membersection{wxBitmap::SetOk}
436
437\func{void}{SetOk}{\param{int }{isOk}}
438
439Sets the validity member (does not affect the bitmap data).
440
441\wxheading{Parameters}
442
443\docparam{isOk}{Validity flag.}
444
445\membersection{wxBitmap::SetPalette}\label{wxbitmapsetpalette}
446
447\func{void}{SetPalette}{\param{wxPalette* }{palette}}
448
449Sets the associated palette: it will be deleted in the wxBitmap
450destructor, so if you do not wish it to be deleted automatically,
451reset the palette to NULL before the bitmap is deleted.
452
453\wxheading{Parameters}
454
455\docparam{palette}{The palette to set.}
456
457\wxheading{Remarks}
458
459The bitmap object owns the palette once this has been called.
460
461\wxheading{See also}
462
463\helpref{wxPalette}{wxpalette}
464
465\membersection{wxBitmap::SetWidth}
466
467\func{void}{SetWidth}{\param{int }{width}}
468
469Sets the width member (does not affect the bitmap data).
470
471\wxheading{Parameters}
472
473\docparam{width}{Bitmap width in pixels.}
474
475\membersection{wxBitmap::operator $=$}
476
477\func{wxBitmap\& }{operator $=$}{\param{const wxBitmap\& }{bitmap}}
478
479Assignment operator. This operator does not copy any data, but instead
480passes a pointer to the data in {\it bitmap} and increments a reference
481counter. It is a fast operation.
482
483\wxheading{Parameters}
484
485\docparam{bitmap}{Bitmap to assign.}
486
487\wxheading{Return value}
488
489Returns 'this' object.
490
491\membersection{wxBitmap::operator $==$}
492
493\func{bool}{operator $==$}{\param{const wxBitmap\& }{bitmap}}
494
495Equality operator. This operator tests whether the internal data pointers are
496equal (a fast test).
497
498\wxheading{Parameters}
499
500\docparam{bitmap}{Bitmap to compare with 'this'}
501
502\wxheading{Return value}
503
504Returns TRUE if the bitmaps were effectively equal, FALSE otherwise.
505
506\membersection{wxBitmap::operator $!=$}
507
508\func{bool}{operator $!=$}{\param{const wxBitmap\& }{bitmap}}
509
510Inequality operator. This operator tests whether the internal data pointers are
511unequal (a fast test).
512
513\wxheading{Parameters}
514
515\docparam{bitmap}{Bitmap to compare with 'this'}
516
517\wxheading{Return value}
518
519Returns TRUE if the bitmaps were unequal, FALSE otherwise.
520
521\section{\class{wxBitmapHandler}}\label{wxbitmaphandler}
522
523\overview{Overview}{wxbitmapoverview}
524
525This is the base class for implementing bitmap file loading/saving, and bitmap creation from data.
526It is used within wxBitmap and is not normally seen by the application.
527
528If you wish to extend the capabilities of wxBitmap, derive a class from wxBitmapHandler
529and add the handler using \helpref{wxBitmap::AddHandler}{wxbitmapaddhandler} in your
530application initialisation.
531
532\wxheading{Derived from}
533
534\helpref{wxObject}{wxobject}
535
536\wxheading{See also}
537
538\helpref{wxBitmap}{wxbitmap}, \helpref{wxIcon}{wxicon}, \helpref{wxCursor}{wxcursor}
539
540\latexignore{\rtfignore{\wxheading{Members}}}
541
542\membersection{wxBitmapHandler::wxBitmapHandler}\label{wxbitmaphandlerconstr}
543
544\func{}{wxBitmapHandler}{\void}
545
546Default constructor. In your own default constructor, initialise the members
547m\_name, m\_extension and m\_type.
548
549\membersection{wxBitmapHandler::\destruct{wxBitmapHandler}}
550
551\func{}{\destruct{wxBitmapHandler}}{\void}
552
553Destroys the wxBitmapHandler object.
554
555\membersection{wxBitmapHandler::Create}
556
eaaa6a06 557\func{virtual bool}{Create}{\param{wxBitmap* }{bitmap}, \param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
558
559Creates a bitmap from the given data, which can be of arbitrary type. The wxBitmap object {\it bitmap} is
560manipulated by this function.
561
562\wxheading{Parameters}
563
564\docparam{bitmap}{The wxBitmap object.}
565
566\docparam{width}{The width of the bitmap in pixels.}
567
568\docparam{height}{The height of the bitmap in pixels.}
569
570\docparam{depth}{The depth of the bitmap in pixels. If this is -1, the screen depth is used.}
571
572\docparam{data}{Data whose type depends on the value of {\it type}.}
573
574\docparam{type}{A bitmap type identifier - see \helpref{wxBitmapHandler::wxBitmapHandler}{wxbitmapconstr} for a list
575of possible values.}
576
577\wxheading{Return value}
578
579TRUE if the call succeeded, FALSE otherwise (the default).
580
581\membersection{wxBitmapHandler::GetName}
582
583\constfunc{wxString}{GetName}{\void}
584
585Gets the name of this handler.
586
587\membersection{wxBitmapHandler::GetExtension}
588
589\constfunc{wxString}{GetExtension}{\void}
590
591Gets the file extension associated with this handler.
592
593\membersection{wxBitmapHandler::GetType}
594
595\constfunc{long}{GetType}{\void}
596
597Gets the bitmap type associated with this handler.
598
599\membersection{wxBitmapHandler::LoadFile}\label{wxbitmaphandlerloadfile}
600
eaaa6a06 601\func{bool}{LoadFile}{\param{wxBitmap* }{bitmap}, \param{const wxString\&}{ name}, \param{long}{ type}}
a660d684
KB
602
603Loads a bitmap from a file or resource, putting the resulting data into {\it bitmap}.
604
605\wxheading{Parameters}
606
607\docparam{bitmap}{The bitmap object which is to be affected by this operation.}
608
609\docparam{name}{Either a filename or a Windows resource name.
610The meaning of {\it name} is determined by the {\it type} parameter.}
611
612\docparam{type}{See \helpref{wxBitmap::wxBitmap}{wxbitmapconstr} for values this can take.}
613
614\wxheading{Return value}
615
616TRUE if the operation succeeded, FALSE otherwise.
617
618\wxheading{See also}
619
620\helpref{wxBitmap::LoadFile}{wxbitmaploadfile}\\
621\helpref{wxBitmap::SaveFile}{wxbitmapsavefile}\\
622\helpref{wxBitmapHandler::SaveFile}{wxbitmaphandlersavefile}
623
624\membersection{wxBitmapHandler::SaveFile}\label{wxbitmaphandlersavefile}
625
626\func{bool}{SaveFile}{\param{wxBitmap* }{bitmap}, \param{const wxString\& }{name}, \param{int}{ type}, \param{wxPalette* }{palette = NULL}}
627
628Saves a bitmap in the named file.
629
630\wxheading{Parameters}
631
632\docparam{bitmap}{The bitmap object which is to be affected by this operation.}
633
634\docparam{name}{A filename. The meaning of {\it name} is determined by the {\it type} parameter.}
635
636\docparam{type}{See \helpref{wxBitmap::wxBitmap}{wxbitmapconstr} for values this can take.}
637
638\docparam{palette}{An optional palette used for saving the bitmap. TODO: this parameter should
639probably be eliminated; instead the app should set the palette before saving.}
640
641\wxheading{Return value}
642
643TRUE if the operation succeeded, FALSE otherwise.
644
645\wxheading{See also}
646
647\helpref{wxBitmap::LoadFile}{wxbitmaploadfile}\\
648\helpref{wxBitmap::SaveFile}{wxbitmapsavefile}\\
649\helpref{wxBitmapHandler::LoadFile}{wxbitmaphandlerloadfile}
650
651\membersection{wxBitmapHandler::SetName}
652
653\func{void}{SetName}{\param{const wxString\& }{name}}
654
655Sets the handler name.
656
657\wxheading{Parameters}
658
659\docparam{name}{Handler name.}
660
661\membersection{wxBitmapHandler::SetExtension}
662
663\func{void}{SetExtension}{\param{const wxString\& }{extension}}
664
665Sets the handler extension.
666
667\wxheading{Parameters}
668
669\docparam{extension}{Handler extension.}
670
671\membersection{wxBitmapHandler::SetType}
672
673\func{void}{SetType}{\param{long }{type}}
674
675Sets the handler type.
676
677\wxheading{Parameters}
678
679\docparam{name}{Handler type.}
680
681