@nodegui/vue-nodegui
Version:
library to render native desktop applications using vue js
31 lines (24 loc) • 677 B
text/typescript
import { QWidget, NodeWidget } from '@nodegui/nodegui';
import { VNWidget } from 'widgets/config';
/** @internal */
export class VNMetaWidget extends QWidget implements VNWidget<{}> {
constructor() {
super();
this.setFixedSize(0, 0);
}
insertChild() {
throw new Error('cannot add child to meta widgets');
}
patchProp() {
throw new Error('cannot add props to meta widgets');
}
removeChild() {
throw new Error('cannot add props to meta widgets');
}
insertBefore() {
throw new Error('Cannot add child to meta widgets');
}
getNextSibling(): NodeWidget<any> | null {
throw new Error('meta widget cannot have children');
}
}