|  |  | 
| Public Member Functions | |
| SelectionData () | |
| SelectionData (GtkSelectionData* gobject, bool make_a_copy=true) | |
| SelectionData (const SelectionData& other) | |
| SelectionData& | operator= (const SelectionData& other) | 
| ~SelectionData () | |
| void | swap (SelectionData& other) | 
| GtkSelectionData* | gobj () | 
| Provides access to the underlying C instance. | |
| const GtkSelectionData* | gobj () const | 
| Provides access to the underlying C instance. | |
| GtkSelectionData* | gobj_copy () const | 
| void | set (const std::string& type, int format, const guint8* data, int length) | 
| Assign a memory block of raw data. | |
| void | set (const std::string& type, const std::string& data) | 
| Assign a string of raw data. | |
| bool | set_text (const Glib::ustring& data) | 
| Assign UTF-8 encoded text. | |
| Glib::ustring | get_text () const | 
| Gets the contents of the selection data as a UTF-8 string. | |
| const guint8* | get_data () const | 
| int | get_length () const | 
| std::string | get_data_as_string () const | 
| std::string | get_target () const | 
| Gdk::ArrayHandle_AtomString | get_targets () const | 
| See Gtk::Clipboard::request_targets(). | |
| GdkAtom | get_selection () const | 
| Returns the ID of the selection. | |
| std::string | get_data_type () const | 
| Returns the type of the data as set by SelectionData::set(). | |
| int | get_format () const | 
| Glib::RefPtr<Gdk::Display> | get_display () | 
| Glib::RefPtr<const Gdk::Display> | get_display () const | 
| bool | targets_include_text () const | 
| Given a Gtk::SelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide text. | |
| Protected Attributes | |
| GtkSelectionData* | gobject_ | 
| Related Functions | |
| (Note that these are not member functions.) | |
| void | swap (SelectionData& lhs, SelectionData& rhs) | 
| Gtk::SelectionData | wrap (GtkSelectionData* object, bool take_copy=false) | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| Returns the type of the data as set by SelectionData::set(). 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| Returns the ID of the selection. 
 | 
| 
 | 
| 
 | 
| 
 | 
| See Gtk::Clipboard::request_targets(). 
 | 
| 
 | 
| Gets the contents of the selection data as a UTF-8 string. 
 
 | 
| 
 | 
| Provides access to the underlying C instance. 
 | 
| 
 | 
| Provides access to the underlying C instance. 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| Assign a string of raw data. Store new data into the Gtk::SelectionData object. Should _only_ by called from a selection handler callback. 
 | 
| 
 | ||||||||||||||||||||
| Assign a memory block of raw data. Store new data into the Gtk::SelectionData object. Should _only_ by called from a selection handler callback. A 0-byte terminates the stored data. 
 | 
| 
 | 
| Assign UTF-8 encoded text. Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by get_target(). 
 
 | 
| 
 | 
| 
 | 
| 
 | 
| Given a Gtk::SelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide text. 
 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| 
 |