Public Member Functions

KDGantt::Span Class Reference

A class representing a start point and a length. More...

#include <KDGanttGlobal>

Collaboration diagram for KDGantt::Span:
Collaboration graph
[legend]

List of all members.

Public Member Functions

qreal end () const
bool equals (const Span &other) const
Span expandedTo (const Span &other) const
bool isValid () const
qreal length () const
Spanoperator= (const Span &other)
void setEnd (qreal end)
void setLength (qreal length)
void setStart (qreal start)
 Span ()
 Span (const Span &other)
 Span (qreal start, qreal length)
qreal start () const

Detailed Description

A class representing a start point and a length.

Definition at line 226 of file kdganttglobal.h.


Constructor & Destructor Documentation

KDGantt::Span::Span (  ) 

Definition at line 230 of file kdganttglobal.h.

KDGantt::Span::Span ( qreal  start,
qreal  length 
)

Definition at line 231 of file kdganttglobal.h.

KDGantt::Span::Span ( const Span other  ) 

Definition at line 232 of file kdganttglobal.h.


Member Function Documentation

qreal KDGantt::Span::end (  )  const

Definition at line 239 of file kdganttglobal.h.

Referenced by expandedTo(), and KDGantt::AbstractGrid::isSatisfiedConstraint().

bool KDGantt::Span::equals ( const Span other  )  const

Definition at line 246 of file kdganttglobal.h.

Referenced by KDGantt::operator!=(), and KDGantt::operator==().

Span KDGantt::Span::expandedTo ( const Span other  )  const

Definition at line 249 of file kdganttglobal.h.

References end(), and start().

bool KDGantt::Span::isValid (  )  const

Definition at line 244 of file kdganttglobal.h.

Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().

qreal KDGantt::Span::length (  )  const
Span& KDGantt::Span::operator= ( const Span other  ) 

Definition at line 234 of file kdganttglobal.h.

void KDGantt::Span::setEnd ( qreal  end  ) 

Definition at line 238 of file kdganttglobal.h.

Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().

void KDGantt::Span::setLength ( qreal  length  ) 

Definition at line 241 of file kdganttglobal.h.

Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().

void KDGantt::Span::setStart ( qreal  start  ) 

Definition at line 236 of file kdganttglobal.h.

Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().

qreal KDGantt::Span::start (  )  const

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