Forge
csharpdeeb25a2
1#nullable enable
2using SkiaSharp;
3
4namespace CascadeIDE.Views.SkiaKit;
5
6internal enum SkiaSectionedSectionStyle
7{
8 /// <summary>Первая секция: крупный заголовок (тема, имя узла).</summary>
9 Header,
10 /// <summary>Обычное тело секции (теги, саммари, атрибуты).</summary>
11 Body
12}
13
14internal readonly record struct SkiaSectionedCardSection(
15 string Label,
16 IReadOnlyList<string> Lines,
17 SkiaSectionedSectionStyle Style = SkiaSectionedSectionStyle.Body);
18
19internal readonly record struct SkiaSectionedCardModel(IReadOnlyList<SkiaSectionedCardSection> Sections);
20
21internal readonly record struct SkiaSectionedCardDrawState(
22 SKColor FillColor,
23 bool IsHovered,
24 bool IsFocused);
25
View only · write via MCP/CIDE