C# Class FairyGUI.InputTextField

接收用户输入的文本控件。因为支持直接输入表情,所以从RichTextField派生。
Inheritance: RichTextField
ファイルを表示 Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Properties

Property Type Description
onCopy CopyHandler
onPaste PasteHandler

Public Methods

Method Description
Dispose ( ) : void
InputTextField ( ) : System
ReplaceSelection ( string value ) : void

ReplaceText ( string value ) : void

Update ( UpdateContext context ) : void

Protected Methods

Method Description
InternalRefreshObjects ( ) : void
OnSizeChanged ( bool widthChanged, bool heightChanged ) : void

Private Methods

Method Description
AdjustCaret ( TextField cp ) : void
ClearSelection ( ) : void
CreateCaret ( ) : void
DoCopy ( string value ) : void
DoPaste ( ) : void
EncodePasswordText ( string value ) : string
GetCharLocation ( TextField cp ) : Vector2

获得字符的坐标。这个坐标是容器的坐标,不是文本里的坐标。

GetCharPosition ( Vector2 location ) : TextField.CharPosition

通过本地坐标获得字符索引位置

GetCharPosition ( int caretIndex ) : TextField.CharPosition
GetSelection ( ) : string
MoveContent ( Vector2 delta ) : Vector2
UpdateAlternativeText ( ) : void
UpdateSelection ( TextField cp ) : void
ValidateInput ( string source ) : string
__focusIn ( EventContext context ) : void
__focusOut ( EventContext contxt ) : void
__keydown ( EventContext context ) : void
__touchBegin ( EventContext context ) : void
__touchEnd ( EventContext context ) : void
__touchMove ( EventContext context ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

InputTextField() public method

public InputTextField ( ) : System
return System

InternalRefreshObjects() protected method

protected InternalRefreshObjects ( ) : void
return void

OnSizeChanged() protected method

protected OnSizeChanged ( bool widthChanged, bool heightChanged ) : void
widthChanged bool
heightChanged bool
return void

ReplaceSelection() public method

public ReplaceSelection ( string value ) : void
value string
return void

ReplaceText() public method

public ReplaceText ( string value ) : void
value string
return void

Update() public method

public Update ( UpdateContext context ) : void
context UpdateContext
return void

Property Details

onCopy public_oe static_oe property

public static CopyHandler onCopy
return CopyHandler

onPaste public_oe static_oe property

public static PasteHandler onPaste
return PasteHandler