|
Public Types |
typedef SigC::Slot2< void,
SelectionData&, guint > | SlotGet |
| e.g.: void on_get(Gtk::SelectionData& selection_data, guint info);
|
typedef SigC::Slot0<void> | SlotClear |
| e.g.: void on_clear();
|
typedef SigC::Slot1< void,
const SelectionData& > | SlotReceived |
| e.g.: void on_received(const SelectionData& selection_data);
|
typedef SigC::Slot1< void,
const Glib::ustring& > | SlotTextReceived |
| e.g.: void on_textreceived(const Glib::ustring& text);
|
Public Member Functions |
virtual | ~Clipboard () |
GtkClipboard* | gobj () |
| Provides access to the underlying C GObject.
|
const GtkClipboard* | gobj () const |
| Provides access to the underlying C GObject.
|
GtkClipboard* | gobj_copy () |
Glib::RefPtr<Gdk::Display> | get_display () |
Glib::RefPtr<const Gdk::Display> | get_display () const |
bool | set (const ArrayHandle_TargetEntry& targets, const SlotGet& slot_get, const SlotClear& slot_clear) |
| Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested.
|
Glib::RefPtr<Glib::Object> | get_owner () |
Glib::RefPtr<const Glib::Object> | get_owner () const |
void | clear () |
| Clears the contents of the clipboard.
|
void | set_text (const Glib::ustring& text) |
| Sets the contents of the clipboard to the given UTF-8 string.
|
void | request_contents (const Glib::ustring& target, const SlotReceived& slot) |
void | request_targets (const SlotReceived& slot) |
void | request_text (const SlotTextReceived& slot) |
SelectionData | wait_for_contents (const Glib::ustring& target) const |
| Requests the contents of the clipboard using the given target.
|
Glib::ustring | wait_for_text () const |
bool | wait_is_text_available () const |
Static Public Member Functions |
Glib::RefPtr<Clipboard> | get (GdkAtom selection=GDK_SELECTION_CLIPBOARD) |
Glib::RefPtr<Clipboard> | get_for_display (const Glib::RefPtr<Gdk::Display>& display, GdkAtom selection=GDK_SELECTION_CLIPBOARD) |
Related Functions |
(Note that these are not member functions.)
|
Glib::RefPtr<Gtk::Clipboard> | wrap (GtkClipboard* object, bool take_copy=false) |