protocol for ZFUITextView More...
#include <ZFProtocolZFUITextView.h>
Public Member Functions | |
virtual const zfchar * | protocolName (void) const |
get the name of the protocol module, e.g. "ZFObject" | |
virtual void * | nativeTextViewCreate (ZFUITextView *textView, zfbool &nativeImplViewRequireVirtualIndex)=0 |
create native text view | |
virtual void | nativeTextViewDestroy (ZFUITextView *textView, void *nativeTextView)=0 |
destroy native text view | |
virtual void | text (ZFUITextView *textView, const zfstring &text)=0 |
see ZFUITextView | |
virtual void | textAppearance (ZFUITextView *textView, ZFUITextAppearance const &textAppearance)=0 |
see ZFUITextView | |
virtual void | textAlign (ZFUITextView *textView, ZFUIAlignFlags const &textAlign)=0 |
see ZFUITextView | |
virtual void | textColor (ZFUITextView *textView, ZFUIColor const &textColor)=0 |
see ZFUITextView | |
virtual void | textSize (ZFUITextView *textView, zffloat textSize)=0 |
see ZFUITextView | |
virtual void | textSizeAutoMin (ZFUITextView *textView, zffloat textSizeAutoMin)=0 |
see ZFUITextView | |
virtual void | textSizeAutoMax (ZFUITextView *textView, zffloat textSizeAutoMax)=0 |
see ZFUITextView | |
virtual void | singleLine (ZFUITextView *textView, zfbool singleLine)=0 |
see ZFUITextView | |
virtual void | textTruncateMode (ZFUITextView *textView, ZFUITextTruncateMode const &textTruncateMode)=0 |
see ZFUITextView | |
virtual ZFUISize | measureNativeTextView (ZFUITextView *textView, const ZFUISize &sizeHint, zffloat textSize)=0 |
measure text view using size hint | |
virtual zffloat | textSizeCurrent (ZFUITextView *textView)=0 |
see ZFUITextView::textSizeCurrent | |
virtual void | layoutNativeTextView (ZFUITextView *textView, const ZFUISize &viewSize)=0 |
layout text view after ZFUIView's layout step, so that the view may shrink text size if necessary | |
zffloat | calcTextSizeAuto (ZFUITextView *textView, const ZFUISize &sizeHint) |
util method to calculate text size according auto change setting for this text view | |
![]() | |
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_ZFUITextView | zfself |
class ref to self | |
protocol for ZFUITextView
|
inlinevirtual |
get the name of the protocol module, e.g. "ZFObject"
Reimplemented from ZFProtocol.
|
pure virtual |
measure text 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 view may have, or 0 if no limit
|
inline |
util method to calculate text size according auto change setting for this text view
usually used by implementation that doesn't support text auto resizing, loop to measure and calculate proper text size, may have performance issues