Widget
The Widget class is the base class of all widget objects (e.g. Canvas, Container, and MouseArea).
Widget inherits from EventEmitter (v5.2.8).
Properties
| Property | Type | Description |
|---|---|---|
height | Number | The height of the widget. |
opacity | Number | The opacity of the widget. Range: 0.0 (fully transparent) to 1.0 (fully opaque). |
rotation | Number | The rotation of the widget in degrees clockwise. |
width | Number | The width of the widget. |
x | Number | The x coordinate of the widget relative to its parent. |
y | Number | The y coordinate of the widget relative to its parent. |