X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d2a2b601b1994333886dff8f53d82a714c4042f..587ce561e1deabbfacf0d619fdd6bb3899430720:/include/wx/gtk/dataobj.h diff --git a/include/wx/gtk/dataobj.h b/include/wx/gtk/dataobj.h index 2a9bc78242..cda2856ce0 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,41 @@ enum wxDataType wxDF_PRIVATE = 20 }; +//------------------------------------------------------------------------- +// wxDataFormat (internal) +//------------------------------------------------------------------------- + class wxDataFormat : public wxObject { DECLARE_CLASS( wxDataFormat ) public: + wxDataFormat(); wxDataFormat( wxDataType type ); wxDataFormat( const wxString &id ); + wxDataFormat( const wxChar *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 ); + void SetId( const wxChar *id ); + GdkAtom GetAtom(); - + void SetAtom(GdkAtom atom) { m_hasAtom = TRUE; m_atom = atom; } 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 +160,13 @@ public: /* implementation */ - virtual wxDataFormat &GetFormat() const; + wxDataFormat &GetFormat(); + + wxDataType GetFormatType() const; + wxString GetFormatId() const; + GdkAtom GetFormatAtom() const; - wxDataFormat *m_format; + wxDataFormat m_format; }; //----------------------------------------------------------------------------