using System;
namespace LB_VisionControls
{
///
/// Char and style
///
public struct Char
{
///
/// Unicode character
///
public char c;
///
/// Style bit mask
///
/// Bit 1 in position n means that this char will rendering by FastColoredTextBox.Styles[n]
public StyleIndex style;
public Char(char c)
{
this.c = c;
style = StyleIndex.None;
}
}
///
/// Style index mask
///
[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
}
}