#include <drawablerest.h>

Public Member Functions | |
| CADrawableRest (CARest *rest, CADrawableContext *drawableContext, int x, int y) | |
| CADrawableRest * | clone (CADrawableContext *newContext=0) |
| ~CADrawableRest () | |
| void | draw (QPainter *p, CADrawSettings s) |
| CARest * | rest () |
Private Attributes | |
| int | _restWidth |
Definition at line 16 of file drawablerest.h.
| CADrawableRest::CADrawableRest | ( | CARest * | rest, | |
| CADrawableContext * | drawableContext, | |||
| int | x, | |||
| int | y | |||
| ) |
Copyright (c) 2006, 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.
Definition at line 15 of file drawablerest.cpp.
References CADrawableMusElement::_drawableMusElementType, CADrawable::_height, CADrawable::_neededHeight, CADrawable::_neededWidth, _restWidth, CADrawable::_width, CADrawable::_xPos, CADrawable::_yPos, CAPlayable::Breve, CAPlayable::dotted(), CADrawableContext::drawableContextType(), CADrawableMusElement::DrawableRest, CADrawableContext::DrawableStaff, CAPlayable::Eighth, CAPlayable::Half, CAPlayable::HundredTwentyEighth, CAPlayable::playableLength(), CAPlayable::Quarter, CAPlayable::Sixteenth, CAPlayable::SixtyFourth, CAPlayable::ThirtySecond, and CAPlayable::Whole.
Referenced by clone().


| CADrawableRest::~CADrawableRest | ( | ) |
Definition at line 100 of file drawablerest.cpp.
| CADrawableRest * CADrawableRest::clone | ( | CADrawableContext * | newContext = 0 |
) | [virtual] |
Implements CADrawableMusElement.
Definition at line 103 of file drawablerest.cpp.
References CADrawableMusElement::_drawableContext, CADrawable::_xPos, CADrawable::_yPos, CADrawableRest(), and rest().

| void CADrawableRest::draw | ( | QPainter * | p, | |
| CADrawSettings | s | |||
| ) | [virtual] |
Implements CADrawable.
Definition at line 107 of file drawablerest.cpp.
References CADrawableMusElement::_drawableContext, CADrawable::_height, _restWidth, CAPlayable::Breve, CADrawSettings::color, CAPlayable::dotted(), CAPlayable::Eighth, CAPlayable::Half, CADrawable::height(), CAPlayable::HundredTwentyEighth, CAPlayable::Quarter, rest(), CAPlayable::Sixteenth, CAPlayable::SixtyFourth, CAPlayable::ThirtySecond, CAPlayable::Whole, CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.

| CARest* CADrawableRest::rest | ( | ) | [inline] |
Definition at line 24 of file drawablerest.h.
References CADrawableMusElement::_musElement.
Referenced by clone(), and draw().

int CADrawableRest::_restWidth [private] |
1.5.3