示例#1
0
 public _RaycastableBoxRenderElement(
     int windowHashCode,
     RaycastableBox widget
     ) : base(widget)
 {
     this.windowHashCode = windowHashCode;
 }
示例#2
0
 public RenderRaycastableBox(
     int windowHashCode,
     RaycastableBox widget
     )
 {
     widgetHashCode      = widget.GetHashCode();
     this.windowHashCode = windowHashCode;
 }
示例#3
0
        public override Widget build(BuildContext context)
        {
            Widget current = child;

            if (child == null)
            {
                current = new LimitedBox(
                    maxWidth: 0.0f,
                    maxHeight: 0.0f,
                    child: new ConstrainedBox(constraints: BoxConstraints.expand())
                    );
            }

            current = new RaycastableBox(child: current);

            return(current);
        }