Background

@objcMembers public final class Background: NSObject

Information for rendering the background of a DefaultBlockLayout.

  • Flag if the top-left corner should be square.

    Declaration

    Swift

    public fileprivate(set) var squareTopLeftCorner: Bool = false
  • Flag if the bottom-left corner should be rounded

    Declaration

    Swift

    public fileprivate(set) var squareBottomLeftCorner: Bool = false
  • Flag if a previous statement connector should be rendered at the top of the block

    Declaration

    Swift

    public fileprivate(set) var previousStatementConnector: Bool = false
  • Flag if a next statement connector should be rendered at the bottom of the block

    Declaration

    Swift

    public fileprivate(set) var nextStatementConnector: Bool = false
  • Flag if a output connector should be rendered on the left side of the block

    Declaration

    Swift

    public fileprivate(set) var outputConnector: Bool = false
  • The line height for the first line of content inside the block. The output connector puzzle tab should be rendered vertically centered relative to this height.

    Declaration

    Swift

    public internal(set) var firstLineHeight: CGFloat = 0
  • hat

    The hat the block should render.

    Declaration

    Swift

    public fileprivate(set) var hat: Block.Style.HatType = Block.Style.hatNone
  • The position of the block’s leading X edge offset, specified as a Workspace coordinate system unit, relative to its entire bounding box. (e.g. In LTR, this is the X offset of the block’s left edge.)

    Declaration

    Swift

    public fileprivate(set) var leadingEdgeXOffset: CGFloat = 0
  • The position of the block’s top Y edge offset, specified as a Workspace coordinate system unit.

    Declaration

    Swift

    public fileprivate(set) var leadingEdgeYOffset: CGFloat = 0
  • The rows for this block

    Declaration

    Swift

    public fileprivate(set) var rows = [BackgroundRow]()