Frapper  1.0a
Public Member Functions | Private Attributes | List of all members
Frapper::TimelineGraphicsItem Class Reference

Class for graphics items representing keys in the Curve Editor panel. More...

#include <TimelineGraphicsItem.h>

Inheritance diagram for Frapper::TimelineGraphicsItem:
Inheritance graph
[legend]
Collaboration diagram for Frapper::TimelineGraphicsItem:
Collaboration graph
[legend]

Public Member Functions

 TimelineGraphicsItem (const float height)
 Constructor of the TimelineGraphicsItem class.
 
void setWidth (const float width)
 Sets the with by the given value.
 
QRectF boundingRect () const
 Returns a rectangle describing the bounding region of the key item.
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 The paint function of the node.
 

Private Attributes

float m_height
 the height of the timeline
 
float m_width
 the width of the timeline
 

Detailed Description

Class for graphics items representing keys in the Curve Editor panel.

Constructor & Destructor Documentation

Frapper::TimelineGraphicsItem::TimelineGraphicsItem ( const float  height)

Constructor of the TimelineGraphicsItem class.

Constructors and Destructors.

Parameters
heightThe height of th item.

Constructor of the TimelineGraphicsItem class.

Parameters
curveEditorGraphicsViewThe graphics view in which the key graphics item is contained.

Member Function Documentation

void Frapper::TimelineGraphicsItem::setWidth ( const float  width)

Sets the with by the given value.

Public Functions.

Parameters
widthThe value to set the item width.

Sets the with by the given value.

Parameters
widthThe value to set the item width.
QRectF Frapper::TimelineGraphicsItem::boundingRect ( ) const

Returns a rectangle describing the bounding region of the key item.

Returns
A rectangle describing the bounding region of the key item.
void Frapper::TimelineGraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
virtual

The paint function of the node.

Member Data Documentation

float Frapper::TimelineGraphicsItem::m_height
private

the height of the timeline

float Frapper::TimelineGraphicsItem::m_width
private

the width of the timeline


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