A game framework written with osu! in mind.
at master 22 lines 829 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using osu.Framework.Bindables; 5 6namespace osu.Framework.Graphics.UserInterface 7{ 8 /// <summary> 9 /// A UI element which supports a <see cref="Bindable{T}"/> current value. 10 /// You can bind to <see cref="Current"/>'s <see cref="Bindable{T}.ValueChanged"/> to get updates. 11 /// </summary> 12 public interface IHasCurrentValue<T> 13 { 14 /// <summary> 15 /// Gets or sets the <see cref="Bindable{T}"/> that provides the current value. 16 /// </summary> 17 /// <remarks> 18 /// A provided <see cref="Bindable{T}"/> will be bound to, rather than be stored internally. 19 /// </remarks> 20 Bindable<T> Current { get; set; } 21 } 22}