2025-01-10 19:55:53 +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.
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.SelectV2
|
|
|
|
{
|
|
|
|
/// <summary>
|
2025-01-10 18:34:56 +08:00
|
|
|
/// An interface to be attached to any <see cref="Drawable"/>s which are used for display inside a <see cref="Carousel{T}"/>.
|
2025-01-10 19:55:53 +08:00
|
|
|
/// </summary>
|
|
|
|
public interface ICarouselPanel
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The Y position which should be used for displaying this item within the carousel.
|
|
|
|
/// </summary>
|
2025-01-14 19:07:09 +08:00
|
|
|
double DrawYPosition { get; }
|
2025-01-10 19:55:53 +08:00
|
|
|
|
|
|
|
/// <summary>
|
2025-01-10 18:34:56 +08:00
|
|
|
/// The carousel item this drawable is representing. This is managed by <see cref="Carousel{T}"/> and should not be set manually.
|
2025-01-10 19:55:53 +08:00
|
|
|
/// </summary>
|
|
|
|
CarouselItem? Item { get; set; }
|
|
|
|
}
|
|
|
|
}
|