Ardour  9.0-pre0-582-g084a23a80d
ControlPoint Class Reference

#include <control_point.h>

Inheritance diagram for ControlPoint:
[legend]

Public Types

enum  ShapeType { Full , Start , End }
 

Public Member Functions

 ControlPoint (AutomationLine &al)
 
 ControlPoint (const ControlPoint &, bool dummy_arg_to_force_special_copy_constructor)
 
virtual ~ControlPoint ()
 
void move_to (double x, double y)
 
void move_to (double x, double y, ShapeType)
 
void reset (double x, double y, ARDOUR::AutomationList::iterator, uint32_t, ShapeType)
 
double get_x () const
 
double get_y () const
 
void hide ()
 
void show ()
 
bool visible () const
 
double size () const
 
void set_size (double)
 
void set_color ()
 
bool can_slide () const
 
void set_can_slide (bool yn)
 
uint32_t view_index () const
 
void set_view_index (uint32_t i)
 
ArdourCanvas::Itemitem () const
 
void unset_item ()
 
ARDOUR::AutomationList::iterator model () const
 
AutomationLineline () const
 
- Public Member Functions inherited from Selectable
 Selectable ()
 
virtual ~Selectable ()
 
virtual void set_selected (bool yn)
 
virtual bool selected () const
 

Static Public Attributes

static PBD::Signal< void(ControlPoint *)> CatchDeletion
 

Private Member Functions

virtual bool event_handler (GdkEvent *)
 

Private Attributes

ArdourCanvas::Rectangle_item
 
AutomationLine_line
 
ARDOUR::AutomationList::iterator _model
 
uint32_t _view_index
 
bool _can_slide
 
double _x
 
double _y
 
double _size
 
ShapeType _shape
 

Additional Inherited Members

- Protected Attributes inherited from Selectable
bool _selected
 

Detailed Description

Definition at line 45 of file control_point.h.

Member Enumeration Documentation

◆ ShapeType

Enumerator
Full 
Start 
End 

Definition at line 52 of file control_point.h.

Constructor & Destructor Documentation

◆ ControlPoint() [1/2]

ControlPoint::ControlPoint ( AutomationLine al)

◆ ControlPoint() [2/2]

ControlPoint::ControlPoint ( const ControlPoint ,
bool  dummy_arg_to_force_special_copy_constructor 
)

◆ ~ControlPoint()

virtual ControlPoint::~ControlPoint ( )
virtual

Member Function Documentation

◆ can_slide()

bool ControlPoint::can_slide ( ) const
inline

Definition at line 75 of file control_point.h.

◆ event_handler()

virtual bool ControlPoint::event_handler ( GdkEvent )
privatevirtual

◆ get_x()

double ControlPoint::get_x ( ) const
inline

Definition at line 61 of file control_point.h.

◆ get_y()

double ControlPoint::get_y ( ) const
inline

Definition at line 62 of file control_point.h.

◆ hide()

void ControlPoint::hide ( )

◆ item()

ArdourCanvas::Item& ControlPoint::item ( ) const

◆ line()

AutomationLine& ControlPoint::line ( ) const
inline

Definition at line 86 of file control_point.h.

◆ model()

ARDOUR::AutomationList::iterator ControlPoint::model ( ) const
inline

Definition at line 85 of file control_point.h.

◆ move_to() [1/2]

void ControlPoint::move_to ( double  x,
double  y 
)

◆ move_to() [2/2]

void ControlPoint::move_to ( double  x,
double  y,
ShapeType   
)

◆ reset()

void ControlPoint::reset ( double  x,
double  y,
ARDOUR::AutomationList::iterator  ,
uint32_t  ,
ShapeType   
)

◆ set_can_slide()

void ControlPoint::set_can_slide ( bool  yn)
inline

Definition at line 76 of file control_point.h.

◆ set_color()

void ControlPoint::set_color ( )

◆ set_size()

void ControlPoint::set_size ( double  )

◆ set_view_index()

void ControlPoint::set_view_index ( uint32_t  i)
inline

Definition at line 78 of file control_point.h.

◆ show()

void ControlPoint::show ( )

◆ size()

double ControlPoint::size ( ) const
inline

Definition at line 68 of file control_point.h.

◆ unset_item()

void ControlPoint::unset_item ( )
inline

Definition at line 83 of file control_point.h.

◆ view_index()

uint32_t ControlPoint::view_index ( ) const
inline

Definition at line 77 of file control_point.h.

◆ visible()

bool ControlPoint::visible ( ) const

Member Data Documentation

◆ _can_slide

bool ControlPoint::_can_slide
private

Definition at line 95 of file control_point.h.

◆ _item

ArdourCanvas::Rectangle* ControlPoint::_item
private

Definition at line 91 of file control_point.h.

◆ _line

AutomationLine& ControlPoint::_line
private

Definition at line 92 of file control_point.h.

◆ _model

ARDOUR::AutomationList::iterator ControlPoint::_model
private

Definition at line 93 of file control_point.h.

◆ _shape

ShapeType ControlPoint::_shape
private

Definition at line 99 of file control_point.h.

◆ _size

double ControlPoint::_size
private

Definition at line 98 of file control_point.h.

◆ _view_index

uint32_t ControlPoint::_view_index
private

Definition at line 94 of file control_point.h.

◆ _x

double ControlPoint::_x
private

Definition at line 96 of file control_point.h.

◆ _y

double ControlPoint::_y
private

Definition at line 97 of file control_point.h.

◆ CatchDeletion

PBD::Signal<void(ControlPoint *)> ControlPoint::CatchDeletion
static

Definition at line 88 of file control_point.h.


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