123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- using System.Drawing;
- using System.Drawing.Drawing2D;
- namespace Microsoft.Windows.Forms
- {
- partial class Sprite
- {
- private int m_LineWidth = 1;
- /// <summary>
- /// 直线
- /// </summary>
- public int LineWidth
- {
- get
- {
- return this.m_LineWidth;
- }
- set
- {
- if (value != this.m_LineWidth)
- {
- this.m_LineWidth = value;
- this.Feedback();
- }
- }
- }
- private BlendStyle m_LineBlendStyle = BlendStyle.Solid;
- /// <summary>
- /// 直线混合样式
- /// </summary>
- public BlendStyle LineBlendStyle
- {
- get
- {
- return this.m_LineBlendStyle;
- }
- set
- {
- if (value != this.m_LineBlendStyle)
- {
- this.m_LineBlendStyle = value;
- this.Feedback();
- }
- }
- }
- private DashStyle m_LineDashStyle = DashStyle.Solid;
- /// <summary>
- /// 直线绘制虚线样式
- /// </summary>
- public DashStyle LineDashStyle
- {
- get
- {
- return this.m_LineDashStyle;
- }
- set
- {
- if (value != this.m_LineDashStyle)
- {
- this.m_LineDashStyle = value;
- this.Feedback();
- }
- }
- }
- private float[] m_LineDashPattern = null;
- /// <summary>
- /// 直线自定义的短划线和空白区域的数组
- /// </summary>
- public float[] LineDashPattern
- {
- get
- {
- return this.m_LineDashPattern;
- }
- set
- {
- if (value != this.m_LineDashPattern)
- {
- this.m_LineDashPattern = value;
- this.Feedback();
- }
- }
- }
- private DashCap m_LineDashCap = DashCap.Flat;
- /// <summary>
- /// 直线虚线断弦断终点的线帽样式
- /// </summary>
- public DashCap LineDashCap
- {
- get
- {
- return this.m_LineDashCap;
- }
- set
- {
- if (value != this.m_LineDashCap)
- {
- this.m_LineDashCap = value;
- this.Feedback();
- }
- }
- }
- private float m_LineDashOffset = 0f;
- /// <summary>
- /// 直线直线的起点到短划线图案起始处的距离
- /// </summary>
- public float LineDashOffset
- {
- get
- {
- return this.m_LineDashOffset;
- }
- set
- {
- if (value != this.m_LineDashOffset)
- {
- this.m_LineDashOffset = value;
- this.Feedback();
- }
- }
- }
- private Color m_LineColor = DefaultTheme.BorderColor;
- /// <summary>
- /// 直线颜色
- /// </summary>
- public Color LineColor
- {
- get
- {
- return this.m_LineColor;
- }
- set
- {
- if (value != this.m_LineColor)
- {
- this.m_LineColor = value;
- this.Feedback();
- }
- }
- }
- private Color m_LineColorHovered = DefaultTheme.BorderColor + DefaultTheme.BorderColorHoveredVector;
- /// <summary>
- /// 直线色鼠标移上向量
- /// </summary>
- public Color LineColorHovered
- {
- get
- {
- return this.m_LineColorHovered;
- }
- set
- {
- if (value != this.m_LineColorHovered)
- {
- this.m_LineColorHovered = value;
- this.Feedback();
- }
- }
- }
- private Color m_LineColorPressed = DefaultTheme.BorderColor + DefaultTheme.BorderColorPressedVector;
- /// <summary>
- /// 直线色鼠标按下向量
- /// </summary>
- public Color LineColorPressed
- {
- get
- {
- return this.m_LineColorPressed;
- }
- set
- {
- if (value != this.m_LineColorPressed)
- {
- this.m_LineColorPressed = value;
- this.Feedback();
- }
- }
- }
- private Color m_LineColorFocused = DefaultTheme.BorderColor + DefaultTheme.BorderColorFocusedVector;
- /// <summary>
- /// 直线色获取焦点向量
- /// </summary>
- public Color LineColorFocused
- {
- get
- {
- return this.m_LineColorFocused;
- }
- set
- {
- if (value != this.m_LineColorFocused)
- {
- this.m_LineColorFocused = value;
- this.Feedback();
- }
- }
- }
- private Color m_LineColorDisabled = DefaultTheme.BorderColor + DefaultTheme.BorderColorDisabledVector;
- /// <summary>
- /// 直线色状态禁用向量
- /// </summary>
- public Color LineColorDisabled
- {
- get
- {
- return this.m_LineColorDisabled;
- }
- set
- {
- if (value != this.m_LineColorDisabled)
- {
- this.m_LineColorDisabled = value;
- this.Feedback();
- }
- }
- }
- private Color m_LineColorHighlight = DefaultTheme.BorderColor + DefaultTheme.BorderColorHighlightVector;
- /// <summary>
- /// 直线色高亮向量
- /// </summary>
- public Color LineColorHighlight
- {
- get
- {
- return this.m_LineColorHighlight;
- }
- set
- {
- if (value != this.m_LineColorHighlight)
- {
- this.m_LineColorHighlight = value;
- this.Feedback();
- }
- }
- }
- private float m_LineColorPos1 = 0.45f;
- /// <summary>
- /// 直线颜色位置1
- /// </summary>
- public float LineColorPos1
- {
- get
- {
- return this.m_LineColorPos1;
- }
- set
- {
- if (value != this.m_LineColorPos1)
- {
- this.m_LineColorPos1 = value;
- this.Feedback();
- }
- }
- }
- private float m_LineColorPos2 = 0.5f;
- /// <summary>
- /// 直线颜色位置2
- /// </summary>
- public float LineColorPos2
- {
- get
- {
- return this.m_LineColorPos2;
- }
- set
- {
- if (value != this.m_LineColorPos2)
- {
- this.m_LineColorPos2 = value;
- this.Feedback();
- }
- }
- }
- }
- }
|