@@ -83,25 +83,25 @@ const maximized = ref(false)
8383
8484Template refs expose control methods for common window commands:
8585
86- | Method | Description |
87- | --- | --- |
88- | ` show() ` | Shows the window. |
89- | ` hide() ` | Hides the window. |
90- | ` embed() ` | Docks the window back into its page layout position. |
91- | ` float() ` | Moves the window into floating mode. |
92- | ` toggleEmbedded() ` | Switches between embedded and floating modes. |
93- | ` pin() ` | Keeps the window above normal floating windows. |
94- | ` unpin() ` | Returns the window to the normal floating stack. |
95- | ` togglePinned() ` | Switches the pinned state. |
96- | ` maximize() ` | Maximizes the floating window. |
97- | ` minimize() ` | Collapses the window to its title bar. |
98- | ` restore() ` | Restores from minimized, maximized, or fullscreen state. |
99- | ` toggleMaximized() ` | Switches between maximized and restored state. |
100- | ` toggleMinimized() ` | Switches between minimized and restored state. |
101- | ` enterFullscreen() ` | Enters browser fullscreen when supported. |
102- | ` leaveFullscreen() ` | Leaves browser fullscreen. |
103- | ` toggleFullscreen() ` | Switches browser fullscreen state. |
104- | ` getPosition() ` | Returns the current window position and size. |
86+ | Method | Description |
87+ | -------------------- | ----------------------------------------------------- --- |
88+ | ` show() ` | Shows the window. |
89+ | ` hide() ` | Hides the window. |
90+ | ` embed() ` | Docks the window back into its page layout position. |
91+ | ` float() ` | Moves the window into floating mode. |
92+ | ` toggleEmbedded() ` | Switches between embedded and floating modes. |
93+ | ` pin() ` | Keeps the window above normal floating windows. |
94+ | ` unpin() ` | Returns the window to the normal floating stack. |
95+ | ` togglePinned() ` | Switches the pinned state. |
96+ | ` maximize() ` | Maximizes the floating window. |
97+ | ` minimize() ` | Collapses the window to its title bar. |
98+ | ` restore() ` | Restores from minimized, maximized, or fullscreen state. |
99+ | ` toggleMaximized() ` | Switches between maximized and restored state. |
100+ | ` toggleMinimized() ` | Switches between minimized and restored state. |
101+ | ` enterFullscreen() ` | Enters browser fullscreen when supported. |
102+ | ` leaveFullscreen() ` | Leaves browser fullscreen. |
103+ | ` toggleFullscreen() ` | Switches browser fullscreen state. |
104+ | ` getPosition() ` | Returns the current window position and size. |
105105
106106Double-clicking the built-in title bar maximizes or restores a floating window. If you provide a
107107custom ` titlebar ` slot, QWindow still handles title-bar double-clicks; stop the event on custom
0 commit comments