Add width() and height() to QWidget

This commit is contained in:
Simon Edwards 2021-08-26 22:19:03 +02:00
parent edf437f056
commit 25f529757e

View File

@ -304,6 +304,12 @@ export abstract class NodeWidget<Signals extends QWidgetSignals> extends YogaWid
y(): number {
return this.property('y').toInt();
}
width(): number {
return this.property('width').toInt();
}
height(): number {
return this.property('height').toInt();
}
}
export interface QWidgetSignals extends QObjectSignals {