OSDN Git Service

Commit DialogBox compile Okay
[tortoisegit/TortoiseGitJp.git] / ext / scintilla / src / Decoration.h
1 /** @file Decoration.h\r
2  ** Visual elements added over text.\r
3  **/\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
6 \r
7 #ifndef DECORATION_H\r
8 #define DECORATION_H\r
9 \r
10 #ifdef SCI_NAMESPACE\r
11 namespace Scintilla {\r
12 #endif\r
13 \r
14 class Decoration {\r
15 public:\r
16         Decoration *next;\r
17         RunStyles rs;\r
18         int indicator;\r
19 \r
20         Decoration(int indicator_);\r
21         ~Decoration();\r
22 \r
23         bool Empty();\r
24 };\r
25 \r
26 class DecorationList {\r
27         int currentIndicator;\r
28         int currentValue;\r
29         Decoration *current;\r
30         int lengthDocument;\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
35 public:\r
36         Decoration *root;\r
37         bool clickNotified;\r
38 \r
39         DecorationList();\r
40         ~DecorationList();\r
41 \r
42         void SetCurrentIndicator(int indicator);\r
43         int GetCurrentIndicator() { return currentIndicator; }\r
44 \r
45         void SetCurrentValue(int value);\r
46         int GetCurrentValue() { return currentValue; }\r
47 \r
48         // Returns true if some values may have changed\r
49         bool FillRange(int &position, int value, int &fillLength);\r
50 \r
51         void InsertSpace(int position, int insertLength);\r
52         void DeleteRange(int position, int deleteLength);\r
53 \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
58 };\r
59 \r
60 #ifdef SCI_NAMESPACE\r
61 }\r
62 #endif\r
63 \r
64 #endif\r