mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
convert canvas_event_frame() and window_event_frame() to canvas_event_sample() and window_event_sample() to go along with the convention adopted in cairocanvas code re: frames+samples
This commit is contained in:
parent
0c283ba657
commit
c04285addf
8 changed files with 28 additions and 26 deletions
|
|
@ -1837,12 +1837,12 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
/** computes the timeline frame (sample) of an event whose coordinates
|
||||
* are in canvas units (pixels, scroll offset included).
|
||||
*/
|
||||
framepos_t canvas_event_frame (GdkEvent const *, double* px = 0, double* py = 0) const;
|
||||
framepos_t canvas_event_sample (GdkEvent const *, double* px = 0, double* py = 0) const;
|
||||
|
||||
/** computes the timeline frame (sample) of an event whose coordinates
|
||||
* are in window units (pixels, no scroll offset).
|
||||
*/
|
||||
framepos_t window_event_frame (GdkEvent const *, double* px = 0, double* py = 0) const;
|
||||
framepos_t window_event_sample (GdkEvent const *, double* px = 0, double* py = 0) const;
|
||||
|
||||
/* returns false if mouse pointer is not in track or marker canvas
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue