ZFFramework
 
Loading...
Searching...
No Matches
ZFUIViewUtil Namespace Reference


More...

Functions

zfanyT< ZFUIViewviewRoot (ZFUIView *view)
 recursive find the root ZFUIView parent of this view, may return self if no parent
 
zfbool isChildOf (ZFUIView *view, ZFUIView *parentToCheck)
 check whether this view is child of specified view (recursively)
 
zfanyT< ZFUIViewviewAtPos (ZFUIView *view, const ZFUIPoint &pos, zfbool filterDisabledView=(_ZFT_t_zffalse), zfbool filterInternalView=(_ZFT_t_zftrue))
 recursively check child at position (relative to the view)
 
void viewRectToParentT (ZFUIRect &rect, ZFUIView *view, ZFUIView *parent=(zft_zfnull))
 check rect of view relative to parent, return ZFUIRectZero if not child of parent or invalid
 
ZFUIRect viewRectToParent (ZFUIView *view, ZFUIView *parent=(zft_zfnull))
 see viewRectToParentT
 

Detailed Description


Function Documentation

◆ isChildOf()

zfbool ZFUIViewUtil::isChildOf ( ZFUIView * view,
ZFUIView * parentToCheck )
extern

check whether this view is child of specified view (recursively)

true if view equals to this view

◆ viewAtPos()

zfanyT< ZFUIView > ZFUIViewUtil::viewAtPos ( ZFUIView * view,
const ZFUIPoint & pos,
zfbool filterDisabledView = (_ZFT_t_zffalse),
zfbool filterInternalView = (_ZFT_t_zftrue) )
extern

recursively check child at position (relative to the view)

may be invalid if layout step not finished

◆ viewRectToParentT()

void ZFUIViewUtil::viewRectToParentT ( ZFUIRect & rect,
ZFUIView * view,
ZFUIView * parent = (zft_zfnull) )
extern

check rect of view relative to parent, return ZFUIRectZero if not child of parent or invalid

result value would be invalid until whole layout step finished
unlike ZFUIViewPositionOnScreen, this method does not depends on impl, however, result may be invalid if view's parent contains ZFUINativeViewWrapper
this method would calculate rect depends on ZFUIView::layoutChildOffset recursively