|
|
|
|
|
|
namespace Unity.UIWidgets.rendering { |
|
|
|
|
|
|
|
public abstract class RenderObjectWithChildMixinRenderObject<ChildType> : RenderObject, RenderObjectWithChildMixin<ChildType>, RenderObjectWithChildMixin where ChildType : RenderObject { |
|
|
|
public bool debugValidateChild(RenderObject child) { |
|
|
|
public virtual bool debugValidateChild(RenderObject child) { |
|
|
|
D.assert(() => { |
|
|
|
if (!(child is ChildType)) { |
|
|
|
throw new UIWidgetsError( |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public abstract class RenderObjectWithChildMixinRenderBox<ChildType> : RenderBox, RenderObjectWithChildMixin<ChildType>, RenderObjectWithChildMixin where ChildType : RenderObject { |
|
|
|
public bool debugValidateChild(RenderObject child) { |
|
|
|
public virtual bool debugValidateChild(RenderObject child) { |
|
|
|
D.assert(() => { |
|
|
|
if (!(child is ChildType)) { |
|
|
|
throw new UIWidgetsError( |
|
|
|
|
|
|
get { return this._childCount; } |
|
|
|
} |
|
|
|
|
|
|
|
public new bool debugValidateChild(RenderObject child) { |
|
|
|
public override bool debugValidateChild(RenderObject child) { |
|
|
|
D.assert(() => { |
|
|
|
if (!(child is ChildType)) { |
|
|
|
throw new UIWidgetsError( |
|
|
|