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
| using System;
|
| namespace LB_VisionControls
| {
| /// <summary>
| /// Char and style
| /// </summary>
| public struct Char
| {
| /// <summary>
| /// Unicode character
| /// </summary>
| public char c;
| /// <summary>
| /// Style bit mask
| /// </summary>
| /// <remarks>Bit 1 in position n means that this char will rendering by FastColoredTextBox.Styles[n]</remarks>
| public StyleIndex style;
|
| public Char(char c)
| {
| this.c = c;
| style = StyleIndex.None;
| }
| }
|
| /// <summary>
| /// Style index mask
| /// </summary>
| [Flags]
| public enum StyleIndex : ushort
| {
| None = 0,
| Style0 = 0x1,
| Style1 = 0x2,
| Style2 = 0x4,
| Style3 = 0x8,
| Style4 = 0x10,
| Style5 = 0x20,
| Style6 = 0x40,
| Style7 = 0x80,
| Style8 = 0x100,
| Style9 = 0x200,
| Style10 = 0x400,
| Style11 = 0x800,
| Style12 = 0x1000,
| Style13 = 0x2000,
| Style14 = 0x4000,
| Style15 = 0x8000,
| All = 0xffff
| }
| }
|
|