示例#1
0
 public void SetExperimentalFeatureEnabled(
     YogaExperimentalFeature feature,
     bool enabled)
 {
     Native.YGConfigSetExperimentalFeatureEnabled(_ygConfig, feature, enabled);
 }
示例#2
0
 public static int GetInstanceCount()
 {
     return(Native.YGConfigGetInstanceCount());
 }
示例#3
0
 public YogaConfig()
     : this(Native.YGConfigNew())
 {
 }
示例#4
0
 public void MarkHasNewLayout()
 {
     Native.YGNodeSetHasNewLayout(_ygNode, true);
 }
示例#5
0
 public bool IsExperimentalFeatureEnabled(YogaExperimentalFeature feature)
 {
     return(Native.YGConfigIsExperimentalFeatureEnabled(_ygConfig, feature));
 }
示例#6
0
 public virtual void MarkDirty()
 {
     Native.YGNodeMarkDirty(_ygNode);
 }
示例#7
0
 public static int GetInstanceCount()
 {
     return(Native.YGNodeGetInstanceCount());
 }
示例#8
0
 public void SetMeasureFunction(MeasureFunction measureFunction)
 {
     _measureFunction = measureFunction;
     _managedMeasure  = measureFunction != null ? MeasureInternal : (YogaMeasureFunc)null;
     Native.YGNodeSetMeasureFunc(_ygNode, _managedMeasure);
 }
示例#9
0
 public void MarkLayoutSeen()
 {
     Native.YGNodeSetHasNewLayout(_ygNode, false);
 }
示例#10
0
 public void CopyStyle(YogaNode srcNode)
 {
     Native.YGNodeCopyStyle(_ygNode, srcNode._ygNode);
 }