1 /** @file Decoration.h
\r
2 ** Visual elements added over text.
\r
4 // Copyright 1998-2007 by Neil Hodgson <neilh@scintilla.org>
\r
5 // The License.txt file describes the conditions under which this software may be distributed.
\r
10 #ifdef SCI_NAMESPACE
\r
11 namespace Scintilla {
\r
20 Decoration(int indicator_);
\r
26 class DecorationList {
\r
27 int currentIndicator;
\r
29 Decoration *current;
\r
31 Decoration *DecorationFromIndicator(int indicator);
\r
32 Decoration *Create(int indicator, int length);
\r
33 void Delete(int indicator);
\r
34 void DeleteAnyEmpty();
\r
42 void SetCurrentIndicator(int indicator);
\r
43 int GetCurrentIndicator() { return currentIndicator; }
\r
45 void SetCurrentValue(int value);
\r
46 int GetCurrentValue() { return currentValue; }
\r
48 // Returns true if some values may have changed
\r
49 bool FillRange(int &position, int value, int &fillLength);
\r
51 void InsertSpace(int position, int insertLength);
\r
52 void DeleteRange(int position, int deleteLength);
\r
54 int AllOnFor(int position);
\r
55 int ValueAt(int indicator, int position);
\r
56 int Start(int indicator, int position);
\r
57 int End(int indicator, int position);
\r
60 #ifdef SCI_NAMESPACE
\r