From d495d0ca0ede22d77ac3e55d2e5d1a29f4f26d61 Mon Sep 17 00:00:00 2001 From: Atul R Date: Thu, 8 Aug 2019 19:04:54 +0200 Subject: [PATCH] Updates documentation for nodelayout and nodewidget --- docs/api/NodeLayout.md | 12 ++++++++++++ docs/api/NodeWidget.md | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/docs/api/NodeLayout.md b/docs/api/NodeLayout.md index a6c51c35e..cd4f1982c 100644 --- a/docs/api/NodeLayout.md +++ b/docs/api/NodeLayout.md @@ -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. diff --git a/docs/api/NodeWidget.md b/docs/api/NodeWidget.md index 3f2200f14..42b5255b5 100644 --- a/docs/api/NodeWidget.md +++ b/docs/api/NodeWidget.md @@ -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.