Xfce Foundation Classes
Main Page | Index | Namespace List | Alphabetical List | Class List | File List

# gtk/dnd.hh File Reference

Gtk Drag and Drop C++ wrapper interface. More...

`#include <xfc/gdk/dnd.hh>`
`#include <gtk/gtkdnd.h>`
`#include <xfc/gtk/inline/dnd.inl>`

## Namespaces

- namespace Xfc
- namespace Xfc::Gdk
- namespace Xfc::Gtk

## Classes

- class Xfc::Gtk::DragContext
    A GTK+ Drag and Drop C++ wrapper class. More...

## Typedefs

- typedef unsigned int DestDefaultsField
    DestDefaultsField holds one or more flags from the Gtk::DestDefaults enumeration OR'd together.
- typedef unsigned int TargetFlagsField
    TargetFlagsField holds one or more flags from the Gtk::TargetFlags enumeration OR'd together.

## Enumerations

- enum DestDefaults {
  DEST_DEFAULT_MOTION = GTK_DEST_DEFAULT_MOTION,
  DEST_DEFAULT_HIGHLIGHT = GTK_DEST_DEFAULT_HIGHLIGHT,
  DEST_DEFAULT_DROP = GTK_DEST_DEFAULT_DROP,
  DEST_DEFAULT_ALL = GTK_DEST_DEFAULT_ALL
  }
    Specifies the various types of action that will be taken on behalf of the user for a drag destination site. More...
- enum TargetFlags {
  TARGET_SAME_APP = GTK_TARGET_SAME_APP,
  TARGET_SAME_WIDGET = GTK_TARGET_SAME_WIDGET
  }
    Specifies the constraints on an entry in a TargetTable. More...

## Detailed Description

Gtk Drag and Drop C++ wrapper interface.

GTK+ has a rich set of functions for doing inter-process communication via the drag-and-drop metaphor. GTK+ can do drag-and-drop (DND) via multiple protocols. The currently supported protocols are the Xdnd and Motif protocols. As well as the methods in this class, applications may need to use some facilities provided for Selections. Also, the Drag and Drop API makes use of signals in the Widget class.

## Enumeration Type Documentation

enum DestDefaults

  | Specifies the various types of action that will be taken on behalf of the user for a drag destination site. Enumeration values:
  DEST_DEFAULT_MOTION | If set for a widget, GTK+, during a drag over this widget will check if the drag matches this widget's list of possible targets and actions (GTK+ will then call gtk_drag_status() as appropriate).
  DEST_DEFAULT_HIGHLIGHT | If set for a widget, GTK+ will draw a highlight on this widget as long as a drag is over this widget and the widget drag format and action are acceptable.
  DEST_DEFAULT_DROP | If set for a widget, when a drop occurs, GTK+ will will check if the drag matches this widget's list of possible targets and actions and if so, GTK+ will call gtk_drag_data_get() on behalf of the widget.
  DEST_DEFAULT_ALL | If set, specifies that all default actions should be taken.

enum TargetFlags

  | Specifies the constraints on an entry in a TargetTable. Enumeration values:
  TARGET_SAME_APP | If this is set, the target will only be selected for drags within a single application.
  TARGET_SAME_WIDGET | If this is set, the target will only be selected for drags within a single widget.

Xfce Foundation Classes

Copyright © 2004-2005 The XFC Development Team | XFC 4.3