Ardour  9.0-pre0-582-g084a23a80d
PortMatrixLabels Class Referenceabstract

#include <port_matrix_labels.h>

Inheritance diagram for PortMatrixLabels:
[legend]

Public Member Functions

 PortMatrixLabels (PortMatrix *m, PortMatrixBody *b)
 
virtual ~PortMatrixLabels ()
 
void draw_extra (cairo_t *)
 
void clear_channel_highlights ()
 
void add_channel_highlight (ARDOUR::BundleChannel const &)
 
- Public Member Functions inherited from PortMatrixComponent
 PortMatrixComponent (PortMatrix *, PortMatrixBody *)
 
virtual ~PortMatrixComponent ()
 
virtual double component_to_parent_x (double x) const =0
 
virtual double parent_to_component_x (double x) const =0
 
virtual double component_to_parent_y (double y) const =0
 
virtual double parent_to_component_y (double y) const =0
 
virtual void mouseover_changed (std::list< PortMatrixNode > const &)=0
 
virtual void button_press (double, double, GdkEventButton *)
 
virtual void button_release (double, double, GdkEventButton *)
 
virtual void motion (double, double)
 
void set_show_ports (bool)
 
void setup ()
 
GdkPixmapget_pixmap (GdkDrawable *)
 
std::pair< uint32_t, uint32_t > dimensions ()
 
void require_render ()
 
void require_rebuild ()
 
void set_parent_rectangle (Gdk::Rectangle const &r)
 
Gdk::Rectangle parent_rectangle () const
 

Private Member Functions

virtual void render_channel_name (cairo_t *, Gdk::Color, Gdk::Color, double, double, ARDOUR::BundleChannel const &)=0
 
virtual void render_bundle_name (cairo_t *, Gdk::Color, Gdk::Color, double, double, std::shared_ptr< ARDOUR::Bundle >)=0
 
virtual double channel_x (ARDOUR::BundleChannel const &) const =0
 
virtual double channel_y (ARDOUR::BundleChannel const &) const =0
 
virtual void queue_draw_for (ARDOUR::BundleChannel const &)=0
 

Private Attributes

std::vector< ARDOUR::BundleChannel_channel_highlights
 

Additional Inherited Members

- Static Public Member Functions inherited from PortMatrixComponent
static uint32_t grid_spacing ()
 
- Protected Member Functions inherited from PortMatrixComponent
Gdk::Color background_colour ()
 
void set_source_rgb (cairo_t *, Gdk::Color const &)
 
void set_source_rgba (cairo_t *, Gdk::Color const &, double)
 
uint32_t group_size (std::shared_ptr< const PortGroup >) const
 
uint32_t channel_to_position (ARDOUR::BundleChannel, std::shared_ptr< const PortGroup >) const
 
virtual ARDOUR::BundleChannel position_to_channel (double, double, std::shared_ptr< const PortGroup >) const
 
virtual void render (cairo_t *)=0
 
virtual void compute_dimensions ()=0
 
- Static Protected Member Functions inherited from PortMatrixComponent
static uint32_t label_border_width ()
 
static uint32_t name_pad ()
 
static double thin_grid_line_width ()
 
static double thick_grid_line_width ()
 
static uint32_t connection_indicator_pad ()
 
static uint32_t mouseover_line_width ()
 
static double angle ()
 
static Gdk::Color text_colour ()
 
static Gdk::Color grid_colour ()
 
static Gdk::Color association_colour ()
 
static Gdk::Color non_connectable_colour ()
 
static Gdk::Color mouseover_line_colour ()
 
static Gdk::Color highlighted_channel_colour ()
 
static Gdk::Color get_a_bundle_colour (int x)
 
static Gdk::Color get_a_group_colour (int x)
 
- Protected Attributes inherited from PortMatrixComponent
PortMatrix_matrix
 
PortMatrixBody_body
 the PortMatrixBody that we're in More...
 
uint32_t _width
 full width of the contents More...
 
uint32_t _height
 full height of the contents More...
 
Gdk::Rectangle _parent_rectangle
 

Detailed Description

Definition at line 25 of file port_matrix_labels.h.

Constructor & Destructor Documentation

◆ PortMatrixLabels()

PortMatrixLabels::PortMatrixLabels ( PortMatrix m,
PortMatrixBody b 
)
inline

Definition at line 28 of file port_matrix_labels.h.

◆ ~PortMatrixLabels()

virtual PortMatrixLabels::~PortMatrixLabels ( )
inlinevirtual

Definition at line 29 of file port_matrix_labels.h.

Member Function Documentation

◆ add_channel_highlight()

void PortMatrixLabels::add_channel_highlight ( ARDOUR::BundleChannel const &  )

◆ channel_x()

virtual double PortMatrixLabels::channel_x ( ARDOUR::BundleChannel const &  ) const
privatepure virtual

◆ channel_y()

virtual double PortMatrixLabels::channel_y ( ARDOUR::BundleChannel const &  ) const
privatepure virtual

◆ clear_channel_highlights()

void PortMatrixLabels::clear_channel_highlights ( )

◆ draw_extra()

void PortMatrixLabels::draw_extra ( cairo_t *  )
virtual

Implements PortMatrixComponent.

◆ queue_draw_for()

virtual void PortMatrixLabels::queue_draw_for ( ARDOUR::BundleChannel const &  )
privatepure virtual

◆ render_bundle_name()

virtual void PortMatrixLabels::render_bundle_name ( cairo_t *  ,
Gdk::Color  ,
Gdk::Color  ,
double  ,
double  ,
std::shared_ptr< ARDOUR::Bundle  
)
privatepure virtual

◆ render_channel_name()

virtual void PortMatrixLabels::render_channel_name ( cairo_t *  ,
Gdk::Color  ,
Gdk::Color  ,
double  ,
double  ,
ARDOUR::BundleChannel const &   
)
privatepure virtual

Member Data Documentation

◆ _channel_highlights

std::vector<ARDOUR::BundleChannel> PortMatrixLabels::_channel_highlights
private

Definition at line 43 of file port_matrix_labels.h.


The documentation for this class was generated from the following file: