public BackgroundElementState(BackgroundElementState existingState, BackgroundElement other, RenderContext context) { props = other.Props; nestedState = other.Child.Update(existingState?.nestedState, context); solidColourState = context.Renderer.UpdateSolidColourElementState(existingState?.solidColourState, new SolidColourElement(new SolidColourElementProps(other.Props.Colour, b => nestedState.BoundingBox)), context); }
public BackgroundElement(BackgroundElementProps props, IElement <IElementState> child) { this.Props = props; this.Child = child; }