MinMaxDuration

class MinMaxDuration(val minimum: Duration, val maximum: Duration) : TrimConstraint(source)

A range between minimum and maximum long.

Constructors

Link copied to clipboard
constructor(minimum: Duration, maximum: Duration)

Properties

Link copied to clipboard

How long the range may get.

Link copied to clipboard

How short the range may get.

Functions

Link copied to clipboard
open override fun constrain(proposed: TimeRange, handle: TrimHandle, duration: Duration): TimeRange

Corrects proposed into a range this constraint allows.