Ardour  9.0-pre0-582-g084a23a80d
DragManager Class Reference

#include <editor_drag.h>

Public Member Functions

 DragManager (EditingContext *e)
 
 ~DragManager ()
 
bool motion_handler (GdkEvent *, bool)
 
bool mid_drag_key_event (GdkEventKey *)
 
void abort ()
 
void add (Drag *)
 
void set (Drag *, GdkEvent *, Gdk::Cursor *c=MouseCursors::invalid_cursor())
 
void start_grab (GdkEvent *, Gdk::Cursor *c=MouseCursors::invalid_cursor())
 
bool end_grab (GdkEvent *)
 
bool have_item (ArdourCanvas::Item *) const
 
void mark_double_click ()
 
bool ending () const
 
bool active () const
 
double current_pointer_x () const
 
double current_pointer_y () const
 
ARDOUR::samplepos_t current_pointer_sample () const
 
Temporal::timepos_t current_pointer_time () const
 
bool preview_video () const
 

Private Attributes

EditingContext_editing_context
 
std::list< Drag * > _drags
 
bool _ending
 true if end_grab or abort is in progress, otherwise false More...
 
double _current_pointer_x
 canvas-coordinate space x of the current pointer More...
 
double _current_pointer_y
 canvas-coordinate space y of the current pointer More...
 
Temporal::timepos_t _current_pointer_time
 time that the pointer is now at More...
 
bool _old_follow_playhead
 state of Editor::follow_playhead() before the drags started More...
 

Detailed Description

Class to manage current drags

Definition at line 92 of file editor_drag.h.

Constructor & Destructor Documentation

◆ DragManager()

DragManager::DragManager ( EditingContext e)

◆ ~DragManager()

DragManager::~DragManager ( )

Member Function Documentation

◆ abort()

void DragManager::abort ( )

◆ active()

bool DragManager::active ( ) const
inline

Definition at line 115 of file editor_drag.h.

◆ add()

void DragManager::add ( Drag )

◆ current_pointer_sample()

ARDOUR::samplepos_t DragManager::current_pointer_sample ( ) const
inline
Returns
current pointer sample

Definition at line 130 of file editor_drag.h.

◆ current_pointer_time()

Temporal::timepos_t DragManager::current_pointer_time ( ) const
inline
Returns
current pointer time

Definition at line 135 of file editor_drag.h.

◆ current_pointer_x()

double DragManager::current_pointer_x ( ) const
inline
Returns
current pointer x position in canvas coordinates

Definition at line 120 of file editor_drag.h.

◆ current_pointer_y()

double DragManager::current_pointer_y ( ) const
inline
Returns
current pointer y position in canvas coordinates

Definition at line 125 of file editor_drag.h.

◆ end_grab()

bool DragManager::end_grab ( GdkEvent )

◆ ending()

bool DragManager::ending ( ) const
inline
Returns
true if an end drag or abort is in progress

Definition at line 111 of file editor_drag.h.

◆ have_item()

bool DragManager::have_item ( ArdourCanvas::Item ) const

◆ mark_double_click()

void DragManager::mark_double_click ( )

◆ mid_drag_key_event()

bool DragManager::mid_drag_key_event ( GdkEventKey )

◆ motion_handler()

bool DragManager::motion_handler ( GdkEvent ,
bool   
)

◆ preview_video()

bool DragManager::preview_video ( ) const

return drag-motion displays video-frame of drag-location

◆ set()

void DragManager::set ( Drag ,
GdkEvent ,
Gdk::Cursor c = MouseCursors::invalid_cursor() 
)

◆ start_grab()

void DragManager::start_grab ( GdkEvent ,
Gdk::Cursor c = MouseCursors::invalid_cursor() 
)

Member Data Documentation

◆ _current_pointer_time

Temporal::timepos_t DragManager::_current_pointer_time
private

time that the pointer is now at

Definition at line 148 of file editor_drag.h.

◆ _current_pointer_x

double DragManager::_current_pointer_x
private

canvas-coordinate space x of the current pointer

Definition at line 146 of file editor_drag.h.

◆ _current_pointer_y

double DragManager::_current_pointer_y
private

canvas-coordinate space y of the current pointer

Definition at line 147 of file editor_drag.h.

◆ _drags

std::list<Drag*> DragManager::_drags
private

Definition at line 144 of file editor_drag.h.

◆ _editing_context

EditingContext* DragManager::_editing_context
private

Definition at line 143 of file editor_drag.h.

◆ _ending

bool DragManager::_ending
private

true if end_grab or abort is in progress, otherwise false

Definition at line 145 of file editor_drag.h.

◆ _old_follow_playhead

bool DragManager::_old_follow_playhead
private

state of Editor::follow_playhead() before the drags started

Definition at line 149 of file editor_drag.h.


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