MuseScore  3.4
Music composition and notation
Public Types | Public Member Functions | List of all members
Ms::Shape Class Reference

#include <shape.h>

Inheritance diagram for Ms::Shape:
Inheritance graph
[legend]
Collaboration diagram for Ms::Shape:
Collaboration graph
[legend]

Public Types

enum  HorizontalSpacingType { SPACING_GENERAL = 0, SPACING_LYRICS, SPACING_HARMONY }
 

Public Member Functions

 Shape ()
 
 Shape (const QRectF &r, const char *s=0)
 
void add (const Shape &s)
 
void add (const QRectF &r, const char *t=0)
 
void remove (const QRectF &)
 
void remove (const Shape &)
 
void addHorizontalSpacing (HorizontalSpacingType type, qreal left, qreal right)
 
void translate (const QPointF &)
 
void translateX (qreal)
 
void translateY (qreal)
 
Shape translated (const QPointF &) const
 
qreal minHorizontalDistance (const Shape &) const
 
qreal minVerticalDistance (const Shape &) const
 
qreal topDistance (const QPointF &) const
 
qreal bottomDistance (const QPointF &) const
 
qreal left () const
 
qreal right () const
 
qreal top () const
 
qreal bottom () const
 
size_t size () const
 
bool empty () const
 
void clear ()
 
bool contains (const QPointF &) const
 
bool intersects (const QRectF &rr) const
 
bool intersects (const Shape &) const
 
void paint (QPainter &) const
 
void dump (const char *) const
 

Member Enumeration Documentation

◆ HorizontalSpacingType

Enumerator
SPACING_GENERAL 
SPACING_LYRICS 
SPACING_HARMONY 

Constructor & Destructor Documentation

◆ Shape() [1/2]

Ms::Shape::Shape ( )
inline

◆ Shape() [2/2]

Ms::Shape::Shape ( const QRectF &  r,
const char *  s = 0 
)
inline

Member Function Documentation

◆ add() [1/2]

void Ms::Shape::add ( const Shape s)
inline

◆ add() [2/2]

void Ms::Shape::add ( const QRectF &  r,
const char *  t = 0 
)

◆ addHorizontalSpacing()

void Ms::Shape::addHorizontalSpacing ( HorizontalSpacingType  type,
qreal  left,
qreal  right 
)

◆ bottom()

qreal Ms::Shape::bottom ( ) const

◆ bottomDistance()

qreal Ms::Shape::bottomDistance ( const QPointF &  p) const

◆ clear()

void Ms::Shape::clear ( )
inline

◆ contains()

bool Ms::Shape::contains ( const QPointF &  p) const

◆ dump()

void Ms::Shape::dump ( const char *  p) const

◆ empty()

bool Ms::Shape::empty ( ) const
inline

◆ intersects() [1/2]

bool Ms::Shape::intersects ( const QRectF &  rr) const

◆ intersects() [2/2]

bool Ms::Shape::intersects ( const Shape other) const

◆ left()

qreal Ms::Shape::left ( ) const

◆ minHorizontalDistance()

qreal Ms::Shape::minHorizontalDistance ( const Shape a) const

◆ minVerticalDistance()

qreal Ms::Shape::minVerticalDistance ( const Shape a) const

◆ paint()

void Ms::Shape::paint ( QPainter &  p) const

◆ remove() [1/2]

void Ms::Shape::remove ( const QRectF &  r)

◆ remove() [2/2]

void Ms::Shape::remove ( const Shape s)

◆ right()

qreal Ms::Shape::right ( ) const

◆ size()

size_t Ms::Shape::size ( ) const
inline

◆ top()

qreal Ms::Shape::top ( ) const

◆ topDistance()

qreal Ms::Shape::topDistance ( const QPointF &  p) const

◆ translate()

void Ms::Shape::translate ( const QPointF &  pt)

◆ translated()

Shape Ms::Shape::translated ( const QPointF &  pt) const

◆ translateX()

void Ms::Shape::translateX ( qreal  xo)

◆ translateY()

void Ms::Shape::translateY ( qreal  yo)

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