• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • part
katelinerange.cpp
1/* This file is part of the KDE libraries
2 Copyright (C) 2002,2003 Hamish Rodda <rodda@kde.org>
3 Copyright (C) 2003 Anakim Border <aborder@sources.sourceforge.net>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#include "katelinerange.h"
21
22KateLineRange::KateLineRange()
23 : line(-1)
24 , virtualLine(-1)
25 , startCol(-1)
26 , endCol(-1)
27 , startX(-1)
28 , endX(-1)
29 , dirty(false)
30 , viewLine(-1)
31 , wrap(false)
32 , startsInvisibleBlock(false)
33 , shiftX(0)
34{
35}
36
37KateLineRange::~KateLineRange ()
38{
39}
40
41void KateLineRange::clear()
42{
43 line = -1;
44 virtualLine = -1;
45 startCol = -1;
46 endCol = -1;
47 startX = -1;
48 shiftX = 0;
49 endX = -1;
50 viewLine = -1;
51 wrap = false;
52 startsInvisibleBlock = false;
53}
54
55bool operator> (const KateLineRange& r, const KateTextCursor& c)
56{
57 return r.line > c.line() || r.endCol > c.col();
58}
59
60bool operator>= (const KateLineRange& r, const KateTextCursor& c)
61{
62 return r.line > c.line() || r.endCol >= c.col();
63}
64
65bool operator< (const KateLineRange& r, const KateTextCursor& c)
66{
67 return r.line < c.line() || r.startCol < c.col();
68}
69
70bool operator<= (const KateLineRange& r, const KateTextCursor& c)
71{
72 return r.line < c.line() || r.startCol <= c.col();
73}
KateTextCursor
Simple cursor class with no document pointer.
Definition: katecursor.h:34

kate

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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.