ZFFramework
 
Loading...
Searching...
No Matches
ZFUIViewTreePrint.h File Reference

print view tree for ZFUIView More...

#include "ZFUIView.h"

Go to the source code of this file.

Functions

void ZFUIViewTreePrint (ZFUIView *view, const ZFOutput &outputCallback=(ZFOutputDefault()))
 debug use only, to output human readable view tree info
 
void ZFUIViewTreePrintAfterDelay (zftimet delay, ZFUIView *view, const ZFOutput &outputCallback=(ZFOutputDefault()))
 delay to ZFUIViewTreePrint using ZFTimerOnce
 
void ZFUIViewTreePrintInfoGetterForClass (const ZFClass *viewClass, const ZFListener &viewInfoGetter)
 register a custom info getter for output info of a view type using ZFUIViewTreePrint
 
ZFListener ZFUIViewTreePrintInfoGetterForClass (const ZFClass *viewClass)
 see ZFUIViewTreePrintInfoGetterForClass
 
void ZFUIViewTreeNativePrint (ZFUIView *view, const ZFOutput &outputCallback=(ZFOutputDefault()))
 similar to ZFUIViewTreePrint, but print native view's view tree
 
void ZFUIViewTreeNativePrintAfterDelay (zftimet delay, ZFUIView *view, const ZFOutput &outputCallback=(ZFOutputDefault()))
 delay to ZFUIViewTreeNativePrint using ZFTimerOnce
 

Detailed Description

print view tree for ZFUIView

Function Documentation

◆ ZFUIViewTreePrintInfoGetterForClass()

void ZFUIViewTreePrintInfoGetterForClass ( const ZFClass * viewClass,
const ZFListener & viewInfoGetter )
extern

register a custom info getter for output info of a view type using ZFUIViewTreePrint

viewInfoGetter's sender is the view being checking, param0 is a ZFOutput to output the view's info
output should contain only infomations without extra new line or tokens, newly set would override old one, set null to remove
you may add your own at runtime, using ZF_GLOBAL_INITIALIZER_INIT is recommended
if a view class not registered, only ZFObject::objectInfoImplAppend would be outputed
if both base class and child class registered, child class's one would have higher priority, without parent's one being called