Apply window layout
rillsoft_window_layout_applyApplies a window layout state to make screenshots reproducible. Set width, height, ribbon, info panel, or status bar; omitted sizes stay unchanged, and the state lasts only for the running session.
Instructions
Applies the window state for reproducible screenshots; at least one parameter is required, and sizes left out stay as they are. It answers like rillsoft_window_layout_get. No undo step, no change to the project. The state holds for the running session only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | width of the visible client area in pixels; give it together with height | |
| height | No | height of the visible client area in pixels; give it together with width | |
| ribbon | No | state of the ribbon; minimized shows the tab row only | |
| infoPanel | No | show or hide the info window, the docking bar holding the property sheet | |
| statusBar | No | show or hide the status bar; among other things it shows the path of the resource pool file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | Yes | screen resolution in dpi | |
| width | Yes | width of the visible area in pixels | |
| height | Yes | height of the visible area in pixels | |
| ribbon | Yes | state of the ribbon | |
| infoPanel | Yes | info window visible | |
| maximized | Yes | true = window maximized | |
| statusBar | Yes | status bar visible | |
| windowWidth | Yes | width of the window in pixels | |
| windowHeight | Yes | height of the window in pixels |