namespace EnhancedScrollerDemos.ExpandingCells
{
///
/// Super simple data class to hold information for each cell.
///
public class Data
{
public bool isExpanded;
public string headerText;
public string descriptionText;
public float collapsedSize;
public float expandedSize;
public EnhancedUI.EnhancedScroller.Tween.TweenType tweenType;
public float tweenTimeExpand;
public float tweenTimeCollapse;
///
/// Calculates the size of the cell based on its expansion state
///
public float Size
{
get
{
return isExpanded ? expandedSize : collapsedSize;
}
}
///
/// Calculates the difference in the expanded and collapsed sizes
///
public float SizeDifference
{
get
{
return expandedSize - collapsedSize;
}
}
}
}