mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
small class rearrangement for ViewBackground and derived classes related to geometry management
This commit is contained in:
parent
80a34fc3ec
commit
08f77136b9
5 changed files with 45 additions and 27 deletions
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include "enums.h"
|
||||
#include "selectable.h"
|
||||
#include "time_axis_view_item.h"
|
||||
#include "view_background.h"
|
||||
|
||||
namespace Gdk {
|
||||
|
|
@ -77,6 +78,13 @@ public:
|
|||
|
||||
void set_zoom_all();
|
||||
|
||||
int height() const;
|
||||
int width() const;
|
||||
int contents_height() const {
|
||||
return child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2;
|
||||
}
|
||||
int y_position () const;
|
||||
|
||||
int set_position (gdouble x, gdouble y);
|
||||
virtual int set_height (double);
|
||||
|
||||
|
|
@ -185,7 +193,7 @@ protected:
|
|||
ARDOUR::layer_t _layers;
|
||||
LayerDisplay _layer_display;
|
||||
|
||||
double height;
|
||||
double _height;
|
||||
|
||||
PBD::ScopedConnectionList rec_data_ready_connections;
|
||||
samplepos_t last_rec_data_sample;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue