SHMultiSlider
@IBDesignable
open class SHMultiSlider : NSControl
A multislider panel, contains a ring, 2 labels and an output value display
-
Undocumented
Declaration
Swift
@IBOutlet public var sourceLabel: NSTextField!
-
Undocumented
Declaration
Swift
@IBOutlet public var targetLabel: NSTextField!
-
Undocumented
Declaration
Swift
@IBOutlet public var outputValue: NSTextField!
-
delegate
Declaration
Swift
open var delegate: SHMultiSliderDelegate?
-
Undocumented
Declaration
Swift
open override func prepareForInterfaceBuilder()
-
Text for the label at the top
Declaration
Swift
public var sourceName: String { get set }
-
Text for the label at the bottom
Declaration
Swift
public var targetName: String { get set }
-
Remap output value based on upper/lower bounds, default = true
Declaration
Swift
public var valueNeedsRemap: Bool
-
Undocumented
Declaration
Swift
@IBInspectable public var ringColor: NSColor { get set }
-
Color of the value ring
Declaration
Swift
@IBInspectable public var tintColor: NSColor { get set }
-
Color of the value pointer
Declaration
Swift
@IBInspectable public var valuePointerColor: NSColor { get set }
-
Color of the max/min pointer
Declaration
Swift
@IBInspectable public var boundPointerColor: NSColor { get set }
-
Line width for the ring outline, note that value ring’s line width will always be ringWidth + 2
Declaration
Swift
@IBInspectable public var ringWidth: CGFloat { get set }
-
Line Width for the value pointer
Declaration
Swift
@IBInspectable public var pointerWidth: CGFloat { get set }
-
Line width for the lower and upper bounds pointers
Declaration
Swift
@IBInspectable public var boundPointerWidth: CGFloat { get set }
-
Value pointer will jump within upper/lower bounds when it’s true, else it will jump between min/map. Default is true
Declaration
Swift
@IBInspectable public var hardclipValuePointer: Bool { get set }
-
Min of input value
Declaration
Swift
@IBInspectable public var min: Float { get set }
-
Max of input value
Declaration
Swift
@IBInspectable public var max: Float { get set }
-
Undocumented
Declaration
Swift
@IBInspectable open override var isEnabled: Bool { get set }
-
Created for my own use, when set to true,
G
label at the bottom will light upDeclaration
Swift
@IBInspectable public var isGated: Bool { get set }
-
Created for my own use, when set to true,
R
label at the bottom will light upDeclaration
Swift
@IBInspectable public var isReversed: Bool { get set }
-
Undocumented
Declaration
Swift
open override func layoutSubtreeIfNeeded()
-
Undocumented
Declaration
Swift
public required init?(coder decoder: NSCoder)
-
Undocumented
Declaration
Swift
public override init(frame frameRect: NSRect)
-
Undocumented
Declaration
Swift
open override var intrinsicContentSize: NSSize { get }
-
Set upper bound’s value
Declaration
Swift
public func setUpperBoundValue(_ newValue: Int)
Parameters
newValue
new upper bound value, output value will be remapped from min-max to lowerBound-upperBound
-
Set lower bound’s value
Declaration
Swift
public func setLowerBoundValue(_ newValue: Int)
Parameters
newValue
new lower bound value, output value will be remapped from min-max to lowerBound-upperBound
-
Undocumented
Declaration
Swift
public func getLowerBoundValue() -> Int
-
Undocumented
Declaration
Swift
public func getUpperBoundValue() -> Int
-
Set value for the ring’s value pointer
Declaration
Swift
public func setValue(_ newValue: Int)
Parameters
newValue
input value to be displayed
-
Update view bounds, call this on superview’s viewDidLayout()
Declaration
Swift
public func updateBounds(_ bounds: CGRect)
Parameters
bounds
new bounds rect
-
Undocumented
Declaration
Swift
public func knobValueUpdated(value: Int)
-
Undocumented
Declaration
Swift
public func knobBoundsUpdated(lower: Int, upper: Int)
-
Undocumented
Declaration
Swift
public func knobBoundsFinishUpdate()
-
Undocumented
Declaration
Swift
public func gateModeChanged(_ isGated: Bool)
-
Undocumented
Declaration
Swift
public func reversedModeChanged(_ isReversed: Bool)