• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • Okteta
  • CoordRange
Public Member Functions | List of all members
Okteta::CoordRange Class Reference

#include <coordrange.h>

Inheritance diagram for Okteta::CoordRange:
Inheritance graph
[legend]

Public Member Functions

 CoordRange (const Coord &start, const Coord &end)
 
 CoordRange (const LinePositionRange &posRange, const LineRange &lineRange)
 
 CoordRange ()
 
 ~CoordRange ()
 
bool includesLine (Line line) const
 
LineSize lines () const
 
CoordRange & operator= (const CoordRange &other)
 
bool operator== (const CoordRange &other) const
 
Size width (LinePositionSize lineWidth) const
 
- Public Member Functions inherited from KDE::Range< T >
 Range (T S, T E)
 
 Range ()
 
 ~Range ()
 
T end () const
 
bool endsBefore (T Value) const
 
bool endsBefore (const Range &R) const
 
bool endsBehind (T Value) const
 
bool endsBehind (const Range &R) const
 
void extendEndTo (T Limit)
 
void extendStartTo (T Limit)
 
void extendTo (const Range &Limit)
 
bool includes (T Value) const
 
bool includes (const Range &R) const
 
bool includesInside (T Value) const
 
bool includesInside (const Range &R) const
 
bool isEmpty () const
 
bool isValid () const
 
void moveBy (T D)
 
void moveEndBy (T D)
 
void moveStartBy (T D)
 
Range & operator= (const Range &R)
 
bool operator== (const Range &R) const
 
bool overlaps (const Range &R) const
 
void restrictEndTo (T Limit)
 
void restrictStartTo (T Limit)
 
void restrictTo (const Range &Limit)
 
void set (T S, T E)
 
void set (const Range &R)
 
void setEnd (T E)
 
void setStart (T S)
 
T start () const
 
bool startsBefore (T Value) const
 
bool startsBefore (const Range &R) const
 
bool startsBehind (T Value) const
 
bool startsBehind (const Range &R) const
 
void unset ()
 

Additional Inherited Members

- Protected Member Functions inherited from KDE::Range< T >
const T null () const
 
- Protected Attributes inherited from KDE::Range< T >
T End
 
T Start
 

Detailed Description

describes a range in the buffercoord

Author
Friedrich W. H. Kossebau

Definition at line 51 of file coordrange.h.

Constructor & Destructor Documentation

Okteta::CoordRange::CoordRange ( const Coord &  start,
const Coord &  end 
)
inline
Parameters
startstart coord
endend coord

Definition at line 94 of file coordrange.h.

Okteta::CoordRange::CoordRange ( const LinePositionRange &  posRange,
const LineRange &  lineRange 
)
inline
Parameters
posRangestart and end pos
lineRangestart and end line

Definition at line 95 of file coordrange.h.

Okteta::CoordRange::CoordRange ( )
inline

Definition at line 97 of file coordrange.h.

Okteta::CoordRange::~CoordRange ( )
inline

Definition at line 99 of file coordrange.h.

Member Function Documentation

bool Okteta::CoordRange::includesLine ( Line  line) const
inline

tests if the given line is included by the range.

If the range is invalid or the line < 0 the behaviour is undefined.

Parameters
lineindex of line
Returns
true if Line is included, otherwise false

Definition at line 107 of file coordrange.h.

LineSize Okteta::CoordRange::lines ( ) const
inline

calculates the number of lines that are covered by the range.

If the range is invalid the behaviour is undefined.

Returns
number of lines covered

Definition at line 106 of file coordrange.h.

CoordRange & Okteta::CoordRange::operator= ( const CoordRange &  other)
inline

Definition at line 101 of file coordrange.h.

bool Okteta::CoordRange::operator== ( const CoordRange &  other) const
inline

Definition at line 103 of file coordrange.h.

Size Okteta::CoordRange::width ( LinePositionSize  lineWidth) const
inline

calculates the number of coords that are covered if a line has the given length.

If the range is invalid the behaviour is undefined.

Parameters
lineWidth
Returns
the number of points covered if a line has a length of LineLength.

Definition at line 105 of file coordrange.h.


The documentation for this class was generated from the following file:
  • coordrange.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal