Ardour  9.0-pre0-1320-gf48fe3f740
piano_roll_header.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2009 David Robillard <d@drobilla.net>
3  * Copyright (C) 2010-2012 Paul Davis <paul@linuxaudiosystems.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #pragma once
21 
22 #include <ytkmm/drawingarea.h>
23 
24 #include "prh_base.h"
25 
27  public:
29 
37 
39  void redraw ();
40  void redraw (double x, double y, double w, double h);
41  double height() const;
42  double width() const;
43  double event_y_to_y (double evy) const { return evy; }
44  void draw_transform (double& x, double& y) const {}
45  void event_transform (double& x, double& y) const {}
46  void _queue_resize () { queue_resize(); }
47  void do_grab() { add_modal_grab(); }
49  Glib::RefPtr<Gdk::Window> cursor_window();
50  std::shared_ptr<ARDOUR::MidiTrack> midi_track();
51 
53 
54  private:
56 };
57 
void remove_modal_grab()
void add_modal_grab()
void queue_resize()
bool on_enter_notify_event(GdkEventCrossing *)
This is a default handler for the signal signal_enter_notify_event().
std::shared_ptr< ARDOUR::MidiTrack > midi_track()
Glib::RefPtr< Gdk::Window > cursor_window()
double width() const
void draw_transform(double &x, double &y) const
void on_size_request(Gtk::Requisition *)
This is a default handler for the signal signal_size_request().
bool on_scroll_event(GdkEventScroll *)
This is a default handler for the signal signal_scroll_event().
void redraw(double x, double y, double w, double h)
double event_y_to_y(double evy) const
double height() const
bool on_button_release_event(GdkEventButton *)
This is a default handler for the signal signal_button_release_event().
MidiStreamView * stream_view
void event_transform(double &x, double &y) const
bool on_leave_notify_event(GdkEventCrossing *)
This is a default handler for the signal signal_leave_notify_event().
PianoRollHeader(MidiViewBackground &)
bool on_expose_event(GdkEventExpose *)
This is a default handler for the signal signal_expose_event().
bool on_button_press_event(GdkEventButton *)
This is a default handler for the signal signal_button_press_event().
void instrument_info_change()
bool on_motion_notify_event(GdkEventMotion *)
This is a default handler for the signal signal_motion_notify_event().