Brush

open class Brush : Hashable, Equatable

Represents a class for drawing diagram items. This class implements Hashable and Equatable.

  • Initializes a new instance of the Brush class.

    Declaration

    Swift

    public init()

    Return Value

    The newly created Brush instance.

  • Gets the Color of the Brush.

    Declaration

    Swift

    open func toColor() -> Color

    Return Value

    The color.

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Compares the current Brush instance to another Brush.

    Declaration

    Swift

    open func equalsTo(_ brush: Brush) -> Bool

    Parameters

    brush

    The (Brush)(Brush.html) instance to compare the current (Brush)(Brush.html) to.

    Return Value

    True if the (Brush)(Brush.html) instances are equal; otherwise false.