RangePercent100thsStruct

struct RangePercent100thsStruct

Defines an operational range, from a minimum to a maximum percentage. for a dimension of a closure.

  • min

    The minimum value in hundredths of a percent, ranging from 0.00% to max.

    Declaration

    Swift

    let min: UInt16
  • max

    The maximum value in hundredths of a percent, ranging from min to 100.00%.

    Declaration

    Swift

    let max: UInt16
  • Creates a new Struct instance using data read from the given TraitDecoder.

    Throws

    HomeError.parseError when parsing fails.

    Declaration

    Swift

    init(decoder: TraitDecoder) throws

    Parameters

    decoder

    The raw data representing this Struct.

  • Writes this Struct to the given TraitEncoder. Throws HomeError.parseError if the data could not be encoded.

    Declaration

    Swift

    func encode(with encoder: TraitEncoder) throws
  • Returns the field corresponding to the given field ID.

    Declaration

    Swift

    static func structField(id: UInt32) -> (any Field)?