3 #ifndef _GTKMM_CLIPBOARD_H
4 #define _GTKMM_CLIPBOARD_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
35 #include <glibmm/object.h>
36 #include <glibmm/containers.h>
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
41 typedef struct _GtkClipboardClass GtkClipboardClass;
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 {
class Clipboard_Class; }
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS
93 typedef GtkClipboardClass BaseClassType;
96 static CppClassType clipboard_class_;
104 explicit Clipboard(
const Glib::ConstructParams& construct_params);
116 #ifndef DOXYGEN_SHOULD_SKIP_THIS
119 static GType get_base_type() G_GNUC_CONST;
198 typedef sigc::slot<void, SelectionData&, guint>
SlotGet;
std::string wait_for_rich_text(const Glib::RefPtr< TextBuffer > &buffer, std::string &format)
static Glib::RefPtr< Clipboard > get(GdkAtom selection=GDK_SELECTION_CLIPBOARD)
sigc::slot< void, SelectionData &, guint > SlotGet
For instance: void on_get(Gtk::SelectionData& selection_data, guint info);.
sigc::slot< void, const Glib::RefPtr< Gdk::Pixbuf > & > SlotImageReceived
For instance: void on_image_received(const Glib::RefPtr<Gdk::Pixbuf>& text);.
void request_rich_text(const Glib::RefPtr< TextBuffer > &buffer, const SlotRichTextReceived &slot)
sigc::slot< void > SlotClear
For instance: void on_clear();.
sigc::slot< void, const Glib::ustring &, const std::string & > SlotRichTextReceived
For instance: void on_rich_text_received(const Glib::ustring& format, const std::string& text);.
bool wait_is_rich_text_available(const Glib::RefPtr< TextBuffer > &buffer) const
Glib::SignalProxy1< void, GdkEventOwnerChange * > signal_owner_change()
sigc::slot< void, const SelectionData & > SlotReceived
For instance: void on_received(const SelectionData& selection_data);.
Glib::ustring wait_for_text() const
void request_uris(const SlotUrisReceived &slot)
GtkClipboard * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
void set_image(const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
Glib::RefPtr< Gdk::Pixbuf > wait_for_image() const
Glib::RefPtr< Gdk::Display > get_display()
bool set(const ArrayHandle_TargetEntry &targets, const SlotGet &slot_get, const SlotClear &slot_clear)
SelectionData wait_for_contents(const Glib::ustring &target) const
Glib::RefPtr< Glib::Object > get_owner()
bool wait_is_text_available() const
Glib::StringArrayHandle wait_for_targets() const
void request_contents(const Glib::ustring &target, const SlotReceived &slot)
sigc::slot< void, const Glib::StringArrayHandle & > SlotUrisReceived
For instance: void on_uris_received(const Glib::StringArrayHandle& uris);.
static Glib::RefPtr< Clipboard > get_for_display(const Glib::RefPtr< Gdk::Display > &display, GdkAtom selection=GDK_SELECTION_CLIPBOARD)
sigc::slot< void, const Glib::ustring & > SlotTextReceived
For instance: void on_text_received(const Glib::ustring& text);.
bool wait_is_uris_available() const
void set_can_store(const ArrayHandle_TargetEntry &targets)
void request_text(const SlotTextReceived &slot)
void set_text(const Glib::ustring &text)
bool wait_is_target_available(const Glib::ustring &target)
const GtkClipboard * gobj() const
Provides access to the underlying C GObject.
void request_image(const SlotImageReceived &slot)
bool wait_is_image_available() const
Glib::RefPtr< Gtk::Clipboard > wrap(GtkClipboard *object, bool take_copy=false)
Glib::RefPtr< const Glib::Object > get_owner() const
sigc::slot< void, const Glib::StringArrayHandle & > SlotTargetsReceived
For instance: void on_targetsreceived(const Glib::StringArrayHandle& targets);.
static GType get_type() G_GNUC_CONST
void request_targets(const SlotTargetsReceived &slot)
Glib::StringArrayHandle wait_for_uris() const
GtkClipboard * gobj()
Provides access to the underlying C GObject.
Glib::RefPtr< const Gdk::Display > get_display() const
#define GDK_SELECTION_CLIPBOARD
struct _GdkAtom * GdkAtom
GtkImagePixbufData pixbuf
Glib::ArrayHandle< TargetEntry, TargetEntry_Traits > ArrayHandle_TargetEntry
link region and track selection