X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d2a2b601b1994333886dff8f53d82a714c4042f..4fcd73bd9b5d346834d54775fa1d89fe2f685030:/include/wx/gtk/dataobj.h?ds=inline diff --git a/include/wx/gtk/dataobj.h b/include/wx/gtk/dataobj.h index 2a9bc78242..42233e4494 100644 --- a/include/wx/gtk/dataobj.h +++ b/include/wx/gtk/dataobj.h @@ -32,7 +32,7 @@ class wxPrivateDataObject; class wxFileDataObject; //------------------------------------------------------------------------- -// wxDataFormat +// wxDataType (internal) //------------------------------------------------------------------------- enum wxDataType @@ -57,32 +57,40 @@ enum wxDataType wxDF_PRIVATE = 20 }; +//------------------------------------------------------------------------- +// wxDataFormat (internal) +//------------------------------------------------------------------------- + class wxDataFormat : public wxObject { DECLARE_CLASS( wxDataFormat ) public: + wxDataFormat(); wxDataFormat( wxDataType type ); wxDataFormat( const wxString &id ); wxDataFormat( wxDataFormat &format ); wxDataFormat( const GdkAtom atom ); - - int GetType() const; + + void SetType( wxDataType type ); + wxDataType GetType() const; + wxString GetId() const; void SetId( const wxString &id ); + GdkAtom GetAtom(); private: - int m_type; - wxString m_id; - bool m_hasAtom; - GdkAtom m_atom; + wxDataType m_type; + wxString m_id; + bool m_hasAtom; + GdkAtom m_atom; }; //------------------------------------------------------------------------- -// wxDataBroker handles data and ormat negotiation for clipboard and DnD +// wxDataBroker (internal) //------------------------------------------------------------------------- class wxDataBroker : public wxObject @@ -151,9 +159,13 @@ public: /* implementation */ - virtual wxDataFormat &GetFormat() const; + wxDataFormat &GetFormat(); + + wxDataType GetFormatType() const; + wxString GetFormatId() const; + GdkAtom GetFormatAtom() const; - wxDataFormat *m_format; + wxDataFormat m_format; }; //----------------------------------------------------------------------------