Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

dnd.h

Go to the documentation of this file.
00001 /*  Inti: Integrated Foundation Classes
00002  *  Copyright (C) 2002 The Inti 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 INTI_GTK_DND_H
00029 #define INTI_GTK_DND_H
00030 
00031 #ifndef INTI_GDK_DND_H
00032 #include <inti/gdk/dnd.h>
00033 #endif
00034 
00035 #ifndef __GTK_DND_H__
00036 #include <gtk/gtkdnd.h>
00037 #endif
00038 
00039 namespace Inti {
00040         
00041 namespace Gdk {
00042 class Bitmap;
00043 class Colormap;
00044 class Pixbuf;
00045 class Pixmap;
00046 }
00047 
00048 namespace Gtk {
00049         
00050 class Widget;
00051 
00055 
00056 enum DestDefaults
00057 {
00058         DEST_DEFAULT_MOTION = GTK_DEST_DEFAULT_MOTION,
00062         
00063         DEST_DEFAULT_HIGHLIGHT = GTK_DEST_DEFAULT_HIGHLIGHT,
00066         
00067         DEST_DEFAULT_DROP = GTK_DEST_DEFAULT_DROP,
00071 
00072         DEST_DEFAULT_ALL = GTK_DEST_DEFAULT_ALL
00074 };
00075 
00077 
00078 typedef unsigned int DestDefaultsField;
00079 
00082 
00083 enum TargetFlags
00084 {
00085         TARGET_SAME_APP = GTK_TARGET_SAME_APP,
00087         
00088         TARGET_SAME_WIDGET = GTK_TARGET_SAME_WIDGET
00090 };
00091 
00093 
00094 typedef unsigned int TargetFlagsField;
00095 
00110 
00111 class DragContext : public Gdk::DragContext
00112 {
00113         friend class G::Object;
00114         
00115 protected:
00118 
00119         explicit DragContext(GdkDragContext *drag_context, bool reference = true);
00126 
00128 
00129 public:
00132         
00133         virtual ~DragContext();
00135 
00139 
00140         Widget* get_source_widget() const;
00144 
00148 
00149         void finish(bool success, bool delete_data, unsigned int time);
00155 
00156         void set_icon_widget(Widget& widget, int hot_x, int hot_y);
00164 
00165         void set_icon_pixmap(Gdk::Colormap& colormap, Gdk::Pixmap& pixmap, Gdk::Bitmap *mask, int hot_x, int hot_y);
00175 
00176         void set_icon_pixbuf(Gdk::Pixbuf& pixbuf, int hot_x, int hot_y);
00181 
00182         void set_icon_stock(const char *stock_id, int hot_x, int hot_y);
00187         
00188         void set_icon_default();
00191         
00193 };
00194 
00195 } // namespace Gtk
00196 
00197 } // namespace Inti
00198 
00199 #endif // INTI_GTK_DND_H
00200 
Main Page - Footer


Generated on Sun Sep 14 20:08:02 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002