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{wxNoRefBitmap(name, flag)
}}{This one won't own the
147 reference, so Python won't call the destructor, this is good for toolbars
148 and such where the parent will manage the bitmap.
}
149 \twocolitem{\bf{wxEmptyBitmap(width, height, depth = -
1)
}}{Creates an
150 empty bitmap with the given specifications
}
154 \membersection{wxBitmap::
\destruct{wxBitmap
}}
156 \func{}{\destruct{wxBitmap
}}{\void}
158 Destroys the wxBitmap object and possibly the underlying bitmap data.
159 Because reference counting is used, the bitmap may not actually be
160 destroyed at this point - only when the reference count is zero will the
163 If the application omits to delete the bitmap explicitly, the bitmap will be
164 destroyed automatically by wxWindows when the application exits.
166 Do not delete a bitmap that is selected into a memory device context.
168 \membersection{wxBitmap::AddHandler
}\label{wxbitmapaddhandler
}
170 \func{static void
}{AddHandler
}{\param{wxBitmapHandler*
}{ handler
}}
172 Adds a handler to the end of the static list of format handlers.
174 \docparam{handler
}{A new bitmap format handler object. There is usually only one instance
175 of a given handler class in an application session.
}
179 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
181 \membersection{wxBitmap::CleanUpHandlers
}
183 \func{static void
}{CleanUpHandlers
}{\void}
185 Deletes all bitmap handlers.
187 This function is called by wxWindows on exit.
189 \membersection{wxBitmap::Create
}
191 \func{virtual bool
}{Create
}{\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
193 Creates a fresh bitmap. If the final argument is omitted, the display depth of
196 \func{virtual bool
}{Create
}{\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
198 Creates a bitmap from the given data, which can be of arbitrary type.
200 \wxheading{Parameters
}
202 \docparam{width
}{The width of the bitmap in pixels.
}
204 \docparam{height
}{The height of the bitmap in pixels.
}
206 \docparam{depth
}{The depth of the bitmap in pixels. If this is -
1, the screen depth is used.
}
208 \docparam{data
}{Data whose type depends on the value of
{\it type
}.
}
210 \docparam{type
}{A bitmap type identifier - see
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for a list
213 \wxheading{Return value
}
215 TRUE if the call succeeded, FALSE otherwise.
219 The first form works on all platforms. The portability of the second form depends on the
224 \helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
}
226 \membersection{wxBitmap::FindHandler
}
228 \func{static wxBitmapHandler*
}{FindHandler
}{\param{const wxString\&
}{name
}}
230 Finds the handler with the given name.
232 \func{static wxBitmapHandler*
}{FindHandler
}{\param{const wxString\&
}{extension
},
\param{long
}{ bitmapType
}}
234 Finds the handler associated with the given extension and type.
236 \func{static wxBitmapHandler*
}{FindHandler
}{\param{long
}{bitmapType
}}
238 Finds the handler associated with the given bitmap type.
240 \docparam{name
}{The handler name.
}
242 \docparam{extension
}{The file extension, such as ``bmp".
}
244 \docparam{bitmapType
}{The bitmap type, such as wxBITMAP
\_TYPE\_BMP.
}
246 \wxheading{Return value
}
248 A pointer to the handler if found, NULL otherwise.
252 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
254 \membersection{wxBitmap::GetDepth
}
256 \constfunc{int
}{GetDepth
}{\void}
258 Gets the colour depth of the bitmap. A value of
1 indicates a
261 \membersection{wxBitmap::GetHandlers
}
263 \func{static wxList\&
}{GetHandlers
}{\void}
265 Returns the static list of bitmap format handlers.
269 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
271 \membersection{wxBitmap::GetHeight
}\label{wxbitmapgetheight
}
273 \constfunc{int
}{GetHeight
}{\void}
275 Gets the height of the bitmap in pixels.
277 \membersection{wxBitmap::GetPalette
}\label{wxbitmapgetpalette
}
279 \constfunc{wxPalette*
}{GetPalette
}{\void}
281 Gets the associated palette (if any) which may have been loaded from a file
282 or set for the bitmap.
286 \helpref{wxPalette
}{wxpalette
}
288 \membersection{wxBitmap::GetMask
}\label{wxbitmapgetmask
}
290 \constfunc{wxMask*
}{GetMask
}{\void}
292 Gets the associated mask (if any) which may have been loaded from a file
293 or set for the bitmap.
297 \helpref{wxBitmap::SetMask
}{wxbitmapsetmask
},
\helpref{wxMask
}{wxmask
}
299 \membersection{wxBitmap::GetWidth
}\label{wxbitmapgetwidth
}
301 \constfunc{int
}{GetWidth
}{\void}
303 Gets the width of the bitmap in pixels.
307 \helpref{wxBitmap::GetHeight
}{wxbitmapgetheight
}
309 \membersection{wxBitmap::InitStandardHandlers
}
311 \func{static void
}{InitStandardHandlers
}{\void}
313 Adds the standard bitmap format handlers, which, depending on wxWindows
314 configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM.
316 This function is called by wxWindows on startup.
320 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
322 \membersection{wxBitmap::InsertHandler
}
324 \func{static void
}{InsertHandler
}{\param{wxBitmapHandler*
}{ handler
}}
326 Adds a handler at the start of the static list of format handlers.
328 \docparam{handler
}{A new bitmap format handler object. There is usually only one instance
329 of a given handler class in an application session.
}
333 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
335 \membersection{wxBitmap::LoadFile
}\label{wxbitmaploadfile
}
337 \func{bool
}{LoadFile
}{\param{const wxString\&
}{ name
},
\param{long
}{ type
}}
339 Loads a bitmap from a file or resource.
341 \wxheading{Parameters
}
343 \docparam{name
}{Either a filename or a Windows resource name.
344 The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
346 \docparam{type
}{One of the following values:
350 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP}}{Load a Windows bitmap file.
}
351 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap from the resource database.
}
352 \twocolitem{{\bf wxBITMAP
\_TYPE\_GIF}}{Load a GIF bitmap file.
}
353 \twocolitem{{\bf wxBITMAP
\_TYPE\_XBM}}{Load an X bitmap file.
}
354 \twocolitem{{\bf wxBITMAP
\_TYPE\_XPM}}{Load an XPM bitmap file.
}
357 The validity of these flags depends on the platform and wxWindows configuration.
}
359 \wxheading{Return value
}
361 TRUE if the operation succeeded, FALSE otherwise.
365 A palette may be associated with the bitmap if one exists (especially for
366 colour Windows bitmaps), and if the code supports it. You can check
367 if one has been created by using the
\helpref{GetPalette
}{wxbitmapgetpalette
} member.
371 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}
373 \membersection{wxBitmap::Ok
}\label{wxbitmapok
}
375 \constfunc{bool
}{Ok
}{\void}
377 Returns TRUE if bitmap data is present.
379 \membersection{wxBitmap::RemoveHandler
}
381 \func{static bool
}{RemoveHandler
}{\param{const wxString\&
}{name
}}
383 Finds the handler with the given name, and removes it. The handler
386 \docparam{name
}{The handler name.
}
388 \wxheading{Return value
}
390 TRUE if the handler was found and removed, FALSE otherwise.
394 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
396 \membersection{wxBitmap::SaveFile
}\label{wxbitmapsavefile
}
398 \func{bool
}{SaveFile
}{\param{const wxString\&
}{name
},
\param{int
}{ type
},
\param{wxPalette*
}{palette = NULL
}}
400 Saves a bitmap in the named file.
402 \wxheading{Parameters
}
404 \docparam{name
}{A filename. The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
406 \docparam{type
}{One of the following values:
410 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP}}{Save a Windows bitmap file.
}
411 \twocolitem{{\bf wxBITMAP
\_TYPE\_GIF}}{Save a GIF bitmap file.
}
412 \twocolitem{{\bf wxBITMAP
\_TYPE\_XBM}}{Save an X bitmap file.
}
413 \twocolitem{{\bf wxBITMAP
\_TYPE\_XPM}}{Save an XPM bitmap file.
}
416 The validity of these flags depends on the platform and wxWindows configuration.
}
418 \docparam{palette
}{An optional palette used for saving the bitmap.
}
419 % TODO: this parameter should
420 %probably be eliminated; instead the app should set the palette before saving.
422 \wxheading{Return value
}
424 TRUE if the operation succeeded, FALSE otherwise.
428 Depending on how wxWindows has been configured, not all formats may be available.
432 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}
434 \membersection{wxBitmap::SetDepth
}\label{wxbitmapsetdepth
}
436 \func{void
}{SetDepth
}{\param{int
}{depth
}}
438 Sets the depth member (does not affect the bitmap data).
440 \wxheading{Parameters
}
442 \docparam{depth
}{Bitmap depth.
}
444 \membersection{wxBitmap::SetHeight
}\label{wxbitmapsetheight
}
446 \func{void
}{SetHeight
}{\param{int
}{height
}}
448 Sets the height member (does not affect the bitmap data).
450 \wxheading{Parameters
}
452 \docparam{height
}{Bitmap height in pixels.
}
454 \membersection{wxBitmap::SetMask
}\label{wxbitmapsetmask
}
456 \func{void
}{SetMask
}{\param{wxMask*
}{mask
}}
458 Sets the mask for this bitmap.
462 The bitmap object owns the mask once this has been called.
466 \helpref{wxBitmap::GetMask
}{wxbitmapgetmask
},
\helpref{wxMask
}{wxmask
}
468 \membersection{wxBitmap::SetOk
}
470 \func{void
}{SetOk
}{\param{int
}{isOk
}}
472 Sets the validity member (does not affect the bitmap data).
474 \wxheading{Parameters
}
476 \docparam{isOk
}{Validity flag.
}
478 \membersection{wxBitmap::SetPalette
}\label{wxbitmapsetpalette
}
480 \func{void
}{SetPalette
}{\param{wxPalette*
}{palette
}}
482 Sets the associated palette: it will be deleted in the wxBitmap
483 destructor, so if you do not wish it to be deleted automatically,
484 reset the palette to NULL before the bitmap is deleted.
486 \wxheading{Parameters
}
488 \docparam{palette
}{The palette to set.
}
492 The bitmap object owns the palette once this has been called.
496 \helpref{wxPalette
}{wxpalette
}
498 \membersection{wxBitmap::SetWidth
}
500 \func{void
}{SetWidth
}{\param{int
}{width
}}
502 Sets the width member (does not affect the bitmap data).
504 \wxheading{Parameters
}
506 \docparam{width
}{Bitmap width in pixels.
}
508 \membersection{wxBitmap::operator $=$
}
510 \func{wxBitmap\&
}{operator $=$
}{\param{const wxBitmap\&
}{bitmap
}}
512 Assignment operator. This operator does not copy any data, but instead
513 passes a pointer to the data in
{\it bitmap
} and increments a reference
514 counter. It is a fast operation.
516 \wxheading{Parameters
}
518 \docparam{bitmap
}{Bitmap to assign.
}
520 \wxheading{Return value
}
522 Returns 'this' object.
524 \membersection{wxBitmap::operator $==$
}
526 \func{bool
}{operator $==$
}{\param{const wxBitmap\&
}{bitmap
}}
528 Equality operator. This operator tests whether the internal data pointers are
531 \wxheading{Parameters
}
533 \docparam{bitmap
}{Bitmap to compare with 'this'
}
535 \wxheading{Return value
}
537 Returns TRUE if the bitmaps were effectively equal, FALSE otherwise.
539 \membersection{wxBitmap::operator $!=$
}
541 \func{bool
}{operator $!=$
}{\param{const wxBitmap\&
}{bitmap
}}
543 Inequality operator. This operator tests whether the internal data pointers are
544 unequal (a fast test).
546 \wxheading{Parameters
}
548 \docparam{bitmap
}{Bitmap to compare with 'this'
}
550 \wxheading{Return value
}
552 Returns TRUE if the bitmaps were unequal, FALSE otherwise.
554 \section{\class{wxBitmapHandler
}}\label{wxbitmaphandler
}
556 \overview{Overview
}{wxbitmapoverview
}
558 This is the base class for implementing bitmap file loading/saving, and bitmap creation from data.
559 It is used within wxBitmap and is not normally seen by the application.
561 If you wish to extend the capabilities of wxBitmap, derive a class from wxBitmapHandler
562 and add the handler using
\helpref{wxBitmap::AddHandler
}{wxbitmapaddhandler
} in your
563 application initialisation.
565 \wxheading{Derived from
}
567 \helpref{wxObject
}{wxobject
}
569 \wxheading{Include files
}
575 \helpref{wxBitmap
}{wxbitmap
},
\helpref{wxIcon
}{wxicon
},
\helpref{wxCursor
}{wxcursor
}
577 \latexignore{\rtfignore{\wxheading{Members
}}}
579 \membersection{wxBitmapHandler::wxBitmapHandler
}\label{wxbitmaphandlerconstr
}
581 \func{}{wxBitmapHandler
}{\void}
583 Default constructor. In your own default constructor, initialise the members
584 m
\_name, m
\_extension and m
\_type.
586 \membersection{wxBitmapHandler::
\destruct{wxBitmapHandler
}}
588 \func{}{\destruct{wxBitmapHandler
}}{\void}
590 Destroys the wxBitmapHandler object.
592 \membersection{wxBitmapHandler::Create
}
594 \func{virtual bool
}{Create
}{\param{wxBitmap*
}{bitmap
},
\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
596 Creates a bitmap from the given data, which can be of arbitrary type. The wxBitmap object
{\it bitmap
} is
597 manipulated by this function.
599 \wxheading{Parameters
}
601 \docparam{bitmap
}{The wxBitmap object.
}
603 \docparam{width
}{The width of the bitmap in pixels.
}
605 \docparam{height
}{The height of the bitmap in pixels.
}
607 \docparam{depth
}{The depth of the bitmap in pixels. If this is -
1, the screen depth is used.
}
609 \docparam{data
}{Data whose type depends on the value of
{\it type
}.
}
611 \docparam{type
}{A bitmap type identifier - see
\helpref{wxBitmapHandler::wxBitmapHandler
}{wxbitmapconstr
} for a list
614 \wxheading{Return value
}
616 TRUE if the call succeeded, FALSE otherwise (the default).
618 \membersection{wxBitmapHandler::GetName
}
620 \constfunc{wxString
}{GetName
}{\void}
622 Gets the name of this handler.
624 \membersection{wxBitmapHandler::GetExtension
}
626 \constfunc{wxString
}{GetExtension
}{\void}
628 Gets the file extension associated with this handler.
630 \membersection{wxBitmapHandler::GetType
}
632 \constfunc{long
}{GetType
}{\void}
634 Gets the bitmap type associated with this handler.
636 \membersection{wxBitmapHandler::LoadFile
}\label{wxbitmaphandlerloadfile
}
638 \func{bool
}{LoadFile
}{\param{wxBitmap*
}{bitmap
},
\param{const wxString\&
}{ name
},
\param{long
}{ type
}}
640 Loads a bitmap from a file or resource, putting the resulting data into
{\it bitmap
}.
642 \wxheading{Parameters
}
644 \docparam{bitmap
}{The bitmap object which is to be affected by this operation.
}
646 \docparam{name
}{Either a filename or a Windows resource name.
647 The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
649 \docparam{type
}{See
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for values this can take.
}
651 \wxheading{Return value
}
653 TRUE if the operation succeeded, FALSE otherwise.
657 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}\\
658 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}\\
659 \helpref{wxBitmapHandler::SaveFile
}{wxbitmaphandlersavefile
}
661 \membersection{wxBitmapHandler::SaveFile
}\label{wxbitmaphandlersavefile
}
663 \func{bool
}{SaveFile
}{\param{wxBitmap*
}{bitmap
},
\param{const wxString\&
}{name
},
\param{int
}{ type
},
\param{wxPalette*
}{palette = NULL
}}
665 Saves a bitmap in the named file.
667 \wxheading{Parameters
}
669 \docparam{bitmap
}{The bitmap object which is to be affected by this operation.
}
671 \docparam{name
}{A filename. The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
673 \docparam{type
}{See
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for values this can take.
}
675 \docparam{palette
}{An optional palette used for saving the bitmap.
}
677 \wxheading{Return value
}
679 TRUE if the operation succeeded, FALSE otherwise.
683 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}\\
684 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}\\
685 \helpref{wxBitmapHandler::LoadFile
}{wxbitmaphandlerloadfile
}
687 \membersection{wxBitmapHandler::SetName
}
689 \func{void
}{SetName
}{\param{const wxString\&
}{name
}}
691 Sets the handler name.
693 \wxheading{Parameters
}
695 \docparam{name
}{Handler name.
}
697 \membersection{wxBitmapHandler::SetExtension
}
699 \func{void
}{SetExtension
}{\param{const wxString\&
}{extension
}}
701 Sets the handler extension.
703 \wxheading{Parameters
}
705 \docparam{extension
}{Handler extension.
}
707 \membersection{wxBitmapHandler::SetType
}
709 \func{void
}{SetType
}{\param{long
}{type
}}
711 Sets the handler type.
713 \wxheading{Parameters
}
715 \docparam{name
}{Handler type.
}