Functions | |
zfanyT< ZFUIView > | viewRoot (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< ZFUIView > | viewAtPos (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 | |
check whether this view is child of specified view (recursively)
true if view equals to this view
|
extern |
recursively check child at position (relative to the view)
may be invalid if layout step not finished
|
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