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:
@@ -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
|
||||
|
Reference in New Issue
Block a user