Iconify and Restore

A Window is said to be "iconified" if it has been minimized, and a Window is said to be "restored" if it has been de-minimized.

iconify

To manually minimize a Window, you can use the iconify method:

window = Window.new
window.iconify # minimizes the window

If the Window is in full screen mode when iconify is called, the Monitor will have its original resolution restored until the window is restored.

iconify must be called from within a run block definition.

restore

To manually restore a Window from iconification or maximization, you can use the restore method:

window = Window.new
window.iconify # minimizes the window

window.restore # restores the window

restore must be called from within a run block definition.

results matching ""

    No results matching ""