2021-04-28 17:34:34 +08:00
|
|
|
// 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.
|
|
|
|
|
2021-05-13 16:03:17 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
2021-04-30 11:42:32 +08:00
|
|
|
namespace osu.Game.Skinning
|
2021-04-28 17:34:34 +08:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Denotes a drawable which, as a drawable, can be adjusted via skinning specifications.
|
|
|
|
/// </summary>
|
2021-05-13 16:06:00 +08:00
|
|
|
public interface ISkinnableDrawable : IDrawable
|
2021-04-28 17:34:34 +08:00
|
|
|
{
|
2021-05-13 16:03:17 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Whether this component should be editable by an end user.
|
|
|
|
/// </summary>
|
|
|
|
bool IsEditable => true;
|
2021-06-07 11:47:47 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2021-06-07 12:14:36 +08:00
|
|
|
/// <see langword="false"/> if this <see cref="ISkinnableDrawable"/>'s <see cref="Drawable.Anchor"/> is automatically determined by proximity,
|
2021-06-08 20:22:35 +08:00
|
|
|
/// <see langword="true"/> if the user has chosen a fixed anchor point.
|
2021-06-07 11:47:47 +08:00
|
|
|
/// </summary>
|
2021-06-08 20:22:35 +08:00
|
|
|
bool UsesFixedAnchor { get; set; }
|
2021-04-28 17:34:34 +08:00
|
|
|
}
|
|
|
|
}
|