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

GFC::Gtk::TargetList Class Reference

A GtkTargetList C++ wrapper class. More...

#include <gfc/gtk/selection.hh>

Inheritance diagram for GFC::Gtk::TargetList:

GFC::Object GFC::Trackable List of all members.

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

A GtkTargetList 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 TargetList structure represents a list of data types that are supported when sending or receiving data. TargetList is only useful when you want to manually initiate drag and drop to have dynamic control.


Constructor & Destructor Documentation

GFC::Gtk::TargetList::TargetList const std::vector< TargetEntry > &  targets  ) 
 

Construct a target list that contains the target entries in targets.

Parameters:
targets The vector of TargetEntry to add into the target list.

GFC::Gtk::TargetList::TargetList GtkTargetList *  target_list  )  [explicit]
 

Construct a target list from an exisiting GtkTargetList.

Parameters:
target_list An existing GtkTargetList.

GFC::Gtk::TargetList::TargetList const TargetList src  ) 
 

Copy constructor.

Parameters:
src The source target list.


Member Function Documentation

void GFC::Gtk::TargetList::add const std::vector< TargetEntry > &  targets  ) 
 

Adds a vector of TargetEntry to the target list.

Parameters:
targets The vector of TargetEntry to add.

void GFC::Gtk::TargetList::add const TargetEntry entry  ) 
 

Adds a TargetEntry to the target list.

Parameters:
entry The TargetEntry to add.

void GFC::Gtk::TargetList::add Gdk::Atom  target,
unsigned int  flags,
unsigned int  info
 

Adds a target to the TargetList.

Parameters:
target The interned atom representing the target.
flags The flags for this target.
info An ID that will be passed back to the application.

bool GFC::Gtk::TargetList::find Gdk::Atom  target,
unsigned int *  info
 

Looks up a given target in the target list.

Parameters:
target An interned atom representing the target to search for.
info A pointer to the location to store application info for target.
Returns:
true if the target was found, otherwise false.

TargetList& GFC::Gtk::TargetList::operator= const TargetList src  ) 
 

Assignment operator.

Parameters:
src The source target list.

void GFC::Gtk::TargetList::remove Gdk::Atom  target  ) 
 

Removes a target from a target list.

Parameters:
target The interned atom representing the target.


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