Ardour  9.0-pre0-582-g084a23a80d
PatchChange Class Reference

#include <patch_change.h>

Public Member Functions

 PatchChange (MidiView &region, ArdourCanvas::Item *parent, double height, double x, double y, ARDOUR::InstrumentInfo &info, ARDOUR::MidiModel::PatchChangePtr patch, Gtkmm2ext::Color outline_color, Gtkmm2ext::Color fill_color)
 
 ~PatchChange ()
 
void initialize_popup_menus ()
 
void on_patch_menu_selected (const MIDI::Name::PatchPrimaryKey &key)
 
void move (ArdourCanvas::Duple)
 
void set_height (ArdourCanvas::Distance)
 
void hide ()
 
void show ()
 
void update_name ()
 
double width () const
 
ARDOUR::MidiModel::PatchChangePtr patch () const
 
ArdourCanvas::Itemcanvas_item () const
 
ArdourCanvas::Itemitem () const
 

Private Member Functions

bool event_handler (GdkEvent *)
 

Private Attributes

MidiView_region
 
ARDOUR::InstrumentInfo_info
 
ARDOUR::MidiModel::PatchChangePtr _patch
 
Gtk::Menu _popup
 
bool _popup_initialized
 
ArdourCanvas::Flag_flag
 

Detailed Description

Definition at line 39 of file patch_change.h.

Constructor & Destructor Documentation

◆ PatchChange()

PatchChange::PatchChange ( MidiView region,
ArdourCanvas::Item parent,
double  height,
double  x,
double  y,
ARDOUR::InstrumentInfo info,
ARDOUR::MidiModel::PatchChangePtr  patch,
Gtkmm2ext::Color  outline_color,
Gtkmm2ext::Color  fill_color 
)

◆ ~PatchChange()

PatchChange::~PatchChange ( )

Member Function Documentation

◆ canvas_item()

ArdourCanvas::Item* PatchChange::canvas_item ( ) const
inline

Definition at line 67 of file patch_change.h.

◆ event_handler()

bool PatchChange::event_handler ( GdkEvent )
private

◆ hide()

void PatchChange::hide ( )

◆ initialize_popup_menus()

void PatchChange::initialize_popup_menus ( )

◆ item()

ArdourCanvas::Item& PatchChange::item ( ) const
inline

Definition at line 68 of file patch_change.h.

◆ move()

void PatchChange::move ( ArdourCanvas::Duple  )

◆ on_patch_menu_selected()

void PatchChange::on_patch_menu_selected ( const MIDI::Name::PatchPrimaryKey key)

◆ patch()

ARDOUR::MidiModel::PatchChangePtr PatchChange::patch ( ) const
inline

Definition at line 66 of file patch_change.h.

◆ set_height()

void PatchChange::set_height ( ArdourCanvas::Distance  )

◆ show()

void PatchChange::show ( )

◆ update_name()

void PatchChange::update_name ( )

◆ width()

double PatchChange::width ( ) const
inline

Definition at line 65 of file patch_change.h.

Member Data Documentation

◆ _flag

ArdourCanvas::Flag* PatchChange::_flag
private

Definition at line 78 of file patch_change.h.

◆ _info

ARDOUR::InstrumentInfo& PatchChange::_info
private

Definition at line 74 of file patch_change.h.

◆ _patch

ARDOUR::MidiModel::PatchChangePtr PatchChange::_patch
private

Definition at line 75 of file patch_change.h.

◆ _popup

Gtk::Menu PatchChange::_popup
private

Definition at line 76 of file patch_change.h.

◆ _popup_initialized

bool PatchChange::_popup_initialized
private

Definition at line 77 of file patch_change.h.

◆ _region

MidiView& PatchChange::_region
private

Definition at line 73 of file patch_change.h.


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