X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1ee679c2e3f48bc4f2607e35033ed5505ed6665..cf1d22d68578de9a848e15c831573ee2612df406:/include/wx/gtk1/dataform.h diff --git a/include/wx/gtk1/dataform.h b/include/wx/gtk1/dataform.h index a0618e01af..6bde38106b 100644 --- a/include/wx/gtk1/dataform.h +++ b/include/wx/gtk1/dataform.h @@ -32,6 +32,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 +52,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