Canorus  0.0
Public Member Functions | Private Attributes | List of all members
CADrawableRest Class Reference

#include <drawablerest.h>

Inheritance diagram for CADrawableRest:
Inheritance graph
[legend]

Public Member Functions

 CADrawableRest (CARest *rest, CADrawableContext *drawableContext, double x, double y)
 
CADrawableRestclone (CADrawableContext *newContext=0)
 
 ~CADrawableRest ()
 
void draw (QPainter *p, CADrawSettings s)
 
CARestrest ()
 
- Public Member Functions inherited from CADrawableMusElement
 CADrawableMusElement (CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y)
 
CADrawableMusElementType drawableMusElementType ()
 
CAMusElementmusElement ()
 
CADrawableContextdrawableContext ()
 
void setDrawableContext (CADrawableContext *context)
 
- Public Member Functions inherited from CADrawable
 CADrawable (double x, double y)
 
virtual ~CADrawable ()
 
virtual CADrawableclone ()
 
void drawHScaleHandles (QPainter *p, const CADrawSettings s)
 
void drawVScaleHandles (QPainter *p, const CADrawSettings s)
 
CADrawableType drawableType ()
 
double xPos () const
 
double yPos () const
 
double width () const
 
double height () const
 
double neededSpaceWidth () const
 
double neededSpaceHeight () const
 
double neededWidth () const
 
double neededHeight () const
 
double xCenter () const
 
double yCenter () const
 
const QRect bBox () const
 
bool isVisible () const
 
bool isSelectable () const
 
bool isHScalable () const
 
bool isVScalable () const
 
void setXPos (double xPos)
 
void setYPos (double yPos)
 
void setWidth (double width)
 
void setHeight (double height)
 
void setNeededSpaceWidth (double width)
 
void setNeededSpaceHeight (double height)
 
void setVisible (bool v)
 
void setSelectable (bool s)
 
void setHScalable (bool s)
 
void setVScalable (bool s)
 

Private Attributes

double _restWidth
 

Additional Inherited Members

- Public Types inherited from CADrawableMusElement
enum  CADrawableMusElementType {
  DrawableNote, DrawableRest, DrawableMidiNote, DrawableClef,
  DrawableKeySignature, DrawableTimeSignature, DrawableBarline, DrawableAccidental,
  DrawableSlur, DrawableTuplet, DrawableSyllable, DrawableFunctionMark,
  DrawableFunctionMarkSupport, DrawableFiguredBassNumber, DrawableMark
}
 
- Public Types inherited from CADrawable
enum  CADrawableType { DrawableMusElement, DrawableContext }
 
enum  CADirection {
  Undefined, Top, Bottom, Left,
  Right, TopLeft, TopRight, BottomLeft,
  BottomRight
}
 
- Protected Member Functions inherited from CADrawableMusElement
void setDrawableMusElementType (CADrawableMusElementType t)
 
- Protected Member Functions inherited from CADrawable
void setDrawableType (CADrawableType t)
 
- Protected Attributes inherited from CADrawableMusElement
CADrawableMusElementType _drawableMusElementType
 
CADrawableContext_drawableContext
 
CAMusElement_musElement
 
bool _selectable
 
- Protected Attributes inherited from CADrawable
CADrawableType _drawableType
 
double _xPos
 
double _yPos
 
double _width
 
double _height
 
double _neededSpaceWidth
 
double _neededSpaceHeight
 
bool _visible
 
bool _selectable
 
bool _hScalable
 
bool _vScalable
 
- Static Protected Attributes inherited from CADrawable
static const int SCALE_HANDLES_SIZE = 2
 

Detailed Description

Copyright (c) 2006-2009, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.

Constructor & Destructor Documentation

◆ CADrawableRest()

CADrawableRest::CADrawableRest ( CARest rest,
CADrawableContext drawableContext,
double  x,
double  y 
)

◆ ~CADrawableRest()

CADrawableRest::~CADrawableRest ( )

Member Function Documentation

◆ clone()

CADrawableRest * CADrawableRest::clone ( CADrawableContext newContext = 0)
virtual

Implements CADrawableMusElement.

References CADrawableMusElement::_drawableContext, CADrawableRest(), rest(), CADrawable::xPos(), and CADrawable::yPos().

Here is the call graph for this function:

◆ draw()

void CADrawableRest::draw ( QPainter *  p,
CADrawSettings  s 
)
virtual

◆ rest()

CARest* CADrawableRest::rest ( )
inline

References CADrawableMusElement::_musElement.

Referenced by CADrawableRest(), clone(), draw(), and CALayoutEngine::reposit().

Here is the caller graph for this function:

Member Data Documentation

◆ _restWidth

double CADrawableRest::_restWidth
private

Referenced by CADrawableRest(), and draw().


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