mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 10:02:59 +08:00
ce635af83e
Also implement it as an auto property in its inheritors. The auto properties default to true.
25 lines
865 B
C#
25 lines
865 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
namespace osu.Game.Skinning
|
|
{
|
|
/// <summary>
|
|
/// Denotes a drawable which, as a drawable, can be adjusted via skinning specifications.
|
|
/// </summary>
|
|
public interface ISkinnableDrawable : IDrawable
|
|
{
|
|
/// <summary>
|
|
/// Whether this component should be editable by an end user.
|
|
/// </summary>
|
|
bool IsEditable => true;
|
|
|
|
/// <summary>
|
|
/// <see langword="true"/> if this <see cref="ISkinnableDrawable"/>'s <see cref="Drawable.Anchor"/> is automatically determined by proximity,
|
|
/// <see langword="false"/> if the user has overridden it.
|
|
/// </summary>
|
|
bool UsingClosestAnchor { get; set; }
|
|
}
|
|
}
|