ZFFramework
Loading...
Searching...
No Matches
ZFUIScrollViewImplHelperProtocol Class Referenceabstract

see ZFUIScrollViewImplHelper More...

#include <ZFProtocolZFUIScrollView.h>

Public Member Functions

virtual zftimet nativeTime (void)=0
 see ZFUIScrollViewImplHelper
virtual void mouseEventPos (ZFUIPoint &ret, void *nativeMouseEvent)=0
 see ZFUIScrollViewImplHelper
virtual void * mouseEventClone (void *nativeMouseEvent, zfbool changeMouseAction=_ZFT_t_zffalse, ZFUIMouseAction mouseAction=v_ZFUIMouseAction::e_Cancel)=0
 see ZFUIScrollViewImplHelper
virtual void mouseEventCleanup (void *nativeMouseEvent)=0
 see ZFUIScrollViewImplHelper
virtual void mouseEventForward (void *nativeChild, void *nativeMouseEvent)=0
 see ZFUIScrollViewImplHelper
virtual ZFUIScrollViewImplHelperfindTouchedChildScrollView (zffloat x, zffloat y)=0
 see ZFUIScrollViewImplHelper
virtual void findTouchedChildScrollViewCleanup (void *nativeChild)=0
 see ZFUIScrollViewImplHelper
virtual void * findTouchedChild (zffloat x, zffloat y)=0
 see ZFUIScrollViewImplHelper
virtual void findTouchedChildCleanup (void *nativeChild)=0
 see ZFUIScrollViewImplHelper
virtual void trackDelayStart (zftimet timeoutMiliSeconds, ZFUIScrollViewImplHelper *owner)
 see ZFUIScrollViewImplHelper, after time out, you must invoke ZFUIScrollViewImplHelper::trackDelayNotifyTimeout
virtual void trackDelayStop (ZFUIScrollViewImplHelper *owner)
 see ZFUIScrollViewImplHelper
virtual void * translateFromParentToChild (void *nativeChild, void *nativeMouseEvent, zffloat const &xInParent, zffloat const &yInParent)=0
 see ZFUIScrollViewImplHelper
virtual void * translateFromChildToParent (void *nativeChild, void *nativeMouseEvent, zffloat const &xInChild, zffloat const &yInChild)=0
 see translateFromParentToChild

Detailed Description

Member Function Documentation

◆ mouseEventPos()

virtual void ZFUIScrollViewImplHelperProtocol::mouseEventPos ( ZFUIPoint & ret,
void * nativeMouseEvent )
pure virtual

see ZFUIScrollViewImplHelper

what coordinate system would be used, depends on impl, but you should keep it same between all of the methods of this protocol impl

◆ mouseEventForward()

virtual void ZFUIScrollViewImplHelperProtocol::mouseEventForward ( void * nativeChild,
void * nativeMouseEvent )
pure virtual

see ZFUIScrollViewImplHelper

the forwarded mouse event must be ignored from all scroll view's intercept step

◆ trackDelayStart()

virtual void ZFUIScrollViewImplHelperProtocol::trackDelayStart ( zftimet timeoutMiliSeconds,
ZFUIScrollViewImplHelper * owner )
virtual

see ZFUIScrollViewImplHelper, after time out, you must invoke ZFUIScrollViewImplHelper::trackDelayNotifyTimeout

this method has default implementation using ZFTimer, you may supply your own logic by override this method and trackDelayStop without calling super

◆ translateFromParentToChild()

virtual void * ZFUIScrollViewImplHelperProtocol::translateFromParentToChild ( void * nativeChild,
void * nativeMouseEvent,
zffloat const & xInParent,
zffloat const & yInParent )
pure virtual

see ZFUIScrollViewImplHelper

return original native mouse event or create new copy if not able to modify
if you created new native mouse event and return, you should destroy old one manually by mouseEventCleanup


The documentation for this class was generated from the following file: