Example #1
0
 public _RaycastableBoxRenderElement(
     int windowHashCode,
     RaycastableBox widget
     ) : base(widget)
 {
     this.windowHashCode = windowHashCode;
 }
Example #2
0
 public RenderRaycastableBox(
     int windowHashCode,
     RaycastableBox widget
     )
 {
     widgetHashCode      = widget.GetHashCode();
     this.windowHashCode = windowHashCode;
 }
Example #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);
        }