katelinerange.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef KATELINERANGE_H
00021
#define KATELINERANGE_H
00022
00023
#include "katecursor.h"
00024
00025
class LineRange
00026 {
00027
public:
00028 LineRange();
00029
virtual ~LineRange ();
00030
00031
void clear();
00032
00033
inline bool includesCursor (
const KateTextCursor& realCursor)
const
00034
{
00035
return realCursor.
line() == line && realCursor.
col() >= startCol && (!wrap || realCursor.
col() < endCol);
00036 }
00037
00038
inline int xOffset ()
const
00039
{
00040
return startX ? shiftX : 0;
00041 }
00042
00043
friend bool operator> (
const LineRange& r,
const KateTextCursor& c);
00044
friend bool operator>= (
const LineRange& r,
const KateTextCursor& c);
00045
friend bool operator< (
const LineRange& r,
const KateTextCursor& c);
00046
friend bool operator<= (
const LineRange& r,
const KateTextCursor& c);
00047
00048
int line;
00049
int virtualLine;
00050
int startCol;
00051
int endCol;
00052
int startX;
00053
int endX;
00054
00055
bool dirty;
00056
int viewLine;
00057
bool wrap;
00058
bool startsInvisibleBlock;
00059
00060
00061
00062
00063
00064
00065
00066
00067
int shiftX;
00068 };
00069
00070
#endif
This file is part of the documentation for kate Library Version 3.2.3.