1 \section{\class{wxBitmap
}}\label{wxbitmap
}
3 %\overview{Overview}{wxbitmapoverview}
5 This class encapsulates the concept of a platform-dependent bitmap,
6 either monochrome or colour.
8 \wxheading{Derived from
}
10 \helpref{wxGDIObject
}{wxgdiobject
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
17 \wxheading{Predefined objects
}
25 \helpref{wxBitmap overview
}{wxbitmapoverview
},
26 \helpref{supported bitmap file formats
}{supportedbitmapformats
},
27 \helpref{wxDC::Blit
}{wxdcblit
},
28 \helpref{wxIcon
}{wxicon
},
\helpref{wxCursor
}{wxcursor
},
\helpref{wxBitmap
}{wxbitmap
},
29 \helpref{wxMemoryDC
}{wxmemorydc
}
31 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxBitmap::wxBitmap
}\label{wxbitmapconstr
}
35 \func{}{wxBitmap
}{\void}
39 \func{}{wxBitmap
}{\param{const wxBitmap\&
}{bitmap
}}
43 \func{}{wxBitmap
}{\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
45 Creates a bitmap from the given data, which can be of arbitrary type.
46 Windows only, I think.
48 \func{}{wxBitmap
}{\param{const char
}{ bits
[]},
\param{int
}{ width
},
\param{int
}{ height
}\\
49 \param{int
}{ depth =
1}}
51 Creates a bitmap from an array of bits.
53 Note that the bit depth is ignored on GTK+ and Motif. If you want to create a bitmap
54 from something else than a
1-bit data array, use the
\helpref{wxImage
}{wximage
} class.
56 \func{}{wxBitmap
}{\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
58 Creates a new bitmap. A depth of -
1 indicates the depth of the current screen or
59 visual. Some platforms only support
1 for monochrome and -
1 for the current colour
62 \func{}{wxBitmap
}{\param{const char**
}{ bits
}}
64 Creates a bitmap from XPM data.
66 \func{}{wxBitmap
}{\param{const wxString\&
}{name
},
\param{long
}{ type
}}
68 Loads a bitmap from a file or resource.
70 \wxheading{Parameters
}
72 \docparam{bits
}{Specifies an array of pixel values.
}
74 \docparam{width
}{Specifies the width of the bitmap.
}
76 \docparam{height
}{Specifies the height of the bitmap.
}
78 \docparam{depth
}{Specifies the depth of the bitmap. If this is omitted, the display depth of the
81 \docparam{name
}{This can refer to a resource name under MS Windows, or a filename under MS Windows and X.
82 Its meaning is determined by the
{\it type
} parameter.
}
84 \docparam{type
}{May be one of the following:
88 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_BMP}}}{Load a Windows bitmap file.
}
89 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_BMP\_RESOURCE}}}{Load a Windows bitmap from the resource database.
}
90 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_GIF}}}{Load a GIF bitmap file.
}
91 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_XBM}}}{Load an X bitmap file.
}
92 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_XPM}}}{Load an XPM bitmap file.
}
93 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_RESOURCE}}}{Load a Windows resource name.
}
96 The validity of these flags depends on the platform and wxWindows configuration.
97 If all possible wxWindows settings are used, the Windows platform supports BMP file, BMP resource,
98 XPM data, and XPM. Under wxGTK, the available formats are BMP file, XPM data, XPM file, and PNG file.
99 Under wxMotif, the available formats are XBM data, XBM file, XPM data, XPM file.
}
103 The first form constructs a bitmap object with no data; an assignment or another member function such as Create
104 or LoadFile must be called subsequently.
106 The second and third forms provide copy constructors. Note that these do not copy the
107 bitmap data, but instead a pointer to the data, keeping a reference count. They are therefore
108 very efficient operations.
110 The fourth form constructs a bitmap from data whose type and value depends on
111 the value of the
{\it type
} argument.
113 The fifth form constructs a (usually monochrome) bitmap from an array of pixel values, under both
116 The sixth form constructs a new bitmap.
118 The seventh form constructs a bitmap from pixmap (XPM) data, if wxWindows has been configured
119 to incorporate this feature.
121 To use this constructor, you must first include an XPM file. For
122 example, assuming that the file
{\tt mybitmap.xpm
} contains an XPM array
123 of character pointers called mybitmap:
126 #include "mybitmap.xpm"
130 wxBitmap *bitmap = new wxBitmap(mybitmap);
133 The eighth form constructs a bitmap from a file or resource.
{\it name
} can refer
134 to a resource name under MS Windows, or a filename under MS Windows and X.
136 Under Windows,
{\it type
} defaults to wxBITMAP
\_TYPE\_BMP\_RESOURCE.
137 Under X,
{\it type
} defaults to wxBITMAP
\_TYPE\_XPM.
141 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}
143 \pythonnote{Constructors supported by wxPython are:
\par
144 \indented{2cm
}{\begin{twocollist
}
145 \twocolitem{\bf{wxBitmap(name, flag)
}}{Loads a bitmap from a file
}
146 \twocolitem{\bf{wxBitmapFromData(data, type, width, height, depth=
1)
}}{Creates
147 a bitmap from the given data, which can be of arbitrary type.
}
148 \twocolitem{\bf{wxNoRefBitmap(name, flag)
}}{This one won't own the
149 reference, so Python won't call the destructor, this is good for toolbars
150 and such where the parent will manage the bitmap.
}
151 \twocolitem{\bf{wxEmptyBitmap(width, height, depth = -
1)
}}{Creates an
152 empty bitmap with the given specifications
}
156 \membersection{wxBitmap::
\destruct{wxBitmap
}}
158 \func{}{\destruct{wxBitmap
}}{\void}
160 Destroys the wxBitmap object and possibly the underlying bitmap data.
161 Because reference counting is used, the bitmap may not actually be
162 destroyed at this point - only when the reference count is zero will the
165 If the application omits to delete the bitmap explicitly, the bitmap will be
166 destroyed automatically by wxWindows when the application exits.
168 Do not delete a bitmap that is selected into a memory device context.
170 \membersection{wxBitmap::AddHandler
}\label{wxbitmapaddhandler
}
172 \func{static void
}{AddHandler
}{\param{wxBitmapHandler*
}{ handler
}}
174 Adds a handler to the end of the static list of format handlers.
176 \docparam{handler
}{A new bitmap format handler object. There is usually only one instance
177 of a given handler class in an application session.
}
181 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
183 \membersection{wxBitmap::CleanUpHandlers
}
185 \func{static void
}{CleanUpHandlers
}{\void}
187 Deletes all bitmap handlers.
189 This function is called by wxWindows on exit.
191 \membersection{wxBitmap::Create
}
193 \func{virtual bool
}{Create
}{\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
195 Creates a fresh bitmap. If the final argument is omitted, the display depth of
198 \func{virtual bool
}{Create
}{\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
200 Creates a bitmap from the given data, which can be of arbitrary type.
202 \wxheading{Parameters
}
204 \docparam{width
}{The width of the bitmap in pixels.
}
206 \docparam{height
}{The height of the bitmap in pixels.
}
208 \docparam{depth
}{The depth of the bitmap in pixels. If this is -
1, the screen depth is used.
}
210 \docparam{data
}{Data whose type depends on the value of
{\it type
}.
}
212 \docparam{type
}{A bitmap type identifier - see
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for a list
215 \wxheading{Return value
}
217 TRUE if the call succeeded, FALSE otherwise.
221 The first form works on all platforms. The portability of the second form depends on the
226 \helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
}
228 \membersection{wxBitmap::FindHandler
}
230 \func{static wxBitmapHandler*
}{FindHandler
}{\param{const wxString\&
}{name
}}
232 Finds the handler with the given name.
234 \func{static wxBitmapHandler*
}{FindHandler
}{\param{const wxString\&
}{extension
},
\param{long
}{ bitmapType
}}
236 Finds the handler associated with the given extension and type.
238 \func{static wxBitmapHandler*
}{FindHandler
}{\param{long
}{bitmapType
}}
240 Finds the handler associated with the given bitmap type.
242 \docparam{name
}{The handler name.
}
244 \docparam{extension
}{The file extension, such as ``bmp".
}
246 \docparam{bitmapType
}{The bitmap type, such as wxBITMAP
\_TYPE\_BMP.
}
248 \wxheading{Return value
}
250 A pointer to the handler if found, NULL otherwise.
254 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
256 \membersection{wxBitmap::GetDepth
}
258 \constfunc{int
}{GetDepth
}{\void}
260 Gets the colour depth of the bitmap. A value of
1 indicates a
263 \membersection{wxBitmap::GetHandlers
}
265 \func{static wxList\&
}{GetHandlers
}{\void}
267 Returns the static list of bitmap format handlers.
271 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
273 \membersection{wxBitmap::GetHeight
}\label{wxbitmapgetheight
}
275 \constfunc{int
}{GetHeight
}{\void}
277 Gets the height of the bitmap in pixels.
279 \membersection{wxBitmap::GetPalette
}\label{wxbitmapgetpalette
}
281 \constfunc{wxPalette*
}{GetPalette
}{\void}
283 Gets the associated palette (if any) which may have been loaded from a file
284 or set for the bitmap.
288 \helpref{wxPalette
}{wxpalette
}
290 \membersection{wxBitmap::GetMask
}\label{wxbitmapgetmask
}
292 \constfunc{wxMask*
}{GetMask
}{\void}
294 Gets the associated mask (if any) which may have been loaded from a file
295 or set for the bitmap.
299 \helpref{wxBitmap::SetMask
}{wxbitmapsetmask
},
\helpref{wxMask
}{wxmask
}
301 \membersection{wxBitmap::GetWidth
}\label{wxbitmapgetwidth
}
303 \constfunc{int
}{GetWidth
}{\void}
305 Gets the width of the bitmap in pixels.
309 \helpref{wxBitmap::GetHeight
}{wxbitmapgetheight
}
311 \membersection{wxBitmap::InitStandardHandlers
}
313 \func{static void
}{InitStandardHandlers
}{\void}
315 Adds the standard bitmap format handlers, which, depending on wxWindows
316 configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM.
318 This function is called by wxWindows on startup.
322 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
324 \membersection{wxBitmap::InsertHandler
}
326 \func{static void
}{InsertHandler
}{\param{wxBitmapHandler*
}{ handler
}}
328 Adds a handler at the start of the static list of format handlers.
330 \docparam{handler
}{A new bitmap format handler object. There is usually only one instance
331 of a given handler class in an application session.
}
335 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
337 \membersection{wxBitmap::LoadFile
}\label{wxbitmaploadfile
}
339 \func{bool
}{LoadFile
}{\param{const wxString\&
}{ name
},
\param{long
}{ type
}}
341 Loads a bitmap from a file or resource.
343 \wxheading{Parameters
}
345 \docparam{name
}{Either a filename or a Windows resource name.
346 The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
348 \docparam{type
}{One of the following values:
352 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP}}{Load a Windows bitmap file.
}
353 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap from the resource database.
}
354 \twocolitem{{\bf wxBITMAP
\_TYPE\_GIF}}{Load a GIF bitmap file.
}
355 \twocolitem{{\bf wxBITMAP
\_TYPE\_XBM}}{Load an X bitmap file.
}
356 \twocolitem{{\bf wxBITMAP
\_TYPE\_XPM}}{Load an XPM bitmap file.
}
359 The validity of these flags depends on the platform and wxWindows configuration.
}
361 \wxheading{Return value
}
363 TRUE if the operation succeeded, FALSE otherwise.
367 A palette may be associated with the bitmap if one exists (especially for
368 colour Windows bitmaps), and if the code supports it. You can check
369 if one has been created by using the
\helpref{GetPalette
}{wxbitmapgetpalette
} member.
373 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}
375 \membersection{wxBitmap::Ok
}\label{wxbitmapok
}
377 \constfunc{bool
}{Ok
}{\void}
379 Returns TRUE if bitmap data is present.
381 \membersection{wxBitmap::RemoveHandler
}
383 \func{static bool
}{RemoveHandler
}{\param{const wxString\&
}{name
}}
385 Finds the handler with the given name, and removes it. The handler
388 \docparam{name
}{The handler name.
}
390 \wxheading{Return value
}
392 TRUE if the handler was found and removed, FALSE otherwise.
396 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
398 \membersection{wxBitmap::SaveFile
}\label{wxbitmapsavefile
}
400 \func{bool
}{SaveFile
}{\param{const wxString\&
}{name
},
\param{int
}{ type
},
\param{wxPalette*
}{palette = NULL
}}
402 Saves a bitmap in the named file.
404 \wxheading{Parameters
}
406 \docparam{name
}{A filename. The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
408 \docparam{type
}{One of the following values:
412 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP}}{Save a Windows bitmap file.
}
413 \twocolitem{{\bf wxBITMAP
\_TYPE\_GIF}}{Save a GIF bitmap file.
}
414 \twocolitem{{\bf wxBITMAP
\_TYPE\_XBM}}{Save an X bitmap file.
}
415 \twocolitem{{\bf wxBITMAP
\_TYPE\_XPM}}{Save an XPM bitmap file.
}
418 The validity of these flags depends on the platform and wxWindows configuration.
}
420 \docparam{palette
}{An optional palette used for saving the bitmap.
}
421 % TODO: this parameter should
422 %probably be eliminated; instead the app should set the palette before saving.
424 \wxheading{Return value
}
426 TRUE if the operation succeeded, FALSE otherwise.
430 Depending on how wxWindows has been configured, not all formats may be available.
434 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}
436 \membersection{wxBitmap::SetDepth
}\label{wxbitmapsetdepth
}
438 \func{void
}{SetDepth
}{\param{int
}{depth
}}
440 Sets the depth member (does not affect the bitmap data).
442 \wxheading{Parameters
}
444 \docparam{depth
}{Bitmap depth.
}
446 \membersection{wxBitmap::SetHeight
}\label{wxbitmapsetheight
}
448 \func{void
}{SetHeight
}{\param{int
}{height
}}
450 Sets the height member (does not affect the bitmap data).
452 \wxheading{Parameters
}
454 \docparam{height
}{Bitmap height in pixels.
}
456 \membersection{wxBitmap::SetMask
}\label{wxbitmapsetmask
}
458 \func{void
}{SetMask
}{\param{wxMask*
}{mask
}}
460 Sets the mask for this bitmap.
464 The bitmap object owns the mask once this has been called.
468 \helpref{wxBitmap::GetMask
}{wxbitmapgetmask
},
\helpref{wxMask
}{wxmask
}
470 \membersection{wxBitmap::SetOk
}
472 \func{void
}{SetOk
}{\param{int
}{isOk
}}
474 Sets the validity member (does not affect the bitmap data).
476 \wxheading{Parameters
}
478 \docparam{isOk
}{Validity flag.
}
480 \membersection{wxBitmap::SetPalette
}\label{wxbitmapsetpalette
}
482 \func{void
}{SetPalette
}{\param{wxPalette*
}{palette
}}
484 Sets the associated palette: it will be deleted in the wxBitmap
485 destructor, so if you do not wish it to be deleted automatically,
486 reset the palette to NULL before the bitmap is deleted.
488 \wxheading{Parameters
}
490 \docparam{palette
}{The palette to set.
}
494 The bitmap object owns the palette once this has been called.
498 \helpref{wxPalette
}{wxpalette
}
500 \membersection{wxBitmap::SetWidth
}
502 \func{void
}{SetWidth
}{\param{int
}{width
}}
504 Sets the width member (does not affect the bitmap data).
506 \wxheading{Parameters
}
508 \docparam{width
}{Bitmap width in pixels.
}
510 \membersection{wxBitmap::operator $=$
}
512 \func{wxBitmap\&
}{operator $=$
}{\param{const wxBitmap\&
}{bitmap
}}
514 Assignment operator. This operator does not copy any data, but instead
515 passes a pointer to the data in
{\it bitmap
} and increments a reference
516 counter. It is a fast operation.
518 \wxheading{Parameters
}
520 \docparam{bitmap
}{Bitmap to assign.
}
522 \wxheading{Return value
}
524 Returns 'this' object.
526 \membersection{wxBitmap::operator $==$
}
528 \func{bool
}{operator $==$
}{\param{const wxBitmap\&
}{bitmap
}}
530 Equality operator. This operator tests whether the internal data pointers are
533 \wxheading{Parameters
}
535 \docparam{bitmap
}{Bitmap to compare with 'this'
}
537 \wxheading{Return value
}
539 Returns TRUE if the bitmaps were effectively equal, FALSE otherwise.
541 \membersection{wxBitmap::operator $!=$
}
543 \func{bool
}{operator $!=$
}{\param{const wxBitmap\&
}{bitmap
}}
545 Inequality operator. This operator tests whether the internal data pointers are
546 unequal (a fast test).
548 \wxheading{Parameters
}
550 \docparam{bitmap
}{Bitmap to compare with 'this'
}
552 \wxheading{Return value
}
554 Returns TRUE if the bitmaps were unequal, FALSE otherwise.
556 \section{\class{wxBitmapHandler
}}\label{wxbitmaphandler
}
558 \overview{Overview
}{wxbitmapoverview
}
560 This is the base class for implementing bitmap file loading/saving, and bitmap creation from data.
561 It is used within wxBitmap and is not normally seen by the application.
563 If you wish to extend the capabilities of wxBitmap, derive a class from wxBitmapHandler
564 and add the handler using
\helpref{wxBitmap::AddHandler
}{wxbitmapaddhandler
} in your
565 application initialisation.
567 \wxheading{Derived from
}
569 \helpref{wxObject
}{wxobject
}
571 \wxheading{Include files
}
577 \helpref{wxBitmap
}{wxbitmap
},
\helpref{wxIcon
}{wxicon
},
\helpref{wxCursor
}{wxcursor
}
579 \latexignore{\rtfignore{\wxheading{Members
}}}
581 \membersection{wxBitmapHandler::wxBitmapHandler
}\label{wxbitmaphandlerconstr
}
583 \func{}{wxBitmapHandler
}{\void}
585 Default constructor. In your own default constructor, initialise the members
586 m
\_name, m
\_extension and m
\_type.
588 \membersection{wxBitmapHandler::
\destruct{wxBitmapHandler
}}
590 \func{}{\destruct{wxBitmapHandler
}}{\void}
592 Destroys the wxBitmapHandler object.
594 \membersection{wxBitmapHandler::Create
}
596 \func{virtual bool
}{Create
}{\param{wxBitmap*
}{bitmap
},
\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
598 Creates a bitmap from the given data, which can be of arbitrary type. The wxBitmap object
{\it bitmap
} is
599 manipulated by this function.
601 \wxheading{Parameters
}
603 \docparam{bitmap
}{The wxBitmap object.
}
605 \docparam{width
}{The width of the bitmap in pixels.
}
607 \docparam{height
}{The height of the bitmap in pixels.
}
609 \docparam{depth
}{The depth of the bitmap in pixels. If this is -
1, the screen depth is used.
}
611 \docparam{data
}{Data whose type depends on the value of
{\it type
}.
}
613 \docparam{type
}{A bitmap type identifier - see
\helpref{wxBitmapHandler::wxBitmapHandler
}{wxbitmapconstr
} for a list
616 \wxheading{Return value
}
618 TRUE if the call succeeded, FALSE otherwise (the default).
620 \membersection{wxBitmapHandler::GetName
}
622 \constfunc{wxString
}{GetName
}{\void}
624 Gets the name of this handler.
626 \membersection{wxBitmapHandler::GetExtension
}
628 \constfunc{wxString
}{GetExtension
}{\void}
630 Gets the file extension associated with this handler.
632 \membersection{wxBitmapHandler::GetType
}
634 \constfunc{long
}{GetType
}{\void}
636 Gets the bitmap type associated with this handler.
638 \membersection{wxBitmapHandler::LoadFile
}\label{wxbitmaphandlerloadfile
}
640 \func{bool
}{LoadFile
}{\param{wxBitmap*
}{bitmap
},
\param{const wxString\&
}{ name
},
\param{long
}{ type
}}
642 Loads a bitmap from a file or resource, putting the resulting data into
{\it bitmap
}.
644 \wxheading{Parameters
}
646 \docparam{bitmap
}{The bitmap object which is to be affected by this operation.
}
648 \docparam{name
}{Either a filename or a Windows resource name.
649 The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
651 \docparam{type
}{See
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for values this can take.
}
653 \wxheading{Return value
}
655 TRUE if the operation succeeded, FALSE otherwise.
659 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}\\
660 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}\\
661 \helpref{wxBitmapHandler::SaveFile
}{wxbitmaphandlersavefile
}
663 \membersection{wxBitmapHandler::SaveFile
}\label{wxbitmaphandlersavefile
}
665 \func{bool
}{SaveFile
}{\param{wxBitmap*
}{bitmap
},
\param{const wxString\&
}{name
},
\param{int
}{ type
},
\param{wxPalette*
}{palette = NULL
}}
667 Saves a bitmap in the named file.
669 \wxheading{Parameters
}
671 \docparam{bitmap
}{The bitmap object which is to be affected by this operation.
}
673 \docparam{name
}{A filename. The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
675 \docparam{type
}{See
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for values this can take.
}
677 \docparam{palette
}{An optional palette used for saving the bitmap.
}
679 \wxheading{Return value
}
681 TRUE if the operation succeeded, FALSE otherwise.
685 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}\\
686 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}\\
687 \helpref{wxBitmapHandler::LoadFile
}{wxbitmaphandlerloadfile
}
689 \membersection{wxBitmapHandler::SetName
}
691 \func{void
}{SetName
}{\param{const wxString\&
}{name
}}
693 Sets the handler name.
695 \wxheading{Parameters
}
697 \docparam{name
}{Handler name.
}
699 \membersection{wxBitmapHandler::SetExtension
}
701 \func{void
}{SetExtension
}{\param{const wxString\&
}{extension
}}
703 Sets the handler extension.
705 \wxheading{Parameters
}
707 \docparam{extension
}{Handler extension.
}
709 \membersection{wxBitmapHandler::SetType
}
711 \func{void
}{SetType
}{\param{long
}{type
}}
713 Sets the handler type.
715 \wxheading{Parameters
}
717 \docparam{name
}{Handler type.
}