Ardour  8.7-15-gadf511264b
ArdourCanvas::Duple Struct Reference

#include <types.h>

Public Member Functions

 Duple ()
 
 Duple (Coord x_, Coord y_)
 
Coord width () const
 
Coord height () const
 
Duple translate (const Duple &t) const throw ()
 
Duple operator- () const throw ()
 
Duple operator+ (Duple const &o) const throw ()
 
bool operator== (Duple const &o) const throw ()
 
bool operator!= (Duple const &o) const throw ()
 
Duple operator- (Duple const &o) const throw ()
 
Duple operator/ (double b) const throw ()
 

Public Attributes

Coord x
 
Coord y
 

Detailed Description

Definition at line 64 of file canvas/canvas/types.h.

Constructor & Destructor Documentation

◆ Duple() [1/2]

ArdourCanvas::Duple::Duple ( )
inline

Definition at line 66 of file canvas/canvas/types.h.

◆ Duple() [2/2]

ArdourCanvas::Duple::Duple ( Coord  x_,
Coord  y_ 
)
inline

Definition at line 71 of file canvas/canvas/types.h.

Member Function Documentation

◆ height()

Coord ArdourCanvas::Duple::height ( ) const
inline

Definition at line 82 of file canvas/canvas/types.h.

◆ operator!=()

bool ArdourCanvas::Duple::operator!= ( Duple const &  o) const
throw (
)
inline

Definition at line 97 of file canvas/canvas/types.h.

◆ operator+()

Duple ArdourCanvas::Duple::operator+ ( Duple const &  o) const
throw (
)
inline

Definition at line 91 of file canvas/canvas/types.h.

◆ operator-() [1/2]

Duple ArdourCanvas::Duple::operator- ( ) const
throw (
)
inline

Definition at line 88 of file canvas/canvas/types.h.

◆ operator-() [2/2]

Duple ArdourCanvas::Duple::operator- ( Duple const &  o) const
throw (
)
inline

Definition at line 100 of file canvas/canvas/types.h.

◆ operator/()

Duple ArdourCanvas::Duple::operator/ ( double  b) const
throw (
)
inline

Definition at line 103 of file canvas/canvas/types.h.

◆ operator==()

bool ArdourCanvas::Duple::operator== ( Duple const &  o) const
throw (
)
inline

Definition at line 94 of file canvas/canvas/types.h.

◆ translate()

Duple ArdourCanvas::Duple::translate ( const Duple t) const
throw (
)
inline

Definition at line 84 of file canvas/canvas/types.h.

◆ width()

Coord ArdourCanvas::Duple::width ( ) const
inline

Definition at line 81 of file canvas/canvas/types.h.

Member Data Documentation

◆ x

Coord ArdourCanvas::Duple::x

Definition at line 76 of file canvas/canvas/types.h.

◆ y

Coord ArdourCanvas::Duple::y

Definition at line 77 of file canvas/canvas/types.h.


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