public string Print(YogaPrintOptions options = YogaPrintOptions.Layout | YogaPrintOptions.Style | YogaPrintOptions.Children) { StringBuilder sb = new StringBuilder(); YogaLogger.Func orig = YogaLogger.Logger; YogaLogger.Logger = (level, message) => { sb.Append(message); }; Native.YGNodePrint(_ygNode, options); YogaLogger.Logger = orig; return(sb.ToString()); }
public static extern void YGInteropSetLogger( [MarshalAs(UnmanagedType.FunctionPtr)] YogaLogger.Func func);