Ardour  9.0-pre0-582-g084a23a80d
ArdourCanvas::Rect Struct Reference

#include <types.h>

Public Member Functions

 Rect ()
 
 Rect (Coord x0_, Coord y0_, Coord x1_, Coord y1_)
 
Rect intersection (Rect const &o) const throw ()
 
Rect extend (Rect const &o) const throw ()
 
Rect translate (Duple const &t) const throw ()
 
Rect expand (Distance amount) const throw ()
 
Rect expand (Distance top, Distance right, Distance bottom, Distance left) const throw ()
 
Rect shrink (Distance amount) const throw ()
 
Rect shrink (Distance top, Distance right, Distance bottom, Distance left) const throw ()
 
bool contains (Duple const &point) const throw ()
 
Rect fix () const throw ()
 
bool empty () const throw ()
 
 operator bool () const throw ()
 
Distance width () const throw ()
 
Distance height () const throw ()
 
bool operator!= (Rect const &o) const throw ()
 

Public Attributes

Coord x0
 
Coord y0
 
Coord x1
 
Coord y1
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Rect() [1/2]

ArdourCanvas::Rect::Rect ( )
inline

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

◆ Rect() [2/2]

ArdourCanvas::Rect::Rect ( Coord  x0_,
Coord  y0_,
Coord  x1_,
Coord  y1_ 
)
inline

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

Member Function Documentation

◆ contains()

bool ArdourCanvas::Rect::contains ( Duple const &  point) const
throw (
)
inline

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

◆ empty()

bool ArdourCanvas::Rect::empty ( ) const
throw (
)
inline

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

◆ expand() [1/2]

Rect ArdourCanvas::Rect::expand ( Distance  amount) const
throw (
)
inline

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

◆ expand() [2/2]

Rect ArdourCanvas::Rect::expand ( Distance  top,
Distance  right,
Distance  bottom,
Distance  left 
) const
throw (
)
inline

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

◆ extend()

Rect ArdourCanvas::Rect::extend ( Rect const &  o) const
throw (
)
inline

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

◆ fix()

Rect ArdourCanvas::Rect::fix ( ) const
throw (
)
inline

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

◆ height()

Distance ArdourCanvas::Rect::height ( ) const
throw (
)
inline

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

◆ intersection()

Rect ArdourCanvas::Rect::intersection ( Rect const &  o) const
throw (
)
inline

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

◆ operator bool()

ArdourCanvas::Rect::operator bool ( ) const
throw (
)
inline

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

◆ operator!=()

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

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

◆ shrink() [1/2]

Rect ArdourCanvas::Rect::shrink ( Distance  amount) const
throw (
)
inline

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

◆ shrink() [2/2]

Rect ArdourCanvas::Rect::shrink ( Distance  top,
Distance  right,
Distance  bottom,
Distance  left 
) const
throw (
)
inline

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

◆ translate()

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

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

◆ width()

Distance ArdourCanvas::Rect::width ( ) const
throw (
)
inline

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

Member Data Documentation

◆ x0

Coord ArdourCanvas::Rect::x0

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

◆ x1

Coord ArdourCanvas::Rect::x1

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

◆ y0

Coord ArdourCanvas::Rect::y0

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

◆ y1

Coord ArdourCanvas::Rect::y1

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


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