1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 01:07:20 +08:00

25 lines
693 B
C#
Raw Normal View History

2019-09-20 18:35:15 +09: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.Bindables;
2019-09-20 18:35:15 +09:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.UserInterface;
2019-09-20 18:35:15 +09:00
2019-09-24 19:00:26 +09:00
namespace osu.Game.Graphics.UserInterfaceV2
2019-09-20 18:35:15 +09:00
{
public abstract class LabelledComponent<T, U> : LabelledDrawable<T>, IHasCurrentValue<U>
where T : Drawable, IHasCurrentValue<U>
2019-09-20 18:35:15 +09:00
{
protected LabelledComponent(bool padded)
: base(padded)
2019-09-20 18:35:15 +09:00
{
}
public Bindable<U> Current
2019-09-20 18:35:15 +09:00
{
get => Component.Current;
set => Component.Current = value;
2019-09-20 18:35:15 +09:00
}
}
}