X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1ee679c2e3f48bc4f2607e35033ed5505ed6665..dad5f99acb6b3400ff73562c03db2f3f21b658cd:/include/wx/gtk/dataform.h diff --git a/include/wx/gtk/dataform.h b/include/wx/gtk/dataform.h index a0618e01af..00b2c9f0c0 100644 --- a/include/wx/gtk/dataform.h +++ b/include/wx/gtk/dataform.h @@ -24,6 +24,8 @@ public: wxDataFormat( const wxChar *id ); wxDataFormat( NativeFormat format ); + wxDataFormat& operator=(const wxDataFormat& format) + { m_type = format.m_type; m_format = format.m_format; return *this; } wxDataFormat& operator=(NativeFormat format) { SetId(format); return *this; } @@ -32,6 +34,10 @@ public: { return m_format == (NativeFormat)format; } bool operator!=(NativeFormat format) const { return m_format != (NativeFormat)format; } + bool operator==(wxDataFormatId format) const + { return m_type == (wxDataFormatId)format; } + bool operator!=(wxDataFormatId format) const + { return m_type != (wxDataFormatId)format; } // explicit and implicit conversions to NativeFormat which is one of // standard data types (implicit conversion is useful for preserving the @@ -48,13 +54,13 @@ public: // implementation wxDataFormatId GetType() const; + void SetType( wxDataFormatId type ); private: wxDataFormatId m_type; NativeFormat m_format; void PrepareFormats(); - void SetType( wxDataFormatId type ); }; #endif // _WX_GTK_DATAFORM_H