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