adjust new v2 changes

pull/426/head
Amr Bashir 2 years ago
parent 630beb3240
commit eb7f5af630
No known key found for this signature in database
GPG Key ID: BBD7A47A2003FF33

@ -706,8 +706,8 @@ class Window {
* Gets the window's current focus state. * Gets the window's current focus state.
* @example * @example
* ```typescript * ```typescript
* import { appWindow } from '@tauri-apps/plugin-window'; * import { getCurrent } from '@tauri-apps/plugin-window';
* const focused = await appWindow.isFocused(); * const focused = await getCurrent().isFocused();
* ``` * ```
* *
* @returns Whether the window is focused or not. * @returns Whether the window is focused or not.
@ -765,8 +765,8 @@ class Window {
* *
* @example * @example
* ```typescript * ```typescript
* import { appWindow } from '@tauri-apps/plugin-window'; * import { getCurrent } from '@tauri-apps/plugin-window';
* const maximizable = await appWindow.isMaximizable(); * const maximizable = await getCurrent().isMaximizable();
* ``` * ```
* *
* @returns Whether the window's native maximize button is enabled or not. * @returns Whether the window's native maximize button is enabled or not.
@ -786,8 +786,8 @@ class Window {
* *
* @example * @example
* ```typescript * ```typescript
* import { appWindow } from '@tauri-apps/plugin-window'; * import { getCurrent } from '@tauri-apps/plugin-window';
* const minimizable = await appWindow.isMinimizable(); * const minimizable = await getCurrent().isMinimizable();
* ``` * ```
* *
* @returns Whether the window's native minimize button is enabled or not. * @returns Whether the window's native minimize button is enabled or not.
@ -807,8 +807,8 @@ class Window {
* *
* @example * @example
* ```typescript * ```typescript
* import { appWindow } from '@tauri-apps/plugin-window'; * import { getCurrent } from '@tauri-apps/plugin-window';
* const closable = await appWindow.isClosable(); * const closable = await getCurrent().isClosable();
* ``` * ```
* *
* @returns Whether the window's native close button is enabled or not. * @returns Whether the window's native close button is enabled or not.
@ -969,8 +969,8 @@ class Window {
* *
* @example * @example
* ```typescript * ```typescript
* import { appWindow } from '@tauri-apps/plugin-window'; * import { getCurrent } from '@tauri-apps/plugin-window';
* await appWindow.setMaximizable(false); * await getCurrent().setMaximizable(false);
* ``` * ```
* *
* @param maximizable * @param maximizable
@ -992,8 +992,8 @@ class Window {
* *
* @example * @example
* ```typescript * ```typescript
* import { appWindow } from '@tauri-apps/plugin-window'; * import { getCurrent } from '@tauri-apps/plugin-window';
* await appWindow.setMinimizable(false); * await getCurrent().setMinimizable(false);
* ``` * ```
* *
* @param minimizable * @param minimizable
@ -1016,8 +1016,8 @@ class Window {
* *
* @example * @example
* ```typescript * ```typescript
* import { appWindow } from '@tauri-apps/plugin-window'; * import { getCurrent } from '@tauri-apps/plugin-window';
* await appWindow.setClosable(false); * await getCurrent().setClosable(false);
* ``` * ```
* *
* @param closable * @param closable

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save