#include <editor_drag.h>
|
| NoteDrag (Editor *, ArdourCanvas::Item *) |
|
void | start_grab (GdkEvent *, Gdk::Cursor *c=0) |
|
void | motion (GdkEvent *, bool) |
|
void | finished (GdkEvent *, bool) |
|
void | aborted (bool) |
|
| Drag (Editor *, ArdourCanvas::Item *, bool trackview_only=true) |
|
virtual | ~Drag () |
|
void | set_manager (DragManager *m) |
|
ArdourCanvas::Item * | item () const |
|
void | swap_grab (ArdourCanvas::Item *, Gdk::Cursor *, uint32_t) |
|
bool | motion_handler (GdkEvent *, bool) |
|
void | abort () |
|
ARDOUR::framepos_t | adjusted_frame (ARDOUR::framepos_t, GdkEvent const *, bool snap=true) const |
|
ARDOUR::framepos_t | adjusted_current_frame (GdkEvent const *, bool snap=true) const |
|
bool | was_double_click () const |
|
void | set_double_click (bool yn) |
|
virtual bool | end_grab (GdkEvent *) |
|
virtual bool | active (Editing::MouseMode m) |
|
virtual std::pair
< ARDOUR::framecnt_t, int > | move_threshold () const |
|
virtual bool | allow_vertical_autoscroll () const |
|
virtual bool | x_movement_matters () const |
|
virtual bool | y_movement_matters () const |
|
bool | initially_vertical () const |
|
virtual void | setup_pointer_frame_offset () |
|
Drags to move MIDI notes
Definition at line 509 of file editor_drag.h.
NoteDrag::NoteDrag |
( |
Editor * |
e, |
|
|
ArdourCanvas::Item * |
i |
|
) |
| |
void NoteDrag::aborted |
( |
bool |
m | ) |
|
|
virtual |
Called to abort a drag and return things to how they were before it started.
- Parameters
-
m | true if some movement occurred, otherwise false. |
Implements Drag.
Definition at line 5273 of file editor_drag.cc.
void NoteDrag::finished |
( |
GdkEvent * |
e, |
|
|
bool |
m |
|
) |
| |
|
virtual |
Called when a drag has finished.
- Parameters
-
e | Event describing the finish. |
m | true if some movement occurred, otherwise false. |
Implements Drag.
Definition at line 5231 of file editor_drag.cc.
void NoteDrag::motion |
( |
GdkEvent * |
e, |
|
|
bool |
f |
|
) |
| |
|
virtual |
Called when a drag motion has occurred.
- Parameters
-
e | Event describing the motion. |
f | true if this is the first movement, otherwise false. |
Implements Drag.
Definition at line 5196 of file editor_drag.cc.
void NoteDrag::start_grab |
( |
GdkEvent * |
e, |
|
|
Gdk::Cursor * |
c = 0 |
|
) |
| |
|
virtual |
Called to start a grab of an item.
- Parameters
-
e | Event that caused the grab to start. |
c | Cursor to use, or 0. |
Reimplemented from Drag.
Definition at line 5130 of file editor_drag.cc.
- Returns
- Current total drag x change in frames
Definition at line 5160 of file editor_drag.cc.
int8_t NoteDrag::total_dy |
( |
| ) |
const |
|
private |
- Returns
- Current total drag y change in note number
Definition at line 5182 of file editor_drag.cc.
double NoteDrag::_cumulative_dx |
|
private |
double NoteDrag::_cumulative_dy |
|
private |
double NoteDrag::_note_height |
|
private |
bool NoteDrag::_was_selected |
|
private |
The documentation for this class was generated from the following files: