Canvas Toolkit
← Class index

CStyleOptionToggleSwitch

GUI and styling · extends CStyleOptionButton

Painting state for a toggle switch; position is the animated thumb offset (0..1).

import { CStyleOptionToggleSwitch } from "canvas-toolkit-lib";

Declared members

text: string;
position: number;
constructor(other?: CStyleOptionToggleSwitch | null);