small class rearrangement for ViewBackground and derived classes related to geometry management

This commit is contained in:
Paul Davis 2025-06-04 20:43:18 -06:00
parent 80a34fc3ec
commit 08f77136b9
5 changed files with 45 additions and 27 deletions

View file

@ -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;