Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gtk::TargetEntry Class Reference

A GtkTargetEntry C++ wrapper class. More...

#include <xfc/gtk/selection.hh>

List of all members.

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

A GtkTargetEntry C++ wrapper class.

The selection mechanism provides the basis for different types of communication between processes. In particular, drag-and-drop and Clipboard work via selections. You will very seldom or never need to use most of the functions in this section directly; Clipboard provides a nicer interface to the same functionality. Some of the datatypes defined this section are used in the Clipboard and drag-and-drop API's as well.

The TargetEntry structure represents an entry in a TargetList of data types that are supported when sending or receiving data.

See also: the Selection HOWTO and example.


Constructor & Destructor Documentation

Xfc::Gtk::TargetEntry::TargetEntry const String target_name,
unsigned int  unique_id,
Gtk::TargetFlagsField  drag_flags = 0
 

Contruct a TargetEntry with the specified values.

Parameters:
target_name The name of the target.
unique_id A unique application-specific integer.
drag_flags Either TARGET_SAME_APP or TARGET_SAME_WIDGET.
The drag_flags field is used to restrict the validity of the corresponding target to the same applcaiton of the same widget.


Member Function Documentation

unsigned int Xfc::Gtk::TargetEntry::flags  )  const
 

Only used in drag-and-drop to indicate a drag-and-drop within the same application or the same widget.

Returns:
The flags value, either TARGET_SAME_APP or TARGET_SAME_WIDGET.

unsigned int Xfc::Gtk::TargetEntry::info  )  const
 

An application specific integer that will be passed back through signals later on.

This allows additional information to be attached to the target.

void Xfc::Gtk::TargetEntry::set const String target_name,
unsigned int  unique_id,
Gtk::TargetFlagsField  drag_flags = 0
 

Sets the TargetEntry values.

Parameters:
target_name The name of the target.
unique_id A unique application-specific integer.
drag_flags Either TARGET_SAME_APP or TARGET_SAME_WIDGET.
The drag_flags field is used to restrict the validity of the corresponding target to the same application or the same widget.


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3