Gorgon Game Engine
DragSource Class Reference

Event handling

void SetOver (std::function< bool(DragSource &, DragInfo &)> fn)
 Sets over function. More...
 
void SetOver (std::function< bool(DragInfo &)> fn)
 Sets over function. More...
 
template<class C_ >
void SetOver (C_ &c, bool(C_::*fn)(DragSource &, DragInfo &))
 Sets over function. More...
 
template<class C_ >
void SetOver (C_ &c, bool(C_::*fn)(DragInfo &))
 Sets over function. More...
 
template<class C_ >
void SetOver (C_ *my, bool(C_::*fn)(DragSource &, DragInfo &))
 Sets over function. More...
 
template<class C_ >
void SetOver (C_ *my, bool(C_::*fn)(DragInfo &))
 Sets over function. More...
 
void ResetOver ()
 Removes over handler, default action for over is to return true. More...
 
void SetOut (std::function< void(DragSource &, DragInfo &)> fn)
 Sets out function. More...
 
void SetOut (std::function< void(DragInfo &)> fn)
 Sets out function. More...
 
template<class C_ >
void SetOut (C_ &c, void(C_::*fn)(DragSource &, DragInfo &))
 Sets out function. More...
 
template<class C_ >
void SetOut (C_ &c, void(C_::*fn)(DragInfo &))
 Sets out function. More...
 
template<class C_ >
void SetOut (C_ *my, void(C_::*fn)(DragSource &, DragInfo &))
 Sets out function. More...
 
template<class C_ >
void SetOut (C_ *my, void(C_::*fn)(DragInfo &))
 Sets out function. More...
 
void ResetOut ()
 Removes out handler. More...
 
void SetMove (std::function< void(DragSource &, DragInfo &, Geometry::Point)> fn)
 Sets move handler. If set, called continuously until the drag operation is complete. More...
 
void SetMove (std::function< void(DragInfo &, Geometry::Point)> fn)
 Sets move handler. If set, called continuously until the drag operation is complete. More...
 
template<class C_ >
void SetMove (C_ &c, void(C_::*fn)(DragSource &, DragInfo &, Geometry::Point))
 Sets move handler. More...
 
template<class C_ >
void SetMove (C_ &c, void(C_::*fn)(DragInfo &, Geometry::Point))
 Sets move handler. More...
 
template<class C_ >
void SetMove (C_ *my, void(C_::*fn)(DragSource &, DragInfo &, Geometry::Point))
 Sets move handler. More...
 
template<class C_ >
void SetMove (C_ *my, void(C_::*fn)(DragInfo &, Geometry::Point))
 Sets move handler. More...
 
void SetMove (std::function< void(DragSource &, DragInfo &)> fn)
 Sets move handler. If set, called continuously until the drag operation is complete. More...
 
void SetMove (std::function< void(DragInfo &)> fn)
 Sets move handler. If set, called continuously until the drag operation is complete. More...
 
template<class C_ >
void SetMove (C_ &c, void(C_::*fn)(DragSource &, DragInfo &))
 Sets move handler. More...
 
template<class C_ >
void SetMove (C_ &c, void(C_::*fn)(DragInfo &))
 Sets move handler. More...
 
template<class C_ >
void SetMove (C_ *my, void(C_::*fn)(DragSource &, DragInfo &))
 Sets move handler. More...
 
template<class C_ >
void SetMove (C_ *my, void(C_::*fn)(DragInfo &))
 Sets move handler. More...
 
void ResetMove ()
 Removes move handler, default is to continue the drag operation. More...
 
void SetAccept (std::function< void(DragSource &, DragInfo &)> fn)
 Sets accept function. If set, called whenever drag operation is accepted. More...
 
void SetAccept (std::function< void(DragInfo &)> fn)
 Sets accept function. If set, called whenever drag operation is accepted. More...
 
template<class C_ >
void SetAccept (C_ &c, void(C_::*fn)(DragSource &, DragInfo &))
 Sets accept function. More...
 
template<class C_ >
void SetAccept (C_ &c, void(C_::*fn)(DragInfo &))
 Sets accept function. More...
 
template<class C_ >
void SetAccept (C_ *my, void(C_::*fn)(DragSource &, DragInfo &))
 Sets accept function. More...
 
template<class C_ >
void SetAccept (C_ *my, void(C_::*fn)(DragInfo &))
 Sets accept function. More...
 
void ResetAccept ()
 Removes accept handler. More...
 
void SetCancel (std::function< void(DragSource &, DragInfo &)> fn)
 Sets accept function. If set, called whenever drag operation is canceled. More...
 
void SetCancel (std::function< void(DragInfo &)> fn)
 Sets accept function. If set, called whenever drag operation is canceled. More...
 
template<class C_ >
void SetCancel (C_ &c, void(C_::*fn)(DragSource &, DragInfo &))
 Sets accept function. More...
 
template<class C_ >
void SetCancel (C_ &c, void(C_::*fn)(DragInfo &))
 Sets accept function. More...
 
template<class C_ >
void SetCancel (C_ *my, void(C_::*fn)(DragSource &, DragInfo &))
 Sets accept function. More...
 
template<class C_ >
void SetCancel (C_ *my, void(C_::*fn)(DragInfo &))
 Sets accept function. More...
 
void ResetCancel ()
 Removes cancel handler. More...
 

Member Function Documentation

◆ ResetAccept()

void ResetAccept ( )

Removes accept handler.

◆ ResetCancel()

void ResetCancel ( )

Removes cancel handler.

◆ ResetMove()

void ResetMove ( )

Removes move handler, default is to continue the drag operation.

◆ ResetOut()

void ResetOut ( )

Removes out handler.

◆ ResetOver()

void ResetOver ( )

Removes over handler, default action for over is to return true.

◆ SetAccept() [1/6]

void SetAccept ( C_ &  c,
void(C_::*)(DragInfo &)  fn 
)

Sets accept function.

If set, called whenever drag operation is accepted. This variant accepts class member function.

◆ SetAccept() [2/6]

void SetAccept ( C_ &  c,
void(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets accept function.

If set, called whenever drag operation is accepted. This variant accepts class member function.

◆ SetAccept() [3/6]

void SetAccept ( C_ *  my,
void(C_::*)(DragInfo &)  fn 
)

Sets accept function.

If set, called whenever drag operation is accepted. This variant accepts class member function.

◆ SetAccept() [4/6]

void SetAccept ( C_ *  my,
void(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets accept function.

If set, called whenever drag operation is accepted. This variant accepts class member function.

◆ SetAccept() [5/6]

void SetAccept ( std::function< void(DragInfo &)>  fn)

Sets accept function. If set, called whenever drag operation is accepted.

◆ SetAccept() [6/6]

void SetAccept ( std::function< void(DragSource &, DragInfo &)>  fn)

Sets accept function. If set, called whenever drag operation is accepted.

◆ SetCancel() [1/6]

void SetCancel ( C_ &  c,
void(C_::*)(DragInfo &)  fn 
)

Sets accept function.

If set, called whenever drag operation is canceled. This variant accepts class member function.

◆ SetCancel() [2/6]

void SetCancel ( C_ &  c,
void(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets accept function.

If set, called whenever drag operation is canceled. This variant accepts class member function.

◆ SetCancel() [3/6]

void SetCancel ( C_ *  my,
void(C_::*)(DragInfo &)  fn 
)

Sets accept function.

If set, called whenever drag operation is canceled. This variant accepts class member function.

◆ SetCancel() [4/6]

void SetCancel ( C_ *  my,
void(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets accept function.

If set, called whenever drag operation is canceled. This variant accepts class member function.

◆ SetCancel() [5/6]

void SetCancel ( std::function< void(DragInfo &)>  fn)

Sets accept function. If set, called whenever drag operation is canceled.

◆ SetCancel() [6/6]

void SetCancel ( std::function< void(DragSource &, DragInfo &)>  fn)

Sets accept function. If set, called whenever drag operation is canceled.

◆ SetMove() [1/12]

void SetMove ( C_ &  c,
void(C_::*)(DragInfo &)  fn 
)

Sets move handler.

If set, called continuously until the drag operation is complete. This variant accepts class member function.

◆ SetMove() [2/12]

void SetMove ( C_ &  c,
void(C_::*)(DragInfo &, Geometry::Point fn 
)

Sets move handler.

If set, called continuously until the drag operation is complete. This variant accepts class member function.

◆ SetMove() [3/12]

void SetMove ( C_ &  c,
void(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets move handler.

If set, called continuously until the drag operation is complete. This variant accepts class member function.

◆ SetMove() [4/12]

void SetMove ( C_ &  c,
void(C_::*)(DragSource &, DragInfo &, Geometry::Point fn 
)

Sets move handler.

If set, called continuously until the drag operation is complete. This variant accepts class member function.

◆ SetMove() [5/12]

void SetMove ( C_ *  my,
void(C_::*)(DragInfo &)  fn 
)

Sets move handler.

If set, called continuously until the drag operation is complete. This variant accepts class member function.

◆ SetMove() [6/12]

void SetMove ( C_ *  my,
void(C_::*)(DragInfo &, Geometry::Point fn 
)

Sets move handler.

If set, called continuously until the drag operation is complete. This variant accepts class member function.

◆ SetMove() [7/12]

void SetMove ( C_ *  my,
void(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets move handler.

If set, called continuously until the drag operation is complete. This variant accepts class member function.

◆ SetMove() [8/12]

void SetMove ( C_ *  my,
void(C_::*)(DragSource &, DragInfo &, Geometry::Point fn 
)

Sets move handler.

If set, called continuously until the drag operation is complete. This variant accepts class member function.

◆ SetMove() [9/12]

void SetMove ( std::function< void(DragInfo &)>  fn)

Sets move handler. If set, called continuously until the drag operation is complete.

◆ SetMove() [10/12]

void SetMove ( std::function< void(DragInfo &, Geometry::Point)>  fn)

Sets move handler. If set, called continuously until the drag operation is complete.

◆ SetMove() [11/12]

void SetMove ( std::function< void(DragSource &, DragInfo &)>  fn)

Sets move handler. If set, called continuously until the drag operation is complete.

◆ SetMove() [12/12]

void SetMove ( std::function< void(DragSource &, DragInfo &, Geometry::Point)>  fn)

Sets move handler. If set, called continuously until the drag operation is complete.

◆ SetOut() [1/6]

void SetOut ( C_ &  c,
void(C_::*)(DragInfo &)  fn 
)

Sets out function.

If set, called whenever an object is dragged out of the layer that accepted over event. This variant accepts class member function.

◆ SetOut() [2/6]

void SetOut ( C_ &  c,
void(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets out function.

If set, called whenever an object is dragged out of the layer that accepted over event. This variant accepts class member function.

◆ SetOut() [3/6]

void SetOut ( C_ *  my,
void(C_::*)(DragInfo &)  fn 
)

Sets out function.

If set, called whenever an object is dragged out of the layer that accepted over event. This variant accepts class member function.

◆ SetOut() [4/6]

void SetOut ( C_ *  my,
void(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets out function.

If set, called whenever an object is dragged out of the layer that accepted over event. This variant accepts class member function.

◆ SetOut() [5/6]

void SetOut ( std::function< void(DragInfo &)>  fn)

Sets out function.

If set, called whenever an object is dragged out of the layer that accepted over event.

◆ SetOut() [6/6]

void SetOut ( std::function< void(DragSource &, DragInfo &)>  fn)

Sets out function.

If set, called whenever an object is dragged out of the layer that accepted over event.

◆ SetOver() [1/6]

void SetOver ( C_ &  c,
bool(C_::*)(DragInfo &)  fn 
)

Sets over function.

If set, called whenever an object is dragged over to a target and the target accepts over event. This variant accepts class member function.

◆ SetOver() [2/6]

void SetOver ( C_ &  c,
bool(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets over function.

If set, called whenever an object is dragged over to a target and the target accepts over event. This variant accepts class member function.

◆ SetOver() [3/6]

void SetOver ( C_ *  my,
bool(C_::*)(DragInfo &)  fn 
)

Sets over function.

If set, called whenever an object is dragged over to a target and the target accepts over event. This variant accepts class member function.

◆ SetOver() [4/6]

void SetOver ( C_ *  my,
bool(C_::*)(DragSource &, DragInfo &)  fn 
)

Sets over function.

If set, called whenever an object is dragged over to a target and the target accepts over event. This variant accepts class member function.

◆ SetOver() [5/6]

void SetOver ( std::function< bool(DragInfo &)>  fn)

Sets over function.

If set, called whenever an object is dragged over to a target and the target accepts over event.

◆ SetOver() [6/6]

void SetOver ( std::function< bool(DragSource &, DragInfo &)>  fn)

Sets over function.

If set, called whenever an object is dragged over to a target and the target accepts over event.


The documentation for this class was generated from the following file: