Files
Navigator/DataDisplay/DataSource/IPointEnumerator.cs
2024-02-23 06:53:16 -05:00

23 lines
802 B
C#

using System;
using System.Windows;
using Xamarin.Forms;
namespace DataDisplay.DataSource
{
public interface IPointEnumerator : IDisposable {
/// <summary>Move to next point in sequence</summary>
/// <returns>True if successfully moved to next point
/// or false if end of sequence is reached</returns>
bool MoveNext();
/// <summary>Stores current value(s) in given point.</summary>
/// <param name="p">Reference to store value</param>
/// <remarks>Depending on implementing class this method may set only X or Y
/// fields in specified point. That's why GetCurrent is a regular method and
/// not a property as in standard enumerators</remarks>
void GetCurrent(ref Point p);
void ApplyMappings(BindableObject target);
}
}