Added DECLARE_VARIANT_OBJECT macros for easy conversion

from and to wxVariant using the shift left operator.
  Use the for GDI classes and wxImage.
  Document it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-30 15:37:52 +00:00
parent cdd8d745c4
commit 3f90a3994d
3 changed files with 127 additions and 8 deletions

View File

@@ -2026,7 +2026,11 @@ bool wxVariant::Convert(wxDateTime* value) const
}
#endif // wxUSE_DATETIME
IMPLEMENT_VARIANT_OBJECT(wxColour)
IMPLEMENT_VARIANT_OBJECT(wxPen)
IMPLEMENT_VARIANT_OBJECT(wxBrush)
IMPLEMENT_VARIANT_OBJECT(wxImage)
IMPLEMENT_VARIANT_OBJECT(wxIcon)
IMPLEMENT_VARIANT_OBJECT(wxBitmap)
#endif // wxUSE_VARIANT