@ -0,0 +1,18 @@ |
|||
using Avalonia.Styling; |
|||
|
|||
namespace Avalonia.Diagnostics |
|||
{ |
|||
public class AppliedStyle |
|||
{ |
|||
private readonly IStyleInstance _instance; |
|||
|
|||
internal AppliedStyle(IStyleInstance instance) |
|||
{ |
|||
_instance = instance; |
|||
} |
|||
|
|||
public bool HasActivator => _instance.HasActivator; |
|||
public bool IsActive => _instance.IsActive; |
|||
public StyleBase Style => (StyleBase)_instance.Source; |
|||
} |
|||
} |
|||
@ -1,24 +0,0 @@ |
|||
using System; |
|||
using Avalonia.Metadata; |
|||
|
|||
namespace Avalonia.Styling |
|||
{ |
|||
/// <summary>
|
|||
/// Represents a setter for a <see cref="Style"/>.
|
|||
/// </summary>
|
|||
[NotClientImplementable] |
|||
public interface ISetter |
|||
{ |
|||
/// <summary>
|
|||
/// Instances a setter on a control.
|
|||
/// </summary>
|
|||
/// <param name="styleInstance">The style which contains the setter.</param>
|
|||
/// <param name="target">The control.</param>
|
|||
/// <returns>An <see cref="ISetterInstance"/>.</returns>
|
|||
/// <remarks>
|
|||
/// This method should return an <see cref="ISetterInstance"/> which can be used to apply
|
|||
/// the setter to the specified control.
|
|||
/// </remarks>
|
|||
ISetterInstance Instance(IStyleInstance styleInstance, StyledElement target); |
|||
} |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
namespace Avalonia.Styling |
|||
{ |
|||
/// <summary>
|
|||
/// Represents the base class for value setters.
|
|||
/// </summary>
|
|||
public abstract class SetterBase |
|||
{ |
|||
internal abstract ISetterInstance Instance( |
|||
IStyleInstance styleInstance, |
|||
StyledElement target); |
|||
} |
|||
} |
|||
@ -1,13 +0,0 @@ |
|||
using System.Collections.Concurrent; |
|||
using SkiaSharp; |
|||
|
|||
namespace Avalonia.Skia |
|||
{ |
|||
/// <summary>
|
|||
/// Cache for SKFonts.
|
|||
/// </summary>
|
|||
internal class SKFontCache : SKCacheBase<SKFont, SKFontCache> |
|||
{ |
|||
|
|||
} |
|||
} |
|||
|
Before Width: | Height: | Size: 767 B After Width: | Height: | Size: 773 B |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 518 B After Width: | Height: | Size: 528 B |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 11 KiB |