import { NativeClasses } from "../milsko"; import { Widget } from "../widget"; import type { WidgetOptions } from "../types"; export class CheckBox extends Widget { constructor(options: WidgetOptions) { super(NativeClasses.CheckBox, options); } public setChecked(value: boolean): this { return this.setInteger("Ichecked", +value); } get checked(): boolean { return this.getInteger("Ichecked") != 0; } set checked(value: boolean) { this.setInteger("Ichecked", +value); } }