CADrawableClef Class Reference

Drawable instance of CAClef This class draws the clef to the canvas. More...

#include <drawableclef.h>

Inheritance diagram for CADrawableClef:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CADrawableClef (CAClef *clef, CADrawableStaff *drawableStaff, int x, int y)
void draw (QPainter *p, CADrawSettings s)
CADrawableClefclone (CADrawableContext *newContext=0)
CAClefclef ()

Static Public Attributes

static const int CLEF_EIGHT_SIZE = 8


Detailed Description

Drawable instance of CAClef This class draws the clef to the canvas.

Definition at line 16 of file drawableclef.h.


Constructor & Destructor Documentation

CADrawableClef::CADrawableClef ( CAClef musElement,
CADrawableStaff drawableStaff,
int  x,
int  y 
)

Default constructor.

Parameters:
clef Pointer to the logical CAClef.
x X coordinate of the left-margin of the clef.
y Y coordinate of the top of the staff. (WARNING! Not top of the clef!)

Definition at line 33 of file drawableclef.cpp.

References CADrawable::_height, CADrawable::_width, CADrawable::_yPos, CAClef::C, clef(), CLEF_EIGHT_SIZE, CADrawableMusElement::DrawableClef, CAClef::F, CAClef::G, CADrawable::height(), CADrawableStaff::lineSpace(), CADrawableMusElement::setDrawableMusElementType(), CADrawable::setNeededHeight(), CADrawable::setNeededWidth(), CADrawable::width(), and CADrawable::yPos().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

void CADrawableClef::draw ( QPainter *  p,
CADrawSettings  s 
) [virtual]

Implements CADrawable.

Definition at line 81 of file drawableclef.cpp.

References CAClef::C, clef(), CLEF_EIGHT_SIZE, CADrawSettings::color, CAClef::F, CAClef::G, CADrawable::height(), CADrawable::width(), CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.

Here is the call graph for this function:

CADrawableClef * CADrawableClef::clone ( CADrawableContext newContext = 0  )  [virtual]

Implements CADrawableMusElement.

Definition at line 122 of file drawableclef.cpp.

References CADrawableMusElement::_drawableContext, CADrawableClef(), clef(), and CADrawable::xPos().

Here is the call graph for this function:

CAClef* CADrawableClef::clef (  )  [inline]

Definition at line 22 of file drawableclef.h.

References CADrawableMusElement::_musElement.

Referenced by CADrawableClef(), clone(), draw(), and CAEngraver::reposit().

Here is the caller graph for this function:


Member Data Documentation

const int CADrawableClef::CLEF_EIGHT_SIZE = 8 [static]

Copyright (c) 2006-2007, 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 24 of file drawableclef.h.

Referenced by CADrawableClef(), and draw().


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