BooleanControlWrapper

abstract class BooleanControlWrapper(clip: Clip, controlType: BooleanControl.Type)

A wrapper for a BooleanControl of a Clip, providing methods to update and reset its value.

Parameters

clip

The Clip containing the control.

controlType

The type of BooleanControl to wrap.

Throws

if the specified control type is not supported by the Clip.

if the control retrieved is not a BooleanControl.

Inheritors

Constructors

Link copied to clipboard
constructor(clip: Clip, controlType: BooleanControl.Type)

Creates a BooleanControlWrapper for the specified control type.

Types

Link copied to clipboard

Properties

Link copied to clipboard
private val control: BooleanControl
Link copied to clipboard
private val defaultValue: Boolean

Functions

Link copied to clipboard

Retrieves the current value of the control.

Link copied to clipboard

Resets the control to its default value.

Link copied to clipboard
fun updateValue(value: Boolean)

Updates the value of the control.