CADrawableRest Class Reference

#include <drawablerest.h>

Inheritance diagram for CADrawableRest:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CADrawableRest (CARest *rest, CADrawableContext *drawableContext, int x, int y)
CADrawableRestclone (CADrawableContext *newContext=0)
 ~CADrawableRest ()
void draw (QPainter *p, CADrawSettings s)
CARestrest ()

Private Attributes

int _restWidth


Detailed Description

Definition at line 16 of file drawablerest.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableRest::~CADrawableRest (  ) 

Definition at line 100 of file drawablerest.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

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.

Here is the call graph for this function:

CARest* CADrawableRest::rest (  )  [inline]

Definition at line 24 of file drawablerest.h.

References CADrawableMusElement::_musElement.

Referenced by clone(), and draw().

Here is the caller graph for this function:


Member Data Documentation

int CADrawableRest::_restWidth [private]

Definition at line 27 of file drawablerest.h.

Referenced by CADrawableRest(), and draw().


The documentation for this class was generated from the following files:
Generated on Sat Feb 9 13:13:03 2008 for Canorus by  doxygen 1.5.3