- // alternate constructors
- %name(EmptyBitmap) wxBitmap(int width, int height, int depth=-1);
- %name(BitmapFromIcon) wxBitmap(const wxIcon& icon);
- %name(BitmapFromImage) wxBitmap(const wxImage& image, int depth=-1);
+ DocCtorStrName(
+ wxBitmap(int width, int height, int depth=-1),
+ "Creates a new bitmap of the given size. A depth of -1 indicates the depth of\n"
+ "the current screen or visual. Some platforms only support 1 for monochrome and\n"
+ "-1 for the current colour setting.",
+ EmptyBitmap);
+
+ DocCtorStrName(
+ wxBitmap(const wxIcon& icon),
+ "Create a new bitmap from an Icon object.",
+ BitmapFromIcon);
+
+ DocCtorStrName(
+ wxBitmap(const wxImage& image, int depth=-1),
+ "Creates bitmap object from the image. This has to be done to actually display\n"
+ "an image as you cannot draw an image directly on a window. The resulting\n"
+ "bitmap will use the provided colour depth (or that of the current system if\n"
+ "depth is -1) which entails that a colour reduction has to take place.",
+ BitmapFromImage);
+
+