#if UNITY_2019_4_OR_NEWER
using System;
using UnityEditor;
using UnityEngine;
using UnityEditor.UIElements;
using UnityEngine.UIElements;
namespace YooAsset.Editor
{
public class ColumnStyle
{
public const float MaxValue = 8388608f;
///
/// 单元列宽度
///
public Length Width;
///
/// 单元列最小宽度
///
public Length MinWidth;
///
/// 单元列最大宽度
///
public Length MaxWidth;
///
/// 可伸缩
///
public bool Stretchable = false;
///
/// 可搜索
///
public bool Searchable = false;
///
/// 可排序
///
public bool Sortable = false;
///
/// 统计数量
///
public bool Counter = false;
///
/// 展示单位
///
public string Units = string.Empty;
public ColumnStyle(Length width)
{
if (width.value > MaxValue)
width = MaxValue;
Width = width;
MinWidth = width;
MaxWidth = width;
}
public ColumnStyle(Length width, Length minWidth, Length maxWidth)
{
if (maxWidth.value > MaxValue)
maxWidth = MaxValue;
Width = width;
MinWidth = minWidth;
MaxWidth = maxWidth;
}
}
}
#endif