|
52 | 52 |
|
53 | 53 | ```yaml |
54 | 54 | dependencies: |
55 | | - window_manager: ^0.1.1 |
| 55 | + window_manager: ^0.1.3 |
56 | 56 | ``` |
57 | 57 |
|
58 | 58 | 或 |
@@ -256,45 +256,46 @@ class MainFlutterWindow: NSWindow { |
256 | 256 |
|
257 | 257 | ### WindowManager |
258 | 258 |
|
259 | | -| Method | Description | Linux | macOS | Windows | |
260 | | -| ---------------- | ---------------------------------------------------------------------------------------------------------- | ----- | ----- | ------- | |
261 | | -| `focus` | Focuses on the window. | ✔️ | ✔️ | ➖ | |
262 | | -| `blur` | Removes focus from the window. | ➖ | ✔️ | ➖ | |
263 | | -| `show` | Shows and gives focus to the window. | ✔️ | ✔️ | ✔️ | |
264 | | -| `hide` | Hides the window. | ✔️ | ✔️ | ✔️ | |
265 | | -| `isVisible` | Returns `bool` - Whether the window is visible to the user. | ✔️ | ✔️ | ✔️ | |
266 | | -| `isMaximized` | Returns `bool` - Whether the window is maximized. | ✔️ | ✔️ | ✔️ | |
267 | | -| `maximize` | Maximizes the window. | ✔️ | ✔️ | ✔️ | |
268 | | -| `unmaximize` | Unmaximizes the window. | ✔️ | ✔️ | ✔️ | |
269 | | -| `isMinimized` | Returns `bool` - Whether the window is minimized. | ✔️ | ✔️ | ✔️ | |
270 | | -| `minimize` | Minimizes the window. | ✔️ | ✔️ | ✔️ | |
271 | | -| `restore` | Restores the window from minimized state to its previous state. | ✔️ | ✔️ | ✔️ | |
272 | | -| `isFullScreen` | Returns `bool` - Whether the window is in fullscreen mode. | ✔️ | ✔️ | ✔️ | |
273 | | -| `setFullScreen` | Sets whether the window should be in fullscreen mode. | ✔️ | ✔️ | ✔️ | |
274 | | -| `getBounds` | Returns `Rect` - The bounds of the window as Object. | ✔️ | ✔️ | ✔️ | |
275 | | -| `setBounds` | Resizes and moves the window to the supplied bounds. | ✔️ | ✔️ | ✔️ | |
276 | | -| `getPosition` | Returns `Offset` - Contains the window's current position. | ✔️ | ✔️ | ✔️ | |
277 | | -| `setPosition` | Moves window to `x` and `y`. | ✔️ | ✔️ | ✔️ | |
278 | | -| `getSize` | Returns `Size` - Contains the window's width and height. | ✔️ | ✔️ | ✔️ | |
279 | | -| `setSize` | Resizes the window to `width` and `height`. | ✔️ | ✔️ | ✔️ | |
280 | | -| `setMinimumSize` | Sets the minimum size of window to `width` and `height`. | ✔️ | ✔️ | ✔️ | |
281 | | -| `setMaximumSize` | Sets the maximum size of window to `width` and `height`. | ✔️ | ✔️ | ✔️ | |
282 | | -| `isResizable` | Returns `bool` - Whether the window can be manually resized by the user. | ✔️ | ✔️ | ✔️ | |
283 | | -| `setResizable` | Sets whether the window can be manually resized by the user. | ✔️ | ✔️ | ✔️ | |
284 | | -| `isMovable` | Returns `bool` - Whether the window can be moved by user. On Linux always returns `true`. | ➖ | ✔️ | ➖ | |
285 | | -| `setMovable` | Sets whether the window can be moved by user. On Linux does nothing. | ➖ | ✔️ | ➖ | |
286 | | -| `isMinimizable` | Returns `bool` - Whether the window can be manually minimized by the user. On Linux always returns `true`. | ➖ | ✔️ | ✔️ | |
287 | | -| `setMinimizable` | Sets whether the window can be manually minimized by user. On Linux does nothing. | ➖ | ✔️ | ✔️ | |
288 | | -| `isClosable` | Returns `bool` - Whether the window can be manually closed by user. On Linux always returns `true`. | ✔️ | ✔️ | ✔️ | |
289 | | -| `setClosable` | Sets whether the window can be manually closed by user. On Linux does nothing. | ✔️ | ✔️ | ✔️ | |
290 | | -| `isAlwaysOnTop` | Returns `bool` - Whether the window is always on top of other windows. | ✔️ | ✔️ | ✔️ | |
291 | | -| `setAlwaysOnTop` | Sets whether the window should show always on top of other windows. | ✔️ | ✔️ | ✔️ | |
292 | | -| `getTitle` | Returns `String` - The title of the native window. | ✔️ | ✔️ | ✔️ | |
293 | | -| `setTitle` | Changes the title of native window to title. | ✔️ | ✔️ | ✔️ | |
294 | | -| `setSkipTaskbar` | Makes the window not show in the taskbar / dock. | ✔️ | ✔️ | ✔️ | |
295 | | -| `hasShadow` | Returns `bool` - Whether the window has a shadow. | ➖ | ✔️ | ➖ | |
296 | | -| `setHasShadow` | Sets whether the window should have a shadow. | ➖ | ✔️ | ➖ | |
297 | | -| `startDragging` | - | ✔️ | ✔️ | ✔️ | |
| 259 | +| Method | Description | Linux | macOS | Windows | |
| 260 | +| ------------------ | ---------------------------------------------------------------------------------------------------------- | ----- | ----- | ------- | |
| 261 | +| `focus` | Focuses on the window. | ✔️ | ✔️ | ➖ | |
| 262 | +| `blur` | Removes focus from the window. | ➖ | ✔️ | ➖ | |
| 263 | +| `show` | Shows and gives focus to the window. | ✔️ | ✔️ | ✔️ | |
| 264 | +| `hide` | Hides the window. | ✔️ | ✔️ | ✔️ | |
| 265 | +| `isVisible` | Returns `bool` - Whether the window is visible to the user. | ✔️ | ✔️ | ✔️ | |
| 266 | +| `isMaximized` | Returns `bool` - Whether the window is maximized. | ✔️ | ✔️ | ✔️ | |
| 267 | +| `maximize` | Maximizes the window. | ✔️ | ✔️ | ✔️ | |
| 268 | +| `unmaximize` | Unmaximizes the window. | ✔️ | ✔️ | ✔️ | |
| 269 | +| `isMinimized` | Returns `bool` - Whether the window is minimized. | ✔️ | ✔️ | ✔️ | |
| 270 | +| `minimize` | Minimizes the window. | ✔️ | ✔️ | ✔️ | |
| 271 | +| `restore` | Restores the window from minimized state to its previous state. | ✔️ | ✔️ | ✔️ | |
| 272 | +| `isFullScreen` | Returns `bool` - Whether the window is in fullscreen mode. | ✔️ | ✔️ | ✔️ | |
| 273 | +| `setFullScreen` | Sets whether the window should be in fullscreen mode. | ✔️ | ✔️ | ✔️ | |
| 274 | +| `getBounds` | Returns `Rect` - The bounds of the window as Object. | ✔️ | ✔️ | ✔️ | |
| 275 | +| `setBounds` | Resizes and moves the window to the supplied bounds. | ✔️ | ✔️ | ✔️ | |
| 276 | +| `getPosition` | Returns `Offset` - Contains the window's current position. | ✔️ | ✔️ | ✔️ | |
| 277 | +| `setPosition` | Moves window to `x` and `y`. | ✔️ | ✔️ | ✔️ | |
| 278 | +| `getSize` | Returns `Size` - Contains the window's width and height. | ✔️ | ✔️ | ✔️ | |
| 279 | +| `setSize` | Resizes the window to `width` and `height`. | ✔️ | ✔️ | ✔️ | |
| 280 | +| `setMinimumSize` | Sets the minimum size of window to `width` and `height`. | ✔️ | ✔️ | ✔️ | |
| 281 | +| `setMaximumSize` | Sets the maximum size of window to `width` and `height`. | ✔️ | ✔️ | ✔️ | |
| 282 | +| `isResizable` | Returns `bool` - Whether the window can be manually resized by the user. | ✔️ | ✔️ | ✔️ | |
| 283 | +| `setResizable` | Sets whether the window can be manually resized by the user. | ✔️ | ✔️ | ✔️ | |
| 284 | +| `isMovable` | Returns `bool` - Whether the window can be moved by user. On Linux always returns `true`. | ➖ | ✔️ | ➖ | |
| 285 | +| `setMovable` | Sets whether the window can be moved by user. On Linux does nothing. | ➖ | ✔️ | ➖ | |
| 286 | +| `isMinimizable` | Returns `bool` - Whether the window can be manually minimized by the user. On Linux always returns `true`. | ➖ | ✔️ | ✔️ | |
| 287 | +| `setMinimizable` | Sets whether the window can be manually minimized by user. On Linux does nothing. | ➖ | ✔️ | ✔️ | |
| 288 | +| `isClosable` | Returns `bool` - Whether the window can be manually closed by user. On Linux always returns `true`. | ✔️ | ✔️ | ✔️ | |
| 289 | +| `setClosable` | Sets whether the window can be manually closed by user. On Linux does nothing. | ✔️ | ✔️ | ✔️ | |
| 290 | +| `isAlwaysOnTop` | Returns `bool` - Whether the window is always on top of other windows. | ✔️ | ✔️ | ✔️ | |
| 291 | +| `setAlwaysOnTop` | Sets whether the window should show always on top of other windows. | ✔️ | ✔️ | ✔️ | |
| 292 | +| `getTitle` | Returns `String` - The title of the native window. | ✔️ | ✔️ | ✔️ | |
| 293 | +| `setTitle` | Changes the title of native window to title. | ✔️ | ✔️ | ✔️ | |
| 294 | +| `setTitleBarStyle` | Changes the title bar style of native window. | ➖ | ✔️ | ✔️ | |
| 295 | +| `setSkipTaskbar` | Makes the window not show in the taskbar / dock. | ✔️ | ✔️ | ✔️ | |
| 296 | +| `hasShadow` | Returns `bool` - Whether the window has a shadow. | ➖ | ✔️ | ➖ | |
| 297 | +| `setHasShadow` | Sets whether the window should have a shadow. | ➖ | ✔️ | ➖ | |
| 298 | +| `startDragging` | - | ✔️ | ✔️ | ✔️ | |
298 | 299 |
|
299 | 300 | ### WindowListener |
300 | 301 |
|
|
0 commit comments