LED_SeparatorDots

public class LED_SeparatorDots : LED_Element

This class describes a separator that goes between segments (or groups of segments). It uses an array of Bool to determine how many dots will be displayed in a vertical row. If you only want one dot, it will be put all the way at the bottom (a decimal point). If you have more than one, they will be in an evenly-spaced vertical row. The array of Bool will be used to determine which segments are lit, and you can change the value (an array of Bool), to change the lit segments at runtime.

  • This is the size of the entire drawing area.

    Declaration

    Swift

    private static let _c_g_displaySize: CGSize
  • This contains all our segments (dots).

    Declaration

    Swift

    private let _segments: [UIBezierPath]
  • This is which segments are lit.

    Declaration

    Swift

    private var _litSegments: [Bool]
  • Instantiates each of the segments.

    Declaration

    Swift

    init(_ inLitSegments: [Bool] = [true])

    Parameters

    An

    array of Bool, indicating which segments should be lit. There must be at least Two values.

  • Get the number of dots.

    Declaration

    Swift

    public var numDotsTotal: Int { get }
  • Accessor for the Display.

    Declaration

    Swift

    public var value: [Bool] { get set }
  • Get the drawing size of this element.

    Declaration

    Swift

    public var drawingSize: CGSize { get }
  • Get all segments as one path.

    Declaration

    Swift

    public var allSegments: UIBezierPath { get }
  • Get active segments as one path.

    Declaration

    Swift

    public var activeSegments: UIBezierPath { get }
  • Get inactive segments as one path.

    Declaration

    Swift

    public var inactiveSegments: UIBezierPath { get }