-
Notifications
You must be signed in to change notification settings - Fork 421
CATextView
multi-line text input box
CAScrollView
access modifier |
Attribute name |
Description |
protected |
TextViewDelegate |
event delegate |
protected |
PlaceHolder |
placeholder prompt message |
protected |
SpaceHolderColor |
placeholder color |
protected |
TextColor |
input text color |
protected |
CursorColor |
cursor color |
protected |
text |
typed text |
protected |
FontSize |
text’s font size |
protected |
WordWrap |
word wrap |
protected |
LineSpacing |
line spacing |
protected |
FontName |
text font |
protected |
InputType |
input text type |
protected |
KeyboardType |
keyboard type |
protected |
KeyboardReturnType |
keyboard enter key’s type |
TextViewDelegate
Type: CATextViewDelegate
Descripiton: event delegate, including events in opening, closing keyboard, inserting and deleting text condition, get/set{}.
PlaceHolder
Type: string
Descripiton: placeholder, which auto disappear after textView obtains cursor, get/set{}.
SpaceHolderColor
Type: CAColor4B
Descripiton: placeholder color, get/set{}.
TextColor
Type: CAColor4B
Descripiton: input text color, get/set{}.
CursorColor
Type: CAColor4B
Descripiton: cursor color, get/set{}.
Text
Type: string
Descripiton: typed text, get/set{}.
FontSize
Type: int
Descripiton: font size of all texts including placeholder and input text, get/set{}.
WordWrap
Type: bool
Descripiton: word wrap or not, for letter text system allows word wrap in a word or not, is/set{}.
LineSpacing
Type: unsigned int
Descripiton: line spacing, 0 by default, get/set{}.
FontName
Type: string
Descripiton: text font, get/set{}.
InputType
Type: eKeyBoardInputType
Descripiton: input text type, including normal text and password type, get/set{}.
enum eKeyBoardInputType
{
KEY_BOARD_INPUT_NORMAL = 1,
KEY_BOARD_INPUT_PASSWORD,
};
KeyboardType
Type: eKeyBoardType
Descripiton: keyboard type, including common keyboard, numeric keyboard and alphabetical keyboard, get/set{}.
enum eKeyBoardType
{
KEY_BOARD_TYPE_NORMAL = 0,
KEY_BOARD_TYPE_NUMBER,
KEY_BOARD_TYPE_ALPHABET,
};
KeyboardReturnType
Type: eKeyBoardReturnType
Descripiton: keyboard enter key’s type, including complete, search and send type, get/set{}.
enum eKeyBoardReturnType
{
KEY_BOARD_RETURN_DONE = 21,
KEY_BOARD_RETURN_SEARCH,
KEY_BOARD_RETURN_SEND,
};