Lumiera  0.pre.03
»edityourfreedom«
Entity Class Referenceabstract

#include "gui/widget/timeline/timeline-entity.hpp"

Description

Base class for timeline entities.

Everything that can be placed on the timeline is a timeline Entity.

Definition at line 55 of file timeline-entity.hpp.

Public Member Functions

virtual void draw (Cairo::RefPtr< Cairo::Context > cairo, TimelineViewWindow *const window) const
 
virtual Time getBegin () const =0
 
bool getEnabled () const
 
virtual Time getEnd () const =0
 
virtual std::string getName () const =0
 
void setEnabled (bool selected)
 

Protected Member Functions

 Entity (shared_ptr< timeline::DrawStrategy > drawStrategy)
 
virtual ~Entity ()
 

Private Attributes

shared_ptr< timeline::DrawStrategydrawStrategy_
 
bool enabled_
 

Constructor & Destructor Documentation

◆ Entity()

Entity ( shared_ptr< timeline::DrawStrategy drawStrategy)
protected

Definition at line 38 of file timeline-entity.cpp.

◆ ~Entity()

~Entity ( )
protectedvirtual

Definition at line 44 of file timeline-entity.cpp.

Member Function Documentation

◆ draw()

void draw ( Cairo::RefPtr< Cairo::Context >  cairo,
TimelineViewWindow *const  window 
) const
virtual

Definition at line 48 of file timeline-entity.cpp.

References Entity::drawStrategy_.

◆ getEnabled()

bool getEnabled ( ) const

Definition at line 59 of file timeline-entity.cpp.

References Entity::enabled_.

◆ getBegin()

virtual Time getBegin ( ) const
pure virtual

Implemented in Clip.

Referenced by BasicDrawStrategy::draw().

+ Here is the caller graph for this function:

◆ getEnd()

virtual Time getEnd ( ) const
pure virtual

Implemented in Clip.

Referenced by BasicDrawStrategy::draw().

+ Here is the caller graph for this function:

◆ getName()

virtual std::string getName ( ) const
pure virtual

Implemented in Clip.

Referenced by BasicDrawStrategy::draw().

+ Here is the caller graph for this function:

◆ setEnabled()

void setEnabled ( bool  selected)

Definition at line 65 of file timeline-entity.cpp.

References Entity::enabled_.

Member Data Documentation

◆ enabled_

bool enabled_
private

Definition at line 57 of file timeline-entity.hpp.

Referenced by Entity::getEnabled(), and Entity::setEnabled().

◆ drawStrategy_

shared_ptr<timeline::DrawStrategy> drawStrategy_
private

Definition at line 58 of file timeline-entity.hpp.

Referenced by Entity::draw().

+ Inheritance diagram for Entity:
+ Collaboration diagram for Entity:

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