|
AR_Engine_SDK
|
#include <XUIEditBox.h>

#include <XUIEditBox.h>

变量 | |
| XUIEditBox = {} | |
| XUIEditBox | XUI_DEFAULT = 0 |
| XUIEditBox | XUI_DONE = 0 |
| XUIEditBox | XUI_SEND = 0 |
| XUIEditBox | XUI_SEARCH = 0 |
| XUIEditBox | XUI_GO = 0 |
| XUIEditBox | XUI_NEXT = 0 |
| XUIEditBox | XUI_ANY = 0 |
| XUIEditBox | XUI_EMAIL_ADDRESS = 0 |
| XUIEditBox | XUI_NUMERIC = 0 |
| XUIEditBox | XUI_PHONE_NUMBER = 0 |
| XUIEditBox | XUI_URL = 0 |
| XUIEditBox | XUI_DECIMAL = 0 |
| XUIEditBox | XUI_SINGLE_LINE = 0 |
| XUIEditBox | XUI_PASSWORD = 0 |
| XUIEditBox | XUI_SENSITIVE = 0 |
| XUIEditBox | XUI_INITIAL_CAPS_WORD = 0 |
| XUIEditBox | XUI_INITIAL_CAPS_SENTENCE = 0 |
| XUIEditBox | XUI_INITIAL_CAPS_ALL_CHARACTERS = 0 |
| XUIEditBox | XUI_LOWERCASE_ALL_CHARACTERS = 0 |
| XUIEditBox | LEFT = 0 |
| XUIEditBox | CENTER = 0 |
| XUIEditBox | RIGHT = 0 |
| function XUIEditBox Create | ( | ) |
创建并返回一个空的控件实例的指针
| function XUIEditBox Create | ( | strNormalTexture | , |
| eTextureType | |||
| ) |
创建一个固定大小的编辑框
| strNormalTexture | string 常态纹理图片 |
| eTextureType | number 纹理类型,相对路径/绝对路径 |
| function XUIEditBox EndEditingWhenLostFocus | ( | bSet | ) |
是否在EditBox失去焦点时结束编辑
| bSet | boolean true:立即结束,false:不会结束。 |
| function XUIEditBox ForceEndEditing | ( | ) |
结束输入,并不需要手动调用
| function XUIEditBox GetDelegate | ( | ) |
获取编辑框控件的代理类
| function XUIEditBox GetFontColor | ( | ) |
获取编辑框的字体颜色。
| function XUIEditBox GetFontName | ( | ) |
获取编辑框的字体的名字。
| function XUIEditBox GetFontSize | ( | ) |
获取编辑框的字体的大小。
| function XUIEditBox GetImage | ( | ) |
获取图片
| function XUIEditBox GetInputFlag | ( | ) |
获取编辑框的输入标识
| function XUIEditBox GetInputMode | ( | ) |
获取编辑框的输入模式
| function XUIEditBox GetMaxLength | ( | ) |
获取编辑框允许输入的最大长度
| function XUIEditBox GetPlaceholderFontColor | ( | ) |
获取占位符的字体颜色
| function XUIEditBox GetPlaceholderFontName | ( | ) |
获取占位符的字体名称
| function XUIEditBox GetPlaceholderFontSize | ( | ) |
获取占位符的字体大小
| function XUIEditBox GetPlaceholderText | ( | ) |
获取占位符文本内容
| function XUIEditBox GetReturnType | ( | ) |
获取编辑框的键盘的Return类型
| function XUIEditBox GetText | ( | ) |
设置编辑框中输入的文本
| function XUIEditBox GetTextHorizontalAlignment | ( | ) |
获取文本水平对齐方式
| function XUIEditBox GetTexture | ( | ) |
获取纹理
| function XUIEditBox GetTextVerticalAlignment | ( | ) |
获取文本水平对齐方式
| function XUIEditBox LoadTexture | ( | strTexture | , |
| eTextureType | |||
| ) |
加载纹理
| strTexture | string 纹理路径 |
| eTextureType | number 纹理类型 |
| function XUIEditBoxDelegate new | ( | ) |
XUIEditBoxDelegate_new00
| function XUIEditBox SetDelegate | ( | pDelegate | ) |
| function XUIEditBox SetFont | ( | strFont | , |
| nFontSize | |||
| ) |
设置编辑框的字体。仅支持系统字体
| strFont | string 字体名称 |
| nFontSize | number 字体大小 |
| function XUIEditBox SetFontColor | ( | color | ) |
| function XUIEditBox SetFontName | ( | strFont | ) |
设置编辑框的字体的名字。仅支持系统字体
| strFont | string 字体名称 |
| function XUIEditBox SetFontSize | ( | nFontSize | ) |
设置编辑框的字体的大小。仅支持系统字体
| nFontSize | number 字体大小 |
| function XUIEditBox SetInputFlag | ( | eInputFlag | ) |
设置编辑框的输入标识,这个标识是EditBox::InputFlag类型
| eInputFlag | number 输入标识 |
| function XUIEditBox SetInputMode | ( | eInputMode | ) |
设置编辑框的输入模式
| eInputMode | number 输入模式 |
| function XUIEditBox SetMaxLength | ( | nMaxLength | ) |
设置编辑框允许输入的最大长度。 设置这个值默认允许多行输入 可以在Android,iOS和Windows Phone平台使用
| nMaxLength | number 最大长度 |
| function XUIEditBox SetPlaceholderFont | ( | strFont | , |
| nFontSize | |||
| ) |
设置占位符的字体。仅支持系统字体
| strFont | string 字体名称 |
| nFontSize | number 字体大小 |
| function XUIEditBox SetPlaceholderFontColor | ( | color | ) |
| function XUIEditBox SetPlaceholderFontName | ( | strFont | ) |
设置占位符的字体名称
| strFont | string 字体名称 |
| function XUIEditBox SetPlaceholderFontSize | ( | nFontSize | ) |
设置占位符的字体大小
| nFontSize | number 字体大小 |
| function XUIEditBox SetPlaceholderText | ( | strText | ) |
设置占位符文本内容
| strText | string 文本字符串 |
| function XUIEditBox SetReturnType | ( | eReturnType | ) |
设置编辑框的键盘的Return类型,这个类型的取值为EditBox::KeyboardReturnType常量之一
| eReturnType | number Return类型 |
| function XUIEditBox SetSelectTextWhenOpenKeyboard | ( | b | ) |
XUIEditBox_SetSelectTextWhenOpenKeyboard00
| b | boolean |
| function XUIEditBox SetText | ( | strText | ) |
设置编辑框中输入的文本
| strText | string 给定的文本字符串 |
| function XUIEditBox SetTextHorizontalAlignment | ( | eAlignment | ) |
设置文本水平对齐方式
| eAlignment | number XUI_TH_LEFT:左对齐,XUI_TH_CENTER:居中,XUI_TH_RIGHT:右对齐 |
| function XUIEditBox SetTextVerticalAlignment | ( | eVAlignment | ) |
设置文本垂直对齐方式
| eVAlignment | number XUI_TV_TOP:上对齐,XUI_TV_CENTER:居中,XUI_TV_BOTTOM:下对齐 |
| function XUIEditBox TouchDownAction | ( | pNode | , |
| controlEvent | |||
| ) |
| XUIEditBox CENTER = 0 |
| XUIListView LEFT = 0 |
| XUIListView RIGHT = 0 |
| XUIEditBox XUI_ANY = 0 |
| XUIEditBox XUI_DECIMAL = 0 |
| XUIEditBox XUI_DEFAULT = 0 |
| XUIEditBox XUI_DONE = 0 |
| XUIEditBox XUI_EMAIL_ADDRESS = 0 |
| XUIEditBox XUI_GO = 0 |
| XUIEditBox XUI_INITIAL_CAPS_ALL_CHARACTERS = 0 |
| XUIEditBox XUI_INITIAL_CAPS_SENTENCE = 0 |
| XUIEditBox XUI_INITIAL_CAPS_WORD = 0 |
| XUIEditBox XUI_LOWERCASE_ALL_CHARACTERS = 0 |
| XUIEditBox XUI_NEXT = 0 |
| XUIEditBox XUI_NUMERIC = 0 |
| XUIEditBox XUI_PASSWORD = 0 |
| XUIEditBox XUI_PHONE_NUMBER = 0 |
| XUIEditBox XUI_SEARCH = 0 |
| XUIEditBox XUI_SEND = 0 |
| XUIEditBox XUI_SENSITIVE = 0 |
| XUIEditBox XUI_SINGLE_LINE = 0 |
| XUIEditBox XUI_URL = 0 |
| XUIEditBox = {} |