34 _render_required (true),
35 _dimension_computation_required (true)
82 cairo_t* cr = gdk_cairo_create (
_pixmap);
95 cairo_set_source_rgb (cr, c.get_red_p(), c.get_green_p(), c.get_blue_p());
101 cairo_set_source_rgba (cr, c.get_red_p(), c.get_green_p(), c.get_blue_p(), a);
104 pair<uint32_t, uint32_t>
119 return _matrix->get_style()->get_bg (Gtk::STATE_NORMAL);
134 for (PortGroup::BundleList::const_iterator i = bundles.begin(); i != bundles.end(); ++i) {
153 for (PortGroup::BundleList::const_iterator i = bundles.begin(); i != bundles.end(); ++i) {
155 if ((*i)->bundle == bc.
bundle) {
186 for (PortGroup::BundleList::const_iterator j = bundles.begin(); j != bundles.end(); ++j) {
202 if (p < _matrix->count_of_our_type (N)) {
void set_source_rgb(cairo_t *, Gdk::Color const &)
virtual void compute_dimensions()=0
virtual void render(cairo_t *)=0
bool _render_required
true if the rendered pixmap is out of date
std::list< BundleRecord * > BundleList
static uint32_t grid_spacing()
GdkPixmap * _pixmap
pixmap
bool _dimension_computation_required
true if the dimensions are out of date
uint32_t _height
full height of the contents
BundleList const & bundles() const
uint32_t group_size(boost::shared_ptr< const PortGroup >) const
GdkPixmap * get_pixmap(GdkDrawable *)
virtual ARDOUR::BundleChannel position_to_channel(double, double, boost::shared_ptr< const PortGroup >) const
uint32_t channel_to_position(ARDOUR::BundleChannel, boost::shared_ptr< const PortGroup >) const
Gdk::Color background_colour()
uint32_t count_of_our_type_min_1(ARDOUR::ChanCount) const
std::pair< uint32_t, uint32_t > dimensions()
PortMatrixBody * _body
the PortMatrixBody that we're in
void set_source_rgba(cairo_t *, Gdk::Color const &, double)
bool show_only_bundles() const
ARDOUR::DataType type() const
uint32_t _width
full width of the contents
boost::shared_ptr< Bundle > bundle
void component_size_changed()
int channel
channel index, or -1 for "all"
PortMatrixComponent(PortMatrix *, PortMatrixBody *)
virtual ~PortMatrixComponent()