Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::simple_dragdrop Class Reference

Classes

struct  implementation
 

Public Member Functions

 simple_dragdrop (window source)
 
 simple_dragdrop (window drag_origin, std::function< bool()> when, window drop_target, std::function< void()> how)
 
 ~simple_dragdrop ()
 
void condition (std::function< bool()> predicate_fn)
 Condition checker. More...
 
void make_drop (window target, std::function< void()> drop_fn)
 

Constructor & Destructor Documentation

nana::simple_dragdrop::simple_dragdrop ( window  source)
explicit
nana::simple_dragdrop::simple_dragdrop ( window  drag_origin,
std::function< bool()>  when,
window  drop_target,
std::function< void()>  how 
)
inline
nana::simple_dragdrop::~simple_dragdrop ( )

Member Function Documentation

void nana::simple_dragdrop::condition ( std::function< bool()>  predicate_fn)

Condition checker.

Sets a condition checker that determines whether the drag-and-drop operation can start. If a condition checker is not set, it always start drag-and-drop operation.

Parameters
predicate_fnUnary predicate which returns #true# for starting drag-and-drop operation.
void nana::simple_dragdrop::make_drop ( window  target,
std::function< void()>  drop_fn 
)