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

GFC::Gtk::TargetEntry Class Reference

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

#include <gfc/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.


Constructor & Destructor Documentation

GFC::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 GFC::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 GFC::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 GFC::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 of the same widget.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:42 2004 for GFC-UI by doxygen 1.3.8