osu/osu.Game/Graphics/UserInterfaceV2/LabelledComponent.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
756 B
C#
Raw Normal View History

2019-09-20 09:35:15 +00: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.
2022-06-17 07:37:17 +00:00
#nullable disable
using osu.Framework.Bindables;
2019-09-20 09:35:15 +00:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.UserInterface;
2019-09-20 09:35:15 +00:00
2019-09-24 10:00:26 +00:00
namespace osu.Game.Graphics.UserInterfaceV2
2019-09-20 09:35:15 +00:00
{
public abstract class LabelledComponent<TDrawable, TValue> : LabelledDrawable<TDrawable>, IHasCurrentValue<TValue>
where TDrawable : Drawable, IHasCurrentValue<TValue>
2019-09-20 09:35:15 +00:00
{
protected LabelledComponent(bool padded)
: base(padded)
2019-09-20 09:35:15 +00:00
{
}
public Bindable<TValue> Current
2019-09-20 09:35:15 +00:00
{
get => Component.Current;
set => Component.Current = value;
2019-09-20 09:35:15 +00:00
}
}
}