X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26f86486b088495eeff542ec7d43caf78601fac1..9f50f9f1a161184359b7ee002d4f6bb7ecd8f04c:/include/wx/gtk/clipbrd.h?ds=inline diff --git a/include/wx/gtk/clipbrd.h b/include/wx/gtk/clipbrd.h index 913379cac7..d940100715 100644 --- a/include/wx/gtk/clipbrd.h +++ b/include/wx/gtk/clipbrd.h @@ -63,14 +63,18 @@ public: virtual bool AddData( wxDataObject *data ); // ask if data in correct format is available - virtual bool IsSupported( wxDataObject &data ); + virtual bool IsSupported( wxDataFormat format ); // fill data with data on the clipboard (if available) - virtual bool GetData( wxDataObject &data ); + virtual bool GetData( wxDataObject *data ); // clears wxTheClipboard and the system's clipboard if possible virtual void Clear(); + /// If primary == TRUE, use primary selection in all further ops, + /// primary=FALSE resets it. + inline void UsePrimarySelection(bool primary = TRUE) { m_usePrimary = primary; } + // implementation bool m_open; @@ -79,11 +83,13 @@ public: bool m_ownsPrimarySelection; wxDataBroker *m_dataBroker; - GtkWidget *m_clipboardWidget; + GtkWidget *m_clipboardWidget; /* for getting and offering data */ + GtkWidget *m_targetsWidget; /* for getting list of supported formats */ + bool m_waiting; /* querying data or formats is asynchronous */ bool m_formatSupported; GdkAtom m_targetRequested; - + bool m_usePrimary; wxDataObject *m_receivedData; };