3 /* gtkmm example Copyright (C) 2002 gtkmm development team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2
7 * as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef GTKMM_EXAMPLE_DNDWINDOW_H
20 #define GTKMM_EXAMPLE_DNDWINDOW_H
22 #include <gtkmm/label.h>
23 #include <gtkmm/window.h>
24 #include <gtkmm/box.h>
25 #include <gtkmm/button.h>
27 class DnDWindow : public Gtk::Window
36 virtual void on_button_drag_data_get(const Glib::RefPtr<Gdk::DragContext>& context, GtkSelectionData* selection_data, guint info, guint time);
37 virtual void on_label_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, GtkSelectionData* selection_data, guint info, guint time);
41 Gtk::Button m_Button_Drag;
42 Gtk::Label m_Label_Drop;
45 #endif // GTKMM_EXAMPLE_DNDWINDOW_H