VSTGUI: DragCallbackFunctions Class Reference

VSTGUI 4.10 Graphical User Interface Framework not only for VST plugins

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
DragCallbackFunctions Class Reference
Version 4.7

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
void | dragMoved (IDraggingSession *session, CPoint pos) override
| the drag was moved
void | dragEnded (IDraggingSession *session, CPoint pos, DragOperation result) override
| the drag ended
Public Member Functions inherited from ReferenceCounted< T >
| ReferenceCounted ()=default
virtual | ~ReferenceCounted () noexcept=default
| ReferenceCounted (const ReferenceCounted &)
ReferenceCounted & | operator= (const ReferenceCounted &)
void | forget () override
| decrease refcount and delete object if refcount == 0
void | remember () override
| increase refcount
virtual int32_t | getNbReference () const
| get refcount

## Public Attributes
Func1 | willBeginFunc
Func1 | movedFunc
Func2 | endedFunc

## Detailed Description

Drag callback interface adapter which calls std::functions.

## Member Typedef Documentation

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

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

## Constructor & Destructor Documentation

DragCallbackFunctions | ( |  | ) |
| default

## Member Function Documentation

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

the drag ended

Parameters

  session | dragging session
  pos | drag position in CFrame coordinates
  result | the result of the drag

Implements IDragCallback.

void dragMoved | ( | IDraggingSession * | session,
|  | CPoint | pos
| ) |  |
| inlineoverridevirtual

the drag was moved

Parameters

  session | dragging session
  pos | drag position in CFrame coordinates

Implements IDragCallback.

void dragWillBegin | ( | IDraggingSession * | session,
|  | CPoint | pos
| ) |  |
| inlineoverridevirtual

the drag will begin

Parameters

  session | dragging session
  pos | drag position in CFrame coordinates

Implements IDragCallback.

## Member Data Documentation

Func2 endedFunc

Func1 movedFunc

Func1 willBeginFunc

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

- dragging.h