stlab.adobe.com Adobe Systems Incorporated

drag_and_drop_handler< SourceType, TargetType > Class Template Reference

#include <drag_and_drop.hpp>

List of all members.

Public Types

typedef boost::function< void(const
target_type &)> 
client_callback_proc_t
typedef
drag_and_drop_handler_platform_data
< source_type, target_type
platform_data_type
typedef SourceType source_type
typedef TargetType target_type

Public Member Functions

template<typename Client >
void attach (const Client &client, const client_callback_proc_t &proc)
 drag_and_drop_handler ()
template<typename InputIterator >
 drag_and_drop_handler (InputIterator first, InputIterator last)
void erase_flavor (boost::uint32_t flavor)
void insert_flavor (boost::uint32_t flavor)
 ~drag_and_drop_handler ()

Public Attributes

platform_data_type data_m

Detailed Description

template<typename SourceType, typename TargetType>
class adobe::drag_and_drop_handler< SourceType, TargetType >

The drag and drop system is responsible for

  • being aware of drag-and-drop events
  • knowing what types ('flavors') of data the client to which it is bound can accept
  • proritizing which flavors are desired above others
  • converting the flavored-data to a specific target type representation
  • notifying the client of the newly dropped representative data

Definition at line 39 of file drag_and_drop.hpp.


Member Typedef Documentation

typedef boost::function<void (const target_type&)> client_callback_proc_t

Definition at line 45 of file drag_and_drop.hpp.

typedef SourceType source_type

Definition at line 42 of file drag_and_drop.hpp.

typedef TargetType target_type

Definition at line 43 of file drag_and_drop.hpp.


Constructor & Destructor Documentation

Definition at line 47 of file drag_and_drop.hpp.

drag_and_drop_handler ( InputIterator  first,
InputIterator  last 
)

Definition at line 53 of file drag_and_drop.hpp.

Definition at line 59 of file drag_and_drop.hpp.


Member Function Documentation

void attach ( const Client &  client,
const client_callback_proc_t proc 
)

Definition at line 65 of file drag_and_drop.hpp.

void erase_flavor ( boost::uint32_t  flavor )

Definition at line 75 of file drag_and_drop.hpp.

void insert_flavor ( boost::uint32_t  flavor )

Definition at line 70 of file drag_and_drop.hpp.


Member Data Documentation

Definition at line 80 of file drag_and_drop.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google