3 #ifndef _GDKMM_DRAGCONTEXT_H
4 #define _GDKMM_DRAGCONTEXT_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
32 #include <glibmm/object.h>
36 #include <glibmm/listhandle.h>
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 {
class DragContext_Class; }
79 {
return static_cast<DragAction>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
83 {
return static_cast<DragAction>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
87 {
return static_cast<DragAction>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
91 {
return static_cast<DragAction>(~static_cast<unsigned>(flags)); }
95 {
return (lhs =
static_cast<DragAction>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
99 {
return (lhs =
static_cast<DragAction>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
103 {
return (lhs =
static_cast<DragAction>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
108 #ifndef DOXYGEN_SHOULD_SKIP_THIS
116 static GType value_type() G_GNUC_CONST;
143 #ifndef DOXYGEN_SHOULD_SKIP_THIS
151 static GType value_type() G_GNUC_CONST;
168 #ifndef DOXYGEN_SHOULD_SKIP_THIS
177 static CppClassType dragcontext_class_;
185 explicit DragContext(
const Glib::ConstructParams& construct_params);
197 #ifndef DOXYGEN_SHOULD_SKIP_THIS
200 static GType get_base_type() G_GNUC_CONST;
217 #ifndef GDKMM_DISABLE_DEPRECATED
226 #ifndef GDKMM_DISABLE_DEPRECATED
231 static Glib::RefPtr<DragContext>
create();
295 void set_icon(
const Glib::RefPtr<Gdk::Colormap>& colormap,
const Glib::RefPtr<Gdk::Pixmap>&
pixmap,
const Glib::RefPtr<Gdk::Bitmap>& mask,
int hot_x,
int hot_y);
303 void set_icon(
const Glib::ustring& stock_id,
int hot_x,
int hot_y);
355 #ifndef GDKMM_DISABLE_DEPRECATED
394 void find_window_for_screen(
const Glib::RefPtr<Window>& drag_window,
const Glib::RefPtr<Screen>& screen,
int x_root,
int y_root, Glib::RefPtr<Window>& dest_window,
DragProtocol* protocol)
const;
Gdk::ListHandle_AtomString get_targets() const
DragAction get_suggested_action() const
DragAction get_actions() const
const GdkDragContext * gobj() const
Provides access to the underlying C GObject.
guint32 get_start_time() const
static Glib::RefPtr< DragContext > create()
static GType get_type() G_GNUC_CONST
void drag_status(DragAction action, guint32 time)
void drag_finish(bool success, bool del, guint32 time)
void find_window_for_screen(const Glib::RefPtr< Window > &drag_window, const Glib::RefPtr< Screen > &screen, int x_root, int y_root, Glib::RefPtr< Window > &dest_window, DragProtocol *protocol) const
DragAction get_action() const
void drag_refuse(guint32 time)
void drop_reply(bool ok, guint32 time)
GdkDragContext * gobj()
Provides access to the underlying C GObject.
void set_icon(const Glib::RefPtr< Gdk::Colormap > &colormap, const Glib::RefPtr< Gdk::Pixmap > &pixmap, const Glib::RefPtr< Gdk::Bitmap > &mask, int hot_x, int hot_y)
DragAction get_selected_action() const
Glib::ustring get_selection() const
bool get_is_source() const
Glib::RefPtr< Gdk::DragContext > wrap(GdkDragContext *object, bool take_copy=false)
void drop_finish(bool success, guint32 time)
Glib::RefPtr< const Window > get_source_window() const
Glib::RefPtr< Window > get_source_window()
void set_icon_name(const Glib::ustring &name, int hot_x, int hot_y)
void set_icon(const Glib::RefPtr< Gdk::Pixbuf > &pixbuf, int hot_x, int hot_y)
GdkDragContext * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
void set_icon(const Glib::ustring &stock_id, int hot_x, int hot_y)
DragProtocol get_protocol() const
typedefG_BEGIN_DECLS struct _GdkDragContext GdkDragContext
GtkImageIconNameData name
GtkImagePixmapData pixmap
GtkImagePixbufData pixbuf
Glib::ListHandle< std::string, AtomStringTraits > ListHandle_AtomString