• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

okteta

KHEUI::CoordRange

KHEUI::CoordRange Class Reference

#include <coordrange.h>

Inheritance diagram for KHEUI::CoordRange:

Inheritance graph
[legend]

List of all members.


Detailed Description

describes a range in the buffercoord

Author:
Friedrich W. H. Kossebau

Definition at line 50 of file coordrange.h.


Public Member Functions

 CoordRange ()
 CoordRange (const KHE::KSection &Pos, const KHE::KSection &Lines)
 CoordRange (const Coord &SC, const Coord &EC)
bool includesLine (int Line) const
int lines () const
CoordRange & operator= (const CoordRange &S)
bool operator== (const CoordRange &S) const
int width (int LineLength) const
 ~CoordRange ()

Constructor & Destructor Documentation

KHEUI::CoordRange::CoordRange ( const Coord &  SC,
const Coord &  EC 
) [inline]

Parameters:
SC start coord

Parameters:
EC end coord

Definition at line 93 of file coordrange.h.

KHEUI::CoordRange::CoordRange ( const KHE::KSection &  Pos,
const KHE::KSection &  Lines 
) [inline]

Parameters:
Pos start and end pos

Parameters:
Lines start and end line

Definition at line 94 of file coordrange.h.

KHEUI::CoordRange::CoordRange (  )  [inline]

Definition at line 96 of file coordrange.h.

KHEUI::CoordRange::~CoordRange (  )  [inline]

Definition at line 97 of file coordrange.h.


Member Function Documentation

bool KHEUI::CoordRange::includesLine ( int  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:
Line index of line
Returns:
true if Line is included, otherwise false

Definition at line 105 of file coordrange.h.

int KHEUI::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 104 of file coordrange.h.

CoordRange & KHEUI::CoordRange::operator= ( const CoordRange &  S  )  [inline]

Definition at line 101 of file coordrange.h.

bool KHEUI::CoordRange::operator== ( const CoordRange &  S  )  const [inline]

Definition at line 99 of file coordrange.h.

int KHEUI::CoordRange::width ( int  LineLength  )  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:
LineLength 
Returns:
the number of points covered if a line has a length of LineLength.

Definition at line 103 of file coordrange.h.


The documentation for this class was generated from the following file:
  • coordrange.h

okteta

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal