VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
DragCallbackFunctions Class Reference

Drag callback interface adapter which calls std::functions. More...

+ Inheritance diagram for DragCallbackFunctions:

Public Types

using Func1 = std::function< void(IDraggingSession *, CPoint)>
 
using Func2 = std::function< void(IDraggingSession *, CPoint, DragOperation)>
 

Public Member Functions

 DragCallbackFunctions ()=default
 
void dragWillBegin (IDraggingSession *session, CPoint pos) override
 the drag will begin More...
 
void dragMoved (IDraggingSession *session, CPoint pos) override
 the drag was moved More...
 
void dragEnded (IDraggingSession *session, CPoint pos, DragOperation result) override
 the drag ended More...
 
- Public Member Functions inherited from ReferenceCounted< T >
 ReferenceCounted ()=default
 
virtual ~ReferenceCounted () noexcept=default
 
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0 More...
 
void remember () override
 increase refcount More...
 
virtual int32_t getNbReference () const
 get refcount More...
 
virtual void beforeDelete ()
 

Public Attributes

Func1 willBeginFunc
 
Func1 movedFunc
 
Func2 endedFunc
 

Detailed Description

Drag callback interface adapter which calls std::functions.

Member Typedef Documentation

◆ Func1

using Func1 = std::function<void (IDraggingSession*, CPoint)>

◆ Func2

using Func2 = std::function<void (IDraggingSession*, CPoint, DragOperation)>

Constructor & Destructor Documentation

◆ DragCallbackFunctions()

DragCallbackFunctions ( )
default

Member Function Documentation

◆ dragEnded()

void dragEnded ( IDraggingSession session,
CPoint  pos,
DragOperation  result 
)
inlineoverridevirtual

the drag ended

Parameters
sessiondragging session
posdrag position in CFrame coordinates
resultthe result of the drag

Implements IDragCallback.

◆ dragMoved()

void dragMoved ( IDraggingSession session,
CPoint  pos 
)
inlineoverridevirtual

the drag was moved

Parameters
sessiondragging session
posdrag position in CFrame coordinates

Implements IDragCallback.

◆ dragWillBegin()

void dragWillBegin ( IDraggingSession session,
CPoint  pos 
)
inlineoverridevirtual

the drag will begin

Parameters
sessiondragging session
posdrag position in CFrame coordinates

Implements IDragCallback.

Member Data Documentation

◆ endedFunc

Func2 endedFunc

◆ movedFunc

Func1 movedFunc

◆ willBeginFunc

Func1 willBeginFunc

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