LayoutConfig

@objcMembers open class LayoutConfig: NSObject

UI configuration for all layout elements.

  • [Unit] The distance to bump blocks away from each other

    Declaration

    Swift

    public static let BlockBumpDistance = LayoutConfig.newPropertyKey()
  • [Unit] The maximum distance allowed for blocks to snap toward each other at the end of drags, if they have compatible connections near each other.

    Declaration

    Swift

    public static let BlockSnapDistance = LayoutConfig.newPropertyKey()
  • [Unit] Horizontal padding around inline elements (such as fields or inputs)

    Declaration

    Swift

    public static let InlineXPadding = LayoutConfig.newPropertyKey()
  • [Unit] Vertical padding around inline elements (such as fields or inputs)

    Declaration

    Swift

    public static let InlineYPadding = LayoutConfig.newPropertyKey()
  • [Unit] Horizontal space between blocks for WorkspaceFlowLayout

    Declaration

    Swift

    public static let WorkspaceFlowXSeparatorSpace = LayoutConfig.newPropertyKey()
  • [Unit] Vertical space between blocks for for WorkspaceFlowLayout

    Declaration

    Swift

    public static let WorkspaceFlowYSeparatorSpace = LayoutConfig.newPropertyKey()
  • [Unit] Minimum height of field rows

    Declaration

    Swift

    public static let FieldMinimumHeight = LayoutConfig.newPropertyKey()
  • [Unit] If necessary, the rounded corner radius of a field

    Declaration

    Swift

    public static let FieldCornerRadius = LayoutConfig.newPropertyKey()
  • [Unit] If necessary, the line stroke width of a field

    Declaration

    Swift

    public static let FieldLineWidth = LayoutConfig.newPropertyKey()
  • [UntypedValue: AnglePicker.Options] The options to use whenever an angle picker is displayed.

    Declaration

    Swift

    public static let FieldAnglePickerOptions = LayoutConfig.newPropertyKey()
  • [Unit] The border width to use when rendering the FieldColor button

    Declaration

    Swift

    public static let FieldColorButtonBorderWidth = LayoutConfig.newPropertyKey()
  • [UIColor] The border color to use when rendering the FieldColor button.

    Declaration

    Swift

    public static let FieldColorButtonBorderColor = LayoutConfig.newPropertyKey()
  • [Size] The button size to use when rendering a FieldColor

    Declaration

    Swift

    public static let FieldColorButtonSize = LayoutConfig.newPropertyKey()
  • [UIColor] The color to use for the FieldCheckboxView switch’s onTintColor. A value of nil means that the system default should be used.

    Declaration

    Swift

    public static let FieldCheckboxSwitchOnTintColor = LayoutConfig.newPropertyKey()
  • [UIColor] The color to use for the FieldCheckboxView switch’s tintColor. A value of nil means that the system default should be used.

    Declaration

    Swift

    public static let FieldCheckboxSwitchTintColor = LayoutConfig.newPropertyKey()
  • [Unit] Horizontal spacing inside a dropdown.

    Declaration

    Swift

    public static let FieldDropdownXSpacing = LayoutConfig.newPropertyKey()
  • [Unit] Vertical spacing inside a dropdown.

    Declaration

    Swift

    public static let FieldDropdownYSpacing = LayoutConfig.newPropertyKey()
  • [UIColor] The color to use for the dropdown background.

    Declaration

    Swift

    public static let FieldDropdownBackgroundColor = LayoutConfig.newPropertyKey()
  • [UIColor] The color to use for the dropdown border.

    Declaration

    Swift

    public static let FieldDropdownBorderColor = LayoutConfig.newPropertyKey()
  • [UIColor] The default color for text in field labels.

    Declaration

    Swift

    public static let FieldLabelTextColor = LayoutConfig.newPropertyKey()
  • [UIColor] The default color for editable text in fields.

    Declaration

    Swift

    public static let FieldEditableTextColor = LayoutConfig.newPropertyKey()
  • [UntypedValue: NumberPad.Options] The options to use whenever a number pad is displayed.

    Declaration

    Swift

    public static let FieldNumberPadOptions = LayoutConfig.newPropertyKey()
  • [EdgeInsets] For fields that use an InsetTextField, this is the insetPadding that should be used for each one

    Declaration

    Swift

    public static let FieldTextFieldInsetPadding = LayoutConfig.newPropertyKey()
  • [Unit] For fields that use a UITextField, this is the minimum width that should be used for each one.

    Declaration

    Swift

    public static let FieldTextFieldMinimumWidth = LayoutConfig.newPropertyKey()
  • [Unit] For fields that use a UITextField, this is the maximum width that should be used for each one.

    Declaration

    Swift

    public static let FieldTextFieldMaximumWidth = LayoutConfig.newPropertyKey()
  • [Font] The default font to use for generic text inside Blockly.

    Declaration

    Swift

    public static let GlobalFont = LayoutConfig.newPropertyKey()
  • [Size] For mutators, this is the size of the default settings button.

    Declaration

    Swift

    public static let MutatorButtonSize = LayoutConfig.newPropertyKey()
  • [Font] The font to use for label text inside popovers.

    Declaration

    Swift

    public static let PopoverLabelFont = LayoutConfig.newPropertyKey()
  • [Font] The font to use for title text inside popovers.

    Declaration

    Swift

    public static let PopoverTitleFont = LayoutConfig.newPropertyKey()
  • [Font] The font to use for subtitle text inside popovers.

    Declaration

    Swift

    public static let PopoverSubtitleFont = LayoutConfig.newPropertyKey()
  • [Double] The animation duration to use when running animatable code inside a LayoutView.

    Declaration

    Swift

    public static let ViewAnimationDuration = LayoutConfig.newPropertyKey()
  • [[String]] The variable blocks to be created in the toolbox when a variable is created.

    Declaration

    Swift

    public static let VariableBlocks = LayoutConfig.newPropertyKey()
  • [[String]] The variable blocks to be created the first time a variable is created.

    Declaration

    Swift

    public static let UniqueVariableBlocks = LayoutConfig.newPropertyKey()
  • A closure for creating a UIFont from a given scale.

    Declaration

    Swift

    public typealias FontCreator = (_ scale: CGFloat) -> UIFont
  • Type alias defining the property key. To create a new one, call LayoutConfig.newPropertyKey(), rather than instantiating the underlying type directly.

    Declaration

    Swift

    public typealias PropertyKey = Int
  • Struct for representing a unit value in both the Workspace coordinate system and UIView coordinate system.

    Declaration

    Swift

    public typealias Unit = LayoutConfigUnit
  • Struct for representing a Size value (i.e. width/height) in both the Workspace coordinate system and UIView coordinate system.

    Declaration

    Swift

    public typealias Size = LayoutConfigSize
  • Struct for representing an EdgeInsets value in both the Workspace coordinate system and UIView coordinate system.

    Declaration

    Swift

    public typealias ScaledEdgeInsets = LayoutConfigEdgeInsets
  • Dictionary mapping property keys to Bool values

    Declaration

    Swift

    public private(set) var bools = Dictionary<PropertyKey, Bool>()
  • Dictionary mapping property keys to UIColor values

    Declaration

    Swift

    public private(set) var colors = Dictionary<PropertyKey, UIColor>()
  • Dictionary mapping property keys to Double values

    Declaration

    Swift

    public private(set) var doubles = Dictionary<PropertyKey, Double>()
  • Dictionary mapping property keys to ScaledEdgeInsets values

    Declaration

    Swift

    public private(set) var edgeInsets = Dictionary<PropertyKey, ScaledEdgeInsets>()
  • Dictionary mapping property keys to CGFloat values

    Declaration

    Swift

    public private(set) var floats = Dictionary<PropertyKey, CGFloat>()
  • Dictionary mapping property keys to Size values

    Declaration

    Swift

    public private(set) var sizes = Dictionary<PropertyKey, Size>()
  • Dictionary mapping property keys to Unit values

    Declaration

    Swift

    public private(set) var units = Dictionary<PropertyKey, Unit>()
  • Dictionary mapping property keys to [String] values

    Declaration

    Swift

    public private(set) var stringArrays = Dictionary<PropertyKey, [String]>()
  • Dictionary mapping property keys to String values

    Declaration

    Swift

    public private(set) var strings = Dictionary<PropertyKey, String>()
  • Dictionary mapping property keys to Any values

    Declaration

    Swift

    public private(set) var untypedValues = Dictionary<PropertyKey, Any>()