Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
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, double x, double 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.


Constructor & Destructor Documentation

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

Default constructor.

Parameters:
clefPointer to the logical CAClef.
xX coordinate of the left-margin of the clef.
yY coordinate of the top of the staff. (WARNING! Not top of the clef!)

References CAClef::C, clef(), CLEF_EIGHT_SIZE, CADrawableMusElement::DrawableClef, CAClef::F, CAClef::G, CADrawable::height(), CADrawableStaff::lineSpace(), CAClef::PercussionHigh, CAClef::PercussionLow, CADrawableMusElement::setDrawableMusElementType(), CADrawable::setHeight(), CADrawable::setWidth(), CADrawable::setYPos(), CAClef::Tablature, 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

References CADrawableMusElement::_musElement.

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

Here is the caller graph for this function:

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

Implements CADrawableMusElement.

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

Here is the call graph for this function:

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

Member Data Documentation

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.

Referenced by CADrawableClef(), and draw().


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