-
Notifications
You must be signed in to change notification settings - Fork 1
/
IndicatorStyle.cs
149 lines (127 loc) · 5.33 KB
/
IndicatorStyle.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// ***********************************************************************
// Assembly : Zeroit.Framework.CodeBox
// Author : ZEROIT
// Created : 03-19-2019
//
// Last Modified By : ZEROIT
// Last Modified On : 01-05-2019
// ***********************************************************************
// <copyright file="IndicatorStyle.cs" company="Zeroit Dev">
// This program is for creating a Code Editor control.
// Copyright © 2017 Zeroit Dev Technologies
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//
// You can contact me at zeroitdevnet@gmail.com or zeroitdev@outlook.com
// </copyright>
// <summary></summary>
// ***********************************************************************
namespace Zeroit.Framework.CodeBox
{
/// <summary>
/// The visual appearance of an indicator.
/// </summary>
public enum IndicatorStyle
{
/// <summary>
/// Underlined with a single, straight line.
/// </summary>
Plain = NativeMethods.INDIC_PLAIN,
/// <summary>
/// A squiggly underline. Requires 3 pixels of descender space.
/// </summary>
Squiggle = NativeMethods.INDIC_SQUIGGLE,
/// <summary>
/// A line of small T shapes.
/// </summary>
TT = NativeMethods.INDIC_TT,
/// <summary>
/// Diagonal hatching.
/// </summary>
Diagonal = NativeMethods.INDIC_DIAGONAL,
/// <summary>
/// Strike out.
/// </summary>
Strike = NativeMethods.INDIC_STRIKE,
/// <summary>
/// An indicator with no visual effect.
/// </summary>
Hidden = NativeMethods.INDIC_HIDDEN,
/// <summary>
/// A rectangle around the text.
/// </summary>
Box = NativeMethods.INDIC_BOX,
/// <summary>
/// A rectangle around the text with rounded corners. The rectangle outline and fill transparencies can be adjusted using
/// <see cref="Indicator.Alpha" /> and <see cref="Indicator.OutlineAlpha" />.
/// </summary>
RoundBox = NativeMethods.INDIC_ROUNDBOX,
/// <summary>
/// A rectangle around the text. The rectangle outline and fill transparencies can be adjusted using
/// <see cref="Indicator.Alpha" /> and <see cref="Indicator.OutlineAlpha"/>.
/// </summary>
StraightBox = NativeMethods.INDIC_STRAIGHTBOX,
/// <summary>
/// A dashed underline.
/// </summary>
Dash = NativeMethods.INDIC_DASH,
/// <summary>
/// A dotted underline.
/// </summary>
Dots = NativeMethods.INDIC_DOTS,
/// <summary>
/// Similar to <see cref="Squiggle" /> but only using 2 vertical pixels so will fit under small fonts.
/// </summary>
SquiggleLow = NativeMethods.INDIC_SQUIGGLELOW,
/// <summary>
/// A dotted rectangle around the text. The dots transparencies can be adjusted using
/// <see cref="Indicator.Alpha" /> and <see cref="Indicator.OutlineAlpha" />.
/// </summary>
DotBox = NativeMethods.INDIC_DOTBOX,
// PIXMAP
/// <summary>
/// A 2-pixel thick underline with 1 pixel insets on either side.
/// </summary>
CompositionThick = NativeMethods.INDIC_COMPOSITIONTHICK,
/// <summary>
/// A 1-pixel thick underline with 1 pixel insets on either side.
/// </summary>
CompositionThin = NativeMethods.INDIC_COMPOSITIONTHIN,
/// <summary>
/// A rectangle around the entire character area. The rectangle outline and fill transparencies can be adjusted using
/// <see cref="Indicator.Alpha" /> and <see cref="Indicator.OutlineAlpha"/>.
/// </summary>
FullBox = NativeMethods.INDIC_FULLBOX,
/// <summary>
/// An indicator that will change the foreground color of text to the foreground color of the indicator.
/// </summary>
TextFore = NativeMethods.INDIC_TEXTFORE,
/// <summary>
/// A triangle below the start of the indicator range.
/// </summary>
Point = NativeMethods.INDIC_POINT,
/// <summary>
/// A triangle below the center of the first character of the indicator range.
/// </summary>
PointCharacter = NativeMethods.INDIC_POINTCHARACTER /*,
/// <summary>
/// A vertical gradient between a color and alpha at top to fully transparent at bottom.
/// </summary>
Gradient = NativeMethods.INDIC_GRADIENT,
/// <summary>
/// A vertical gradient with color and alpha in the mid-line fading to fully transparent at top and bottom.
/// </summary>
GradientCenter = NativeMethods.INDIC_GRADIENTCENTRE */
}
}