GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

dnd.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2003 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00027 00028 #ifndef GFC_GTK_DND_HH 00029 #define GFC_GTK_DND_HH 00030 00031 #ifndef GFC_GDK_DND_HH 00032 #include <gfc/gdk/dnd.hh> 00033 #endif 00034 00035 #ifndef __GTK_DND_H__ 00036 #include <gtk/gtkdnd.h> 00037 #endif 00038 00039 namespace GFC { 00040 00041 namespace Gdk { 00042 class Bitmap; 00043 class Colormap; 00044 class Pixbuf; 00045 class Pixmap; 00046 } 00047 00048 namespace Gtk { 00049 00050 class StockId; 00051 class Widget; 00052 00056 00057 enum DestDefaults 00058 { 00059 DEST_DEFAULT_MOTION = GTK_DEST_DEFAULT_MOTION, 00063 00064 DEST_DEFAULT_HIGHLIGHT = GTK_DEST_DEFAULT_HIGHLIGHT, 00067 00068 DEST_DEFAULT_DROP = GTK_DEST_DEFAULT_DROP, 00072 00073 DEST_DEFAULT_ALL = GTK_DEST_DEFAULT_ALL 00075 }; 00076 00078 00079 typedef unsigned int DestDefaultsField; 00080 00083 00084 enum TargetFlags 00085 { 00086 TARGET_SAME_APP = GTK_TARGET_SAME_APP, 00088 00089 TARGET_SAME_WIDGET = GTK_TARGET_SAME_WIDGET 00091 }; 00092 00094 00095 typedef unsigned int TargetFlagsField; 00096 00111 00112 class DragContext : public Gdk::DragContext 00113 { 00114 friend class G::Object; 00115 00116 protected: 00119 00120 explicit DragContext(GdkDragContext *drag_context, bool reference = true); 00127 00129 00130 public: 00133 00134 virtual ~DragContext(); 00136 00140 00141 Widget* get_source_widget() const; 00145 00149 00150 void finish(bool success, bool delete_data, unsigned int time); 00156 00157 void set_icon_widget(Widget& widget, int hot_x, int hot_y); 00165 00166 void set_icon_pixmap(Gdk::Colormap& colormap, Gdk::Pixmap& pixmap, Gdk::Bitmap *mask, int hot_x, int hot_y); 00176 00177 void set_icon_pixbuf(Gdk::Pixbuf& pixbuf, int hot_x, int hot_y); 00182 00183 void set_icon_stock(const StockId& stock_id, int hot_x, int hot_y); 00188 00189 void set_icon_default(); 00192 00194 }; 00195 00196 } // namespace Gtk 00197 00198 } // namespace GFC 00199 00200 #include <gfc/gtk/inline/dnd.inl> 00201 00202 #endif // GFC_GTK_DND_HH 00203

Generated on Tue Aug 24 00:34:30 2004 for GFC-UI by doxygen 1.3.8