Skip to content

Commit

Permalink
plumbing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Dec 17, 2024
1 parent 764dbcc commit 48f4aab
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/Consolonia.Core/Drawing/MoveConsoleCaretToPositionBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,23 @@

namespace Consolonia.Core.Drawing
{
public class MoveConsoleCaretToPositionBrush : IImmutableBrush
public class MoveConsoleCaretToPositionBrush : AvaloniaObject, IImmutableBrush
{
public static readonly StyledProperty<CaretStyle> CaretStyleProperty =
AvaloniaProperty.Register<MoveConsoleCaretToPositionBrush, CaretStyle>(nameof(CaretStyle));

//todo: Search for B75ABC91-2CDD-4557-9201-16AC483C8D7B
public double Opacity => 1;
public ITransform Transform => null;
public RelativePoint TransformOrigin => RelativePoint.TopLeft;

/// <summary>
/// style of curosr
/// style of caret
/// </summary>
public CaretStyle CaretStyle { get; set; } = CaretStyle.BlinkingBar;
public CaretStyle CaretStyle
{
get => GetValue(CaretStyleProperty);
set => SetValue(CaretStyleProperty, value);
}
}
}

0 comments on commit 48f4aab

Please sign in to comment.