You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
1 year ago
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
namespace WebGLSupport
|
||
|
{
|
||
|
public enum ContentType
|
||
|
{
|
||
|
Standard = 0,
|
||
|
Autocorrected = 1,
|
||
|
IntegerNumber = 2,
|
||
|
DecimalNumber = 3,
|
||
|
Alphanumeric = 4,
|
||
|
Name = 5,
|
||
|
EmailAddress = 6,
|
||
|
Password = 7,
|
||
|
Pin = 8,
|
||
|
Custom = 9
|
||
|
}
|
||
|
public enum LineType
|
||
|
{
|
||
|
SingleLine = 0,
|
||
|
MultiLineSubmit = 1,
|
||
|
MultiLineNewline = 2
|
||
|
}
|
||
|
public interface IInputField
|
||
|
{
|
||
|
ContentType contentType { get; }
|
||
|
LineType lineType { get; }
|
||
|
int fontSize { get; }
|
||
|
string text { get; set; }
|
||
|
string placeholder { get; }
|
||
|
int characterLimit { get; }
|
||
|
int caretPosition { get; }
|
||
|
bool isFocused { get; }
|
||
|
int selectionFocusPosition { get; set; }
|
||
|
int selectionAnchorPosition { get; set; }
|
||
|
bool ReadOnly { get; }
|
||
|
bool OnFocusSelectAll { get; }
|
||
|
|
||
|
RectTransform RectTransform();
|
||
|
void ActivateInputField();
|
||
|
void DeactivateInputField();
|
||
|
void Rebuild();
|
||
|
}
|
||
|
}
|