import addon from '../utils/addon'; import { NodeWidget } from './QWidget'; import { BaseWidgetEvents } from '../core/EventWidget'; import { NativeElement } from '../core/Component'; import { QAbstractButton } from './QAbstractButton'; export const QRadioButtonEvents = Object.freeze({ ...BaseWidgetEvents, }); export class QRadioButton extends QAbstractButton { native: NativeElement; constructor(parent?: NodeWidget) { let native; if (parent) { native = new addon.QRadioButton(parent.native); } else { native = new addon.QRadioButton(); } super(native); this.native = native; this.nodeParent = parent; } }