namespace UIWidgets { using UIWidgets.Styles; using UnityEngine.Events; using UnityEngine.UI; /// /// Interface for InputField with exposed functions to validate input. /// public interface IInputFieldExtended : IInputFieldProxy { /// /// Function to validate input. /// InputField.OnValidateInput Validation { get; set; } /// /// Function to process changed value. /// UnityAction ValueChanged { get; set; } /// /// Function to process end edit. /// UnityAction ValueEndEdit { get; set; } /// /// Current value. /// string Value { get; set; } /// /// Start selection position. /// int SelectionStart { get; } /// /// End selection position. /// int SelectionEnd { get; } /// /// Set widget properties from specified style. /// /// InputField style. /// Style. void SetStyle(StyleSpinner styleSpinner, Style style); /// /// Set style options from widget properties. /// /// InputField style. /// Style. void GetStyle(StyleSpinner styleSpinner, Style style); } }