2021-04-15 20:18:03 +10:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
2021-04-16 02:53:17 +10:00
|
|
|
|
using UnityEngine;
|
2021-04-15 20:18:03 +10:00
|
|
|
|
|
2021-04-16 21:07:32 +10:00
|
|
|
|
namespace UnityExplorer.UI.Widgets
|
2021-04-15 20:18:03 +10:00
|
|
|
|
{
|
2021-04-26 19:56:21 +10:00
|
|
|
|
public interface IPoolDataSource<T> where T : ICell
|
2021-04-15 20:18:03 +10:00
|
|
|
|
{
|
|
|
|
|
int ItemCount { get; }
|
2021-04-22 17:53:29 +10:00
|
|
|
|
|
2021-04-26 19:56:21 +10:00
|
|
|
|
void OnCellBorrowed(T cell);
|
|
|
|
|
void OnCellReturned(T cell);
|
|
|
|
|
|
|
|
|
|
void SetCell(T cell, int index);
|
|
|
|
|
void DisableCell(T cell, int index);
|
2021-04-15 20:18:03 +10:00
|
|
|
|
}
|
|
|
|
|
}
|