DefaultLayoutConfig

@objcMembers open class DefaultLayoutConfig: LayoutConfig

Stores config properties specific to the default layout.

  • [Unit] Rounded corner radius of a block

    Declaration

    Swift

    public static let BlockCornerRadius = LayoutConfig.newPropertyKey()
  • [Unit] Width of a regular line stroke for a block

    Declaration

    Swift

    public static let BlockLineWidthRegular = LayoutConfig.newPropertyKey()
  • [Unit] Width of a highlighted line stroke for a block

    Declaration

    Swift

    public static let BlockLineWidthHighlight = LayoutConfig.newPropertyKey()
  • [Unit] Width of the line stroke for a highlighted connection.

    Declaration

    Swift

    public static let BlockConnectionLineWidthHighlight = LayoutConfig.newPropertyKey()
  • [Unit] Height of a horizontal puzzle tab

    Declaration

    Swift

    public static let PuzzleTabHeight = LayoutConfig.newPropertyKey()
  • [Unit] Width of a horizontal puzzle tab

    Declaration

    Swift

    public static let PuzzleTabWidth = LayoutConfig.newPropertyKey()
  • [Unit] The x-offset from which to start drawing the notch, relative to the left edge. This value should be greater than or equal to the value specified for DefaultLayoutConfig.BlockCornerRadius.

    Declaration

    Swift

    public static let NotchXOffset = LayoutConfig.newPropertyKey()
  • [Unit] The width of the notch (including both diagonal lines and the bottom line).

    Declaration

    Swift

    public static let NotchWidth = LayoutConfig.newPropertyKey()
  • [Unit] The height of the notch.

    Declaration

    Swift

    public static let NotchHeight = LayoutConfig.newPropertyKey()
  • [Unit] Vertical space to use for each of the top, middle, and bottom sections of the C-shaped statement input

    Declaration

    Swift

    public static let StatementSectionHeight = LayoutConfig.newPropertyKey()
  • [Unit] The minimum amount of horizontal space to use for the spine of the C-shaped statement input.

    Declaration

    Swift

    public static let StatementMinimumSectionWidth = LayoutConfig.newPropertyKey()
  • [Unit] The minimum width of the top section of the C-shaped statement input (not including the statement’s notch width).

    Declaration

    Swift

    public static let StatementMinimumConnectorWidth = LayoutConfig.newPropertyKey()
  • [UIColor] The default stroke color to use when rendering a block

    Declaration

    Swift

    public static let BlockStrokeDefaultColor = LayoutConfig.newPropertyKey()
  • [UIColor] The stroke color to use when rendering a highlighted block

    Declaration

    Swift

    public static let BlockStrokeHighlightColor = LayoutConfig.newPropertyKey()
  • [UIColor] The stroke color to use when rendering a disabled block

    Declaration

    Swift

    public static let BlockStrokeDisabledColor = LayoutConfig.newPropertyKey()
  • [UIColor] The stroke color to use when rendering a highlighted connection on a block.

    Declaration

    Swift

    public static let BlockConnectionHighlightStrokeColor = LayoutConfig.newPropertyKey()
  • [UIColor] The fill color to use when rendering a disabled block

    Declaration

    Swift

    public static let BlockFillDisabledColor = LayoutConfig.newPropertyKey()
  • [UIColor] The color to render above of a block when it is highlighted.

    Declaration

    Swift

    public static let BlockMaskHighlightColor = LayoutConfig.newPropertyKey()
  • [Float] The default alpha value to use when rendering a block

    Declaration

    Swift

    public static let BlockDefaultAlpha = LayoutConfig.newPropertyKey()
  • [Float] The alpha value to use when rendering a disabled block

    Declaration

    Swift

    public static let BlockDisabledAlpha = LayoutConfig.newPropertyKey()
  • [Float] The alpha value to use when rendering the fill color of a dragged block

    Declaration

    Swift

    public static let BlockDraggingFillColorAlpha = LayoutConfig.newPropertyKey()
  • [Float] The alpha value to use when rendering the stroke color of a dragged block

    Declaration

    Swift

    public static let BlockDraggingStrokeColorAlpha = LayoutConfig.newPropertyKey()
  • [Float] The saturation multiplier to use when calculating a shadow block’s fill/stroke colors

    Declaration

    Swift

    public static let BlockShadowSaturationMultiplier = LayoutConfig.newPropertyKey()
  • [Float] The brightness multiplier to use when calculating a shadow block’s fill/stroke colors

    Declaration

    Swift

    public static let BlockShadowBrightnessMultiplier = LayoutConfig.newPropertyKey()
  • [String] Default value for how blocks with no output or previous connection should be rendered with a hat. This value should correspond to a value of type Block.Style.HatType (eg. Block.Style.hatCap or Block.Style.hatNone).

    Declaration

    Swift

    public static let BlockHat = LayoutConfig.newPropertyKey()
  • [Size] The size to use when rendering a hat of type Block.Style.cap.

    Declaration

    Swift

    public static let BlockHatCapSize = LayoutConfig.newPropertyKey()
  • [Size] Minimum size of the inline connector

    Declaration

    Swift

    public static let InlineConnectorMinimumSize = LayoutConfig.newPropertyKey()
  • [Unit] Horizontal padding around inline connector. For inline connector rendering, this value overrides the one specified by the key LayoutConfig.InlineXPadding.

    Declaration

    Swift

    public static let InlineConnectorXPadding = LayoutConfig.newPropertyKey()
  • [Unit] Vertical padding around inline connector. For inline connector rendering, this value overrides the one specified by the key LayoutConfig.InlineYPadding.

    Declaration

    Swift

    public static let InlineConnectorYPadding = LayoutConfig.newPropertyKey()
  • [UIColor] The color to tint the mutator settings button.

    Declaration

    Swift

    public static let MutatorSettingsButtonColor = LayoutConfig.newPropertyKey()
  • Initializes the default layout config.

    Declaration

    Swift

    public override init()