#nullable enable
namespace UVC.UIToolkit
{
///
/// 정수 범위 속성 데이터 클래스입니다.
/// UI는 UTKIntRangePropertyItemView에서 담당합니다.
///
public class UTKIntRangePropertyItem : UTKPropertyItemBase
{
#region Properties
/// 속성 타입
public override UTKPropertyType PropertyType => UTKPropertyType.IntRange;
#endregion
#region Constructor
///
/// 정수 범위 속성을 생성합니다.
///
/// 고유 ID
/// 표시 이름
/// 초기 범위 값
/// 읽기 전용 여부
public UTKIntRangePropertyItem(string id, string name, UTKIntRange initialValue = default, bool isReadOnly = false)
: base(id, name, initialValue)
{
IsReadOnly = isReadOnly;
}
///
/// 정수 범위 속성을 생성합니다.
///
/// 고유 ID
/// 표시 이름
/// 최소값
/// 최대값
/// 읽기 전용 여부
public UTKIntRangePropertyItem(string id, string name, int min, int max, bool isReadOnly = false)
: base(id, name, new UTKIntRange(min, max))
{
IsReadOnly = isReadOnly;
}
#endregion
}
}