Updates documentation for nodelayout and nodewidget
This commit is contained in:
parent
26fd58d8d1
commit
d495d0ca0e
@ -57,3 +57,15 @@ This is an abstract method in NodeLayout class. All Layouts inheriting from Node
|
||||
|
||||
- `childWidget` NodeWidget - Any widget in the NodeGui world.
|
||||
- `...args` any[] - Additional params as required by the layout.
|
||||
|
||||
#### `layout.activate()`
|
||||
|
||||
Redoes the layout for parent widget of this layout if necessary. Returns true if the layout was redone.
|
||||
|
||||
#### `layout.invalidate()`
|
||||
|
||||
Invalidates any cached information in this layout.
|
||||
|
||||
#### `layout.update()`
|
||||
|
||||
Updates the layout for parent widget of this layout. You should generally not need to call this because it is automatically called at the most appropriate times.
|
||||
|
||||
@ -136,3 +136,7 @@ Updates the widget. It calls the native method [QWidget: update](https://doc.qt.
|
||||
#### `widget.size()`
|
||||
|
||||
returns the current widget size. It calls the native method [QWidget: size](https://doc.qt.io/qt-5/qwidget.html#size-prop). The returned size object contains width and height in pixels.
|
||||
|
||||
#### `widget.updateGeometry()`
|
||||
|
||||
Notifies the layout system that this widget has changed and may need to change geometry.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user