protocol for ZFUITextEdit More...
#include <ZFProtocolZFUITextEdit.h>
Public Member Functions | |
virtual const zfchar * | protocolName (void) const |
get the name of the protocol module, e.g. "ZFObject" | |
virtual void * | nativeTextEditCreate (ZFUITextEdit *textEdit, zfbool &nativeImplViewRequireVirtualIndex)=0 |
create native text edit view | |
virtual void | nativeTextEditDestroy (ZFUITextEdit *textEdit, void *nativeTextEdit)=0 |
destroy native text edit view | |
virtual void | editEnable (ZFUITextEdit *textEdit, zfbool editEnable)=0 |
see ZFUITextEdit | |
virtual void | textEditSecure (ZFUITextEdit *textEdit, zfbool editSecured)=0 |
see ZFUITextEdit | |
virtual void | keyboardType (ZFUITextEdit *textEdit, ZFUITextEditKeyboardType keyboardType)=0 |
see ZFUITextEdit | |
virtual void | keyboardReturnType (ZFUITextEdit *textEdit, ZFUITextEditKeyboardReturnType keyboardReturnType)=0 |
see ZFUITextEdit | |
virtual void | selectedRange (ZFUITextEdit *textEdit, ZFIndexRange &selectedRange)=0 |
see ZFUITextEdit | |
virtual void | selectedRange (ZFUITextEdit *textEdit, const ZFIndexRange &selectedRange)=0 |
see ZFUITextEdit | |
virtual void | text (ZFUITextEdit *textEdit, const zfstring &text)=0 |
see ZFUITextEdit | |
virtual void | textAppearance (ZFUITextEdit *textEdit, ZFUITextAppearance const &textAppearance)=0 |
see ZFUITextEdit | |
virtual void | textAlign (ZFUITextEdit *textEdit, ZFUIAlignFlags const &textAlign)=0 |
see ZFUITextEdit | |
virtual void | textColor (ZFUITextEdit *textEdit, ZFUIColor const &textColor)=0 |
see ZFUITextEdit | |
virtual void | textSize (ZFUITextEdit *textEdit, zffloat textSize)=0 |
see ZFUITextEdit | |
virtual ZFUISize | measureNativeTextEdit (ZFUITextEdit *textEdit, const ZFUISize &sizeHint, zffloat textSize)=0 |
measure text edit view using size hint | |
virtual void | editBegin (ZFUITextEdit *textEdit)=0 |
see ZFUITextEdit::editBegin | |
virtual void | editEnd (ZFUITextEdit *textEdit)=0 |
see ZFUITextEdit::editEnd | |
zfbool | notifyCheckTextShouldUpdate (ZFUITextEdit *textEdit, const zfstring &newValue) |
implementation must notify to check whether text should change | |
void | notifyTextUpdate (ZFUITextEdit *textEdit, const zfstring &newValue) |
implementation must notify when text changed | |
void | notifyTextSelectRangeOnUpdate (ZFUITextEdit *textEdit) |
implementation must notify when text select range changed | |
void | notifyTextReturnClicked (ZFUITextEdit *textEdit) |
implementation must notify when text changed | |
void | notifyTextEditBegin (ZFUITextEdit *textEdit) |
implementation must notify when text begin edit | |
void | notifyTextEditEnd (ZFUITextEdit *textEdit) |
implementation must notify when text begin edit | |
![]() | |
virtual void | protocolOnInit (void) |
called to init the protocol | |
virtual void | protocolOnInitFinish (void) |
see protocolOnInit | |
virtual void | protocolOnDeallocPrepare (void) |
see protocolOnInit | |
virtual void | protocolOnDealloc (void) |
see protocolOnInit | |
virtual ZFProtocolInstanceState | protocolInstanceState (void) |
protocol instance's state | |
virtual const zfchar * | protocolImplName (void) const |
get the name of the protocol implementation, e.g. "ZFObject_default" | |
virtual ZFProtocolLevel | protocolImplLevel (void) const |
get the level of the protocol implementation | |
virtual const zfchar * | protocolImplPlatformHint (void) const |
get type hint of the implementation or empty string if not defined, e.g. "iOS:NSString" for iOS's string impl, use ZFPROTOCOL_IMPLEMENTATION_PLATFORM_HINT to register | |
virtual void | objectInfoT (zfstring &ret) const |
see objectInfo | |
virtual zfstring | objectInfo (void) const |
get a short info about this object | |
Protected Types | |
typedef ZFProtocol | zfsuper |
class ref to super | |
typedef ZFPInterface_ZFUITextEdit | zfself |
class ref to self | |
protocol for ZFUITextEdit
|
inlinevirtual |
get the name of the protocol module, e.g. "ZFObject"
Reimplemented from ZFProtocol.
|
pure virtual |
measure text edit view using size hint
implementation should truncate or wrap new line according to text style previously set by setTextStyle
sizeHint shows max size the text edit view may have, or 0 if no limit